News for hackers. Stuff that matters.
Re:Global Interpreter Lock, or how to kill it by mattgreenrocks on Wednesday June 29, 2011 @04:56PM (#2711277)
I see this sentiment everywhere. Processes don't solve every problem, nor do threads, and nor do fibers. They're each useful in different places.

Despite the GIL, threads are still useful in Python for handling asynchronous operations. One or more threads pull items off a work queue, process them, and then put the results somewhere else. The GIL is a problem only when operations are CPU-bound, but Python is pretty damn slow at that anyway. Alternatively, you can sidestep the GIL by creating a thread in a C extension that does the heavy-lifting, then calls back into Python with the result.

There are no comments on this comment yet.