Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
multithread or multicore
#1
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
Reply
#2
This article may help: https://opensource.com/article/17/4/grok-gil
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I multithread to optimize a groupby task: davisc4468 0 674 Jun-30-2023, 02:45 PM
Last Post: davisc4468
  How to measure execution time of a multithread loop spacedog 2 2,835 Apr-24-2021, 07:52 AM
Last Post: spacedog
  Why the multithread does not reduce the execution time? Nicely 2 2,433 Nov-23-2019, 02:28 PM
Last Post: Nicely
  attempted multithread doesn't multithread meems 4 3,336 Dec-10-2017, 03:55 PM
Last Post: meems

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020