Python Forum

Full Version: multithread or multicore
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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