[Stackless] Eliminating Busy Waits and Unnecssary Sleeps
Edward Faulkner
ef at alum.mit.edu
Wed Aug 8 20:59:10 CEST 2007
Having seen several questions go by lately about how to properly do IO
without arbitrary sleeps or busy waits or thread pools, I decided to
post some code that others may find helpful.
This example does arbitrary IO on both sockets and files, and provides
channels with timeouts, without any of the above-mentioned problems.
There's nothing to tune, so it just works.
The code is here: http://sweetbytes.net/stackless_io.html
-Ed
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://stackless.com/cgi-bin/mailman/listinfo/stackless
More information about the Stackless
mailing list