Toby DiPasquale on 7 Dec 2010 10:32:58 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: December 15th - RSVP - Tornado with Gavin Roy


On Tue, Dec 7, 2010 at 12:28 PM, paul santa clara <kesserich1@gmail.com> wrote:
> I have never played with twisted or tornado but what is the current state of
> their(and python's) support of kernel level preemptive mutlitasking?  Are
> they relying on green threads at the moment ala node js and if so, is it
> common to spin up multiple instances of an interpreter to achieve
> parallelism?

Python has threads, but currently they aren't of much use because the
GIL ensures that one cannot currently execute the same section of
Python in two or more threads concurrently. People sometimes use
multiprocessing to get around that issue, but that's only when your
problem domain lends itself to such.

-- 
Toby DiPasquale

"The curious task of economics is to demonstrate to men how little
they really know about what they imagine they can design." -- F.A.
Hayek