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

Glynn Clements glynn at gclements.plus.com
Wed Jan 19 15:33:00 EST 2005


Simon Marlow wrote:

> We do use a thread pool.  But you still need as many OS threads as there
> are blocked read() calls, unless you have a single thread doing select()
> as I described.

How does the select() help? AFAIK, select() on a regular file or block
device will always indicate that it is readable, even if a subsequent
read() would have to read the data from disk.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the Haskell-Cafe mailing list