[Haskell-cafe]Re: Hugsvs GHC (again)was: Re: Somerandomnewbiequestions

Keith Wansbrough Keith.Wansbrough at cl.cam.ac.uk
Thu Jan 20 07:49:34 EST 2005

> read. I don't see the problem... (Okay, I can see that if select lies, 
> and the
> read takes a long time you might miss the next scheduling timeslot - but
> as far as I am aware select doesn't lie, and read will return immediately
> if select says there is data ready)...

select() _does_ lie for "ordinary files", e.g., disk files.  It
assumes the data is immediately readable, even if it hasn't pulled it
off disk yet.  If the "ordinary" file actually resides on an NFS
volume, or CD, or something else slow, then you have a problem.

--KW 8-)

More information about the Haskell-Cafe mailing list