[Stackless] Stackless / Networking

Andrew Francis andrewfr_ice at yahoo.com
Tue Feb 20 21:19:17 CET 2007


Hello Greg:

--- ghazel at gmail.com wrote:

> Twisted and Stackless can be used in the same
> thread, without callFromThread. Just make the
>reactor.run method be the root tasklet.
> Blocked tasklets can then wait for channels that are
> filled by deferred callbacks in the same thread.

The problem I encountered with running Stackless and
Twisted in the same thread is if the Twisted reactor
blocks waiting (i.e., for an incoming client
connection), Stackless will block. This is okay, if
tasklets just wait for connections. However if you
have other tasklets that could otherwise execute, they
will block too. This cuts down on the Application's
overall concurrency.

Cheers,
Andrew 


 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list