2 ms·
GIL worries are not founded, most of the time. Multithreads in Python works just fine for I/O bounded operations. Switch a multithread program to use multiple
by jaimebuelta 11y ago
GIL worries are not founded, most of the time.
Multithreads in Python works just fine for I/O bounded operations. Switch a multithread program to use multiple processes (and avoid GIL issues) is quite simple with the multiprocessing module[1] if you need to achieve 100% CPU usage.
In my experience, complains about the GIL are mostly FUD.
[1]https://docs.python.org/2/library/multiprocessing.html https://docs.python.org/2/library/multiprocessing.html