[Stackless] Help using stackless with threads

Richard Tew richard.m.tew at gmail.com
Tue Jul 15 14:45:14 CEST 2008

On Tue, Jul 15, 2008 at 4:41 AM, inhahe <inhahe at gmail.com> wrote:
> Can someone help me with using stackless with python threads.  I'm
> trying to make a thread pool for database access using stackless
> channels to activate the threads because I can't use signals because
> I'm on Windows.  So I run 4 threads (using the thread module) and each
> thread runs 1 stackless tasklet in an infinite loop that waits to
> receive from a unique channel.  But it seems all four of them fall
> through the receive() call each iteration - whether I send something
> or not - and I'm guessing it's because each one thinks that it's the
> last tasklet running because it's the only tasklet in its thread.  So
> how do I fix this?  Here's the code I have..

What version of Stackless are you using?  Are you using an SVN branch?
 An archived source code snapshot from the web site?  One of the

If it is SVN, what revision do you have?


More information about the Stackless mailing list