[Stackless] stacklessocket with threads, and stacklessfile

Christian Tismer tismer at stackless.com
Thu Aug 9 02:19:01 CEST 2007

Hi Edward,

On Aug 9, 2007, at 1:37 AM, Edward Faulkner wrote:

> On 8/8/07, Tim Kientzle <tim at metaweb.com> wrote:
>> Remember that select() is itself a blocking system call,
>> so the I/O pump invokes it with a short timeout
>> so that other tasklets get serviced.
> If there are other runnable tasklets, just invoke select() with a
> timeout of zero, and then call schedule().  If there are not other
> runnable tasklets, invoke with no timeout (because there's nothing
> else to do, so blocking is ok).  If there are tasklets that want to
> wake up in the future, invoke select() with the appropriate timeout.
> That's how my example works:
> http://sweetbytes.net/stackless_io.html

As far as I understand things, this looks pretty clean.
I'm anyway not yet in the position to judge anything.
But it is interesting to make the timeout a channel property.

Will learn more -- chris     - thanks
Christian Tismer             :^)   <mailto:tismer at stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
       whom do you want to sponsor today?   http://www.stackless.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20070809/6ca26bf5/attachment.htm>
-------------- next part --------------
Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list