Re:The GIL and its effects on Python multithreading
by dekhn on Wednesday September 29, 2021 @09:50AM
(#28693640)
what are you talking about? worker thread pools are the most common way to take advantage multiple cores. Typically can see speedups (for highly parallel codes) of nX for n cores.
[ Parent
| on HN ]
Re:The GIL and its effects on Python multithreading
by tempest_ on Wednesday September 29, 2021 @10:36AM
(#28694207)
In python there is nuance to the term threads.
Threads in python will run in the same python process and use only one core.
If you want to use more cores you need to use more python processes.
Re:The GIL and its effects on Python multithreading
by pcl on Wednesday September 29, 2021 @11:23AM
(#28694930)
... but that's because of these very GIL limitations, is it not?