[Stackless] Question about channels

Christian Tismer tismer at tismer.com
Wed Oct 16 21:43:45 CEST 2002


Russ Cox wrote:
>>As far as I understand channels, they are always blocking, both with reading 
>>and writing. Is there a possibility to make the channels nonblocking?
>>
>>I was thinking about writing a network simulator (just for the fun of it) and 
>>it would come in handy to represent a network node by a tasklet that has its 
>>own eventloop.
> 
> 
> Why does that mean you'd need nonblocking channels?
> What sorts of things do you expect to be doing?
> (I think you can easily get by having only one channel
> for each node, from which it gets inputs like packets,
> but maybe I'm missing something.)

No, that looks like the way to go for me.

> It would be nice to have an alt statement.
> Christian, is there any plan to do that?

Absolutely, it is on my schedule since months.
I have a concept for ALT on paper, PAR as well.
There are a number of things which I need to
implement them efficiently, like notification
and broadcast channels, tiny messenger objects
which can link one tasklet to multiple channels,
etc.
Will come next time, when I finished the IronPort port.

ciao - chris

-- 
Christian Tismer             :^)   <mailto:tismer at tismer.com>
Mission Impossible 5oftware  :     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 89 09 53 34  home +49 30 802 86 56  pager +49 173 24 18 776
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/


_______________________________________________
Stackless mailing list
Stackless at www.tismer.com
http://www.tismer.com/mailman/listinfo/stackless



More information about the Stackless mailing list