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

Simon Marlow simonmar at microsoft.com
Tue Jan 11 11:43:39 EST 2005

On 11 January 2005 14:15, Gracjan Polak wrote:

> Simon Marlow wrote:
>  > There's a big lock on File.  If you want to do truly concurrent
>  reading, > you can make multiple FileInputStreams, each of which has
>  its own file > descriptor (the Unix implementation uses dup(2)).
>  >
> Original and descriptor returned by dup or dup2 share file pointer.


You're right!  Serves me right for assuming that POSIX would have
sensible semantics.  Perhaps this API isn't implementable, in its
current state.


More information about the Haskell-Cafe mailing list