Re:Python Concurrency From the Ground Up (2015) [video]
by quietbritishjim on Wednesday November 11, 2020 @07:26AM
(#25057758)
Oops, you're right, I was talking about parallelism, not just concurrency. Thanks for the correction.
> Parallelism is achieved using multiprocessing.
As I said in my previous comment (but used the wrong term), threads are a perfectly reasonable way of getting parallelism in Python, so long so long your application uses C-based libraries like numpy (or even some built-in modules like zipfile). In my experience, the vast majority of Python programs that might need parallelism fall into that category (or are IO bound) anyway.
> Parallelism is achieved using multiprocessing.
As I said in my previous comment (but used the wrong term), threads are a perfectly reasonable way of getting parallelism in Python, so long so long your application uses C-based libraries like numpy (or even some built-in modules like zipfile). In my experience, the vast majority of Python programs that might need parallelism fall into that category (or are IO bound) anyway.