<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Andrew,<br>
<br>
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.<br>
<br>
cheers,<br>
<br>
Paul<br>
<br>
Andrew Francis wrote:
<blockquote cite="mid:18283.71389.qm@web34205.mail.mud.yahoo.com"
 type="cite">
  <pre wrap="">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.

<a class="moz-txt-link-freetext" href="http://code.google.com/p/stacklessexamples/source/browse/trunk/libraries/uthread-ccp/uthread.py">http://code.google.com/p/stacklessexamples/source/browse/trunk/libraries/uthread-ccp/uthread.py</a>

Cheers,
Andrew


--- On Sat, 3/14/09, <a class="moz-txt-link-abbreviated" href="mailto:stackless-request@stackless.com">stackless-request@stackless.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:stackless-request@stackless.com">&lt;stackless-request@stackless.com&gt;</a> wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">From: <a class="moz-txt-link-abbreviated" href="mailto:stackless-request@stackless.com">stackless-request@stackless.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:stackless-request@stackless.com">&lt;stackless-request@stackless.com&gt;</a>
Subject: Stackless Digest, Vol 62, Issue 6
To: <a class="moz-txt-link-abbreviated" href="mailto:stackless@stackless.com">stackless@stackless.com</a>
Date: Saturday, March 14, 2009, 4:00 AM
Send Stackless mailing list submissions to
        <a class="moz-txt-link-abbreviated" href="mailto:stackless@stackless.com">stackless@stackless.com</a>

To subscribe or unsubscribe via the World Wide Web, visit
        <a class="moz-txt-link-freetext" href="http://www.stackless.com/mailman/listinfo/stackless">http://www.stackless.com/mailman/listinfo/stackless</a>
or, via email, send a message with subject or body
'help' to
        <a class="moz-txt-link-abbreviated" href="mailto:stackless-request@stackless.com">stackless-request@stackless.com</a>

You can reach the person managing the list at
        <a class="moz-txt-link-abbreviated" href="mailto:stackless-owner@stackless.com">stackless-owner@stackless.com</a>

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 <a class="moz-txt-link-rfc2396E" href="mailto:sijben@eemvalley.com">&lt;sijben@eemvalley.com&gt;</a>
Subject: [Stackless] stackless inter-thread queues
To: <a class="moz-txt-link-abbreviated" href="mailto:stackless@stackless.com">stackless@stackless.com</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:49BB8BB6.5040505@eemvalley.com">&lt;49BB8BB6.5040505@eemvalley.com&gt;</a>
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 &amp;
threading
environment. (networking &amp; 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                           <a class="moz-txt-link-freetext" href="http://eemvalley.com">http://eemvalley.com</a>    




------------------------------

_______________________________________________
Stackless mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Stackless@stackless.com">Stackless@stackless.com</a>
<a class="moz-txt-link-freetext" href="http://www.stackless.com/mailman/listinfo/stackless">http://www.stackless.com/mailman/listinfo/stackless</a>

End of Stackless Digest, Vol 62, Issue 6
****************************************
    </pre>
  </blockquote>
  <pre wrap=""><!---->

      
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Paul Sijben                                    tel: +31334566488
Eemvalley Technology                     fax: +31334557523
the Netherlands                           <a class="moz-txt-link-freetext" href="http://eemvalley.com">http://eemvalley.com</a>    
</pre>
</body>
</html>