Re:Taking a Look at CLR Thread Pool 'Thread Injection' Algor...
by fake-name on Thursday April 13, 2017 @09:29PM
(#14112119)
Is there anything like this for python? I have an application that would very much benefit from it.
[ Parent
| on HN ]
Re:Taking a Look at CLR Thread Pool 'Thread Injection' Algor...
by eloff on Friday April 14, 2017 @12:26PM
(#14115352)
You don't get real threads in Python thanks to the GIL - only one thread at a time can be executing Python code.
You can use processes to get around this, but it's often not as performant or convenient. Computer hardware shifted to multi-core a decade ago and Python was left behind because of that little bit of technical debt.
It used to be my favorite language, but I've since moved on to Go, both for the better performance and multi-core story, and for the static typing.