multithread or multicore - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: multithread or multicore (/thread-13365.html) |
multithread or multicore - Chris2018 - Oct-11-2018 Hello at all, I am new here but I hope one of you are so kind to help me with my issue I create a class with a function so I can element to is Data structure a Tree. Now I want to fill this three with data and it works but it's in a function that adds ever second a new Element(it takes around 2 min to fill). Now to my idea, I have 6 cores or 12 Threads I want to parallelize it, but it needs to be thread safe since the adding should not be at the same time. If need more information please let me know Thank you for your help Best Regards Chris RE: multithread or multicore - Larz60+ - Oct-11-2018 This article may help: https://opensource.com/article/17/4/grok-gil |