[Twisted-Python] multiprocessing capability?

Christopher Armstrong radix at twistedmatrix.com
Thu Feb 25 18:54:17 MST 2010


On Thu, Feb 25, 2010 at 7:33 PM, Darren Govoni <darren at ontrenet.com> wrote:
> What you refer to is different than what I need. The real 'Process'
> implementation is new to Python 2.6
> http://docs.python.org/library/multiprocessing.html
> and is not supported in Twisted at the moment. The Process or threads in
> Twisted now, use Python threading/process constructs outside of the new
> multiprocessing module, will suffer from the Python GIL limitations - which
> hinders higher performance computing.
> It works, sure. But its not what I'm asking about.


I think you're a bit confused. You said "use Python threading/process
constructs outside of the new multiprocessing module, will suffer from
the Python GIL limitations".

The "GIL limitations" *only* apply to threads, not processes. You can
take advantage of multiple CPUs in Python by running multiple
processes, no matter what technology you use to start those processes.

-- 
Christopher Armstrong
http://radix.twistedmatrix.com/
http://planet-if.com/




More information about the Twisted-Python mailing list