[Twisted-Python] Advise for heavy concurrency

Tristan Seligmann mithrandi at mithrandi.za.net
Sat Dec 1 21:56:59 EST 2007

* Tristan Seligmann <mithrandi at mithrandi.za.net> [2007-12-02 04:50:44 +0200]:

> * Atilla <theatilla at gmail.com> [2007-12-02 00:37:47 +0100]:
> > When it comes to deferToThread - is that actually going to be of any
> > use? Do I get an advantage of running the "send" loop in a seperate
> > thread? What if, say, I never had to send more than 10-50 messages, so
> You cannot call any Twisted functions from a thread, with the exception
Er, I guess I should have worded this more carefully. What I meant is: you cannot call
any Twisted functions from a different thread to the one the reactor is
running in, which includes any thread created with deferToThread.

> of callFromThread; so this would probably be pretty pointless.
mithrandi, i Ainil en-Balandor, a faer Ambar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20071202/56808b93/attachment.pgp 

More information about the Twisted-Python mailing list