[Twisted-Python] Threaded Twisted?
behnel_ml at gkec.informatik.tu-darmstadt.de
Wed Oct 20 08:08:11 EDT 2004
Bob Ippolito schrieb:
> Multiple processors, multiple processes. Multiple processes is a good
> model anyways because it scales to clusters of machines.
True. That's actually a current side effect of my program.
> It's probably not as expensive as having a Global Interpreter Lock (GIL)
> that prevents multiple threads from running Python code at the same
> time, diluting any benefits you would see from concurrent reactors.
Sure, the GIL. I read about it when I started using Python, but I must
have forgotten it.
I guess you're right, multiple processes is simple to do and it does even
have some advantages here.
More information about the Twisted-Python