On 10/27/2016 01:43 PM, Chris Angelico wrote:
Blocked threads don't consume CPU time. Why would they?

ChrisA


Agreed. My point being that a blocked thread achieve nothing, except parallelism, i.e. other threads can be processed.

To be more specific, if you compute factorial(51354) in a thread, it will still require approx. the same amount of CPU clocks than in a main thread (probably slightly more due to the scheduler overhead).

jm


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to