[Stackless] stackless inter-thread queues

Paul Sijben sijben at eemvalley.com
Sat Mar 14 16:59:17 CET 2009


Hi Andrew,

the code works fine with regular threads and queues, although somewhat
slow. I'll try it with uthread, if that does not solve it. I'll be happy
to post and discuss my code.

cheers,

Paul

Andrew Francis wrote:
> Hi Paul:
>
> I would have to look at your code to see what is happening. However from my past experiences, race conditions and blocking on the wrong tasklet were indictators of design problems. That said, there is a Queue class in the uthread.py library.
>
> http://code.google.com/p/stacklessexamples/source/browse/trunk/libraries/uthread-ccp/uthread.py
>
> Cheers,
> Andrew
>
>
> --- On Sat, 3/14/09, stackless-request at stackless.com <stackless-request at stackless.com> wrote:
>
>   
>> From: stackless-request at stackless.com <stackless-request at stackless.com>
>> Subject: Stackless Digest, Vol 62, Issue 6
>> To: stackless at stackless.com
>> Date: Saturday, March 14, 2009, 4:00 AM
>> Send Stackless mailing list submissions to
>> 	stackless at stackless.com
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://www.stackless.com/mailman/listinfo/stackless
>> or, via email, send a message with subject or body
>> 'help' to
>> 	stackless-request at stackless.com
>>
>> You can reach the person managing the list at
>> 	stackless-owner at stackless.com
>>
>> When replying, please edit your Subject line so it is more
>> specific
>> than "Re: Contents of Stackless digest..."
>>
>>
>> Today's Topics:
>>
>>    1. stackless inter-thread queues (Paul Sijben)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Sat, 14 Mar 2009 11:49:26 +0100
>> From: Paul Sijben <sijben at eemvalley.com>
>> Subject: [Stackless] stackless inter-thread queues
>> To: stackless at stackless.com
>> Message-ID: <49BB8BB6.5040505 at eemvalley.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> I am banging my head against the wall for far too long now.
>>
>> For my project, I really (and urgently) need something that
>> will give me
>> Queue behavior that will work in a mixed stackless &
>> threading
>> environment. (networking & graphical user interface, a
>> hell scheduling-wise)
>>
>> I have emulated this in my code but am running into
>> race-conditions.
>> The problem is that a channel.send() blocks. In my code it
>> sometimes
>> blocks on the wrong channel and hence starves the tasklet
>> that can
>> actually keep things going.
>>
>> So please, does someone have a working stackless Queue that
>> works
>> interthread? I am at my whit's end here.
>>
>> Paul
>>
>> -- 
>> Paul Sijben                    	        tel: +31334566488
>> Eemvalley Technology     		fax: +31334557523
>> the Netherlands                   	http://eemvalley.com    
>>
>>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> Stackless mailing list
>> Stackless at stackless.com
>> http://www.stackless.com/mailman/listinfo/stackless
>>
>> End of Stackless Digest, Vol 62, Issue 6
>> ****************************************
>>     
>
>
>       
>   

-- 
Paul Sijben                    	        tel: +31334566488
Eemvalley Technology     		fax: +31334557523
the Netherlands                   	http://eemvalley.com    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20090314/b8c344c3/attachment.htm>


More information about the Stackless mailing list