[Twisted-Python] Thread

Jean-Paul Calderone exarkun at divmod.com
Wed Dec 6 06:49:50 MST 2006


On Wed, 6 Dec 2006 04:23:32 -0800, Gabriel <gabrielverta at gmail.com> wrote:
>Hi!!
>
>I'm new in Twisted, and I'm having problems with Thread.
>I was looking for it at documentation, and saw that it's not safe
>(!?), but it's possible to run using twisted.python.threadable, I
>haven't understood the thread examples using simple TCP and
>ServerFactoryl, there is anything like reactor.run() using it or can I
>only use threads as client? Can anyone give me a basic example?
>
>Thanks!
>
>from Brazil...
>
>         Gabriel
>www.garimpar.com
>

You don't need threads to do most things in Twisted.  More than that,
threads aren't /helpful/ for doing most things in Twisted.  More than
that, most of Twisted was written so that threads could be avoided.

Jean-Paul




More information about the Twisted-Python mailing list