Re:Python Concurrency From the Ground Up (2015) [video]
by helgie on Wednesday November 11, 2020 @11:19AM
(#25059597)
If you use numba (or cython, c extensions, etc) you can make them run without requiring that they hold the GIL, and they can run in parallel. Here's an example that should keep a CPU pegged at 100% utilization for a while:
[ Parent
| on HN ]
Re:Python Concurrency From the Ground Up (2015) [video]
by shepardrtc on Thursday November 12, 2020 @08:31PM
(#25077776)
> and they can run in parallel.
Even without requiring the GIL, these are still child threads of the main process, correct? And because of that, wouldn't the OS keep them all on the same core? And if that's the case, would ProcessPoolExecutor solve that problem?
Re:Python Concurrency From the Ground Up (2015) [video]
by shepardrtc on Wednesday November 11, 2020 @12:20PM
(#25060353)
I had no idea that existed, thank you!