Python Forum
Why the multithread does not reduce the execution time?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why the multithread does not reduce the execution time?
#3
I understood the reason, I didn't know the concept of GIL in python, really well explained also by this GIF:
[Image: 1*wd0z1C75VsxD42QdKqCjpA.gif]
The question then is the following, a simple language like python, but which does not implement the GIL limitation, does it exist?
(I'm not talking about multiprocessing, which in python should work very well, and bypasses the GIL limitation).
I wrote the same script in C, and times are obviously infinitely inferior, C supports multithreading programming well, but a higher-level alternative exists?
For example, is GO a valid language when I want to do asynchronous programming?
Reply


Messages In This Thread
RE: Why the multithread does not reduce the execution time? - by Nicely - Nov-23-2019, 02:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question [redistribution] Reduce number + size of dependencies? Winfried 2 787 Jan-31-2025, 10:17 PM
Last Post: snippsat
  How can I multithread to optimize a groupby task: davisc4468 0 1,254 Jun-30-2023, 02:45 PM
Last Post: davisc4468
  reduce nested for-loops Phaze90 11 5,528 Mar-16-2023, 06:28 PM
Last Post: ndc85430
  Adding values with reduce() function from the list of tuples kinimod 10 5,855 Jan-24-2023, 08:22 AM
Last Post: perfringo
  How to measure execution time of a multithread loop spacedog 2 4,155 Apr-24-2021, 07:52 AM
Last Post: spacedog
  How do I reduce the time to Invoke Macro via Python? JaneTan 1 2,843 Dec-28-2020, 06:46 AM
Last Post: buran
  PyCharm Script Execution Time? muzikman 3 10,736 Dec-14-2020, 11:22 PM
Last Post: muzikman
  How to reduce the following code to run in sequence? Giggel 4 3,694 Jun-28-2020, 01:31 AM
Last Post: Giggel
  Help to reduce time to execute the code prakash52kar 1 2,908 Oct-14-2019, 10:56 AM
Last Post: scidam
  Time execution of a "for loop" with zip different in 2 equivalent context sebastien 1 2,554 Oct-11-2019, 11:07 AM
Last Post: sebastien

Forum Jump:

User Panel Messages

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