Python Forum
How much multi-threading should be done?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How much multi-threading should be done?
#7
You probably shouldn't be using the _thread module. threading.Thread(target=your_function, args=(some, tuple)).start() is probably where you want to end up... if you want to use threads.

Note, though, that threads in python aren't "real" threads. They won't utilize multiple cores on your processor, and will probably not speed anything up in this case.

If this is the direction you want to head, then you should probably look at multiprocessing.Pool: https://docs.python.org/3/library/multip....pool.Pool
Reply


Messages In This Thread
How much multi-threading should be done? - by IAMK - Apr-17-2018, 12:00 PM
RE: How much multi-threading should be done? - by nilamo - Apr-18-2018, 03:51 AM

Forum Jump:

User Panel Messages

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