select.select() on Regular Files?

Michael Hudson mwh at python.net
Thu Mar 7 04:35:05 EST 2002


jimd at vega.starshine.org (Jim Dennis) writes:

>  O.K. so what can I do for asynchronous I/O notification on 
>  regular files?  How can I efficiently block and wake up when
>  I/O is available on any of my file descriptors?  
> 
>  Don't tell me I have to go into a sleep and poll stat() or
>  seek() loop!  It's hard to imagine that UNIX got this far 
>  without offering a better solution than that!

OK, I won't tell you that.

Cheers,
M.

-- 
3. Syntactic sugar causes cancer of the semicolon.
  -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html



More information about the Python-list mailing list