[Stackless] stacklessocket with threads, and stacklessfile
Christian Tismer
tismer at stackless.com
Thu Aug 9 02:08:51 CEST 2007
Tim,
On Aug 9, 2007, at 1:26 AM, Tim Kientzle wrote:
> Chris,
>
> The problem with today's stacklesssocket is the I/O
> pump tasklet that repeatedly calls select().
> 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.
As I remember this is possible with a timeout of zero,
therefore just serving things that are already available.
But as said, my knowledge is rusty, I just need to get up
onto my Stackless on Rails :-)
> The application that Alec is working on has a mix of
> computation tasklets and I/O tasklets and the current
> stacklesssocket design causes the computation tasklets
> to get stalled everytime select() gets called by the
> I/O pump.
>
> Our proposal: run the select() loop in a separate
> thread so that the select() doesn't block all other
> tasklets.
>
> Does this make sense?
I don't know, yet. But I sware - I will know!
cheers - chris
--
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/78a1ef60/attachment.htm>
-------------- next part --------------
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://stackless.com/cgi-bin/mailman/listinfo/stackless
More information about the Stackless
mailing list