[Stackless] Eliminating Busy Waits and Unnecssary Sleeps

seun.osewa at gmail.com seun.osewa at gmail.com
Wed Aug 8 21:19:21 CEST 2007


Hello Edwards,

Hmmm, this reminds me of stacklessfile.py and stacklesssoocket.py.

Can you explain how yours works and show us some sample code?

Thanks and Regards!

On 8/8/07, Edward Faulkner <ef at alum.mit.edu> wrote:
> 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
>


-- 
Seun Osewa
http://www.nairaland.com [vast Nigerian forum]

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://stackless.com/cgi-bin/mailman/listinfo/stackless



More information about the Stackless mailing list