4 ms·
For some reason, masklinn's comment is dead. Posting it here: <quote> > Python uses native multi-threads, but the GIL restriction means only one thread can ru
by irahul 14y ago
For some reason, masklinn's comment is dead. Posting it here:
<quote>
> Python uses native multi-threads, but the GIL restriction means only one thread can run
>> Can run Python code, if you're multithreading for e.g. IO the IO code will generally release the GIL.
</quote>
Yes, native code can release the GIL and run in parallel. As far as it's pure python, only one thread runs at a time. The options are multiprocessing, gevent style concurrency(which I prefer to node's) and native extensions. It isn't as bleak as people make it out to be.
- masklinn 14y ago> For some reason, masklinn's comment is dead. Posting it here: Sorry, that's probably because I got error messages while posting ending up with 2 or 3 comments, and I removed the extraneous ones. You probably tried to reply to one of those I deleted.