Bryan O'Sullivan ha scritto:
On Fri, Sep 19, 2008 at 2:31 PM, Manlio Perillo <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:


    By the way, this phrase:
    "We allow multiple threads to read different chunks at once by
    supplying each one with a distinct file handle, all reading the same
    file"
    here:
    
http://book.realworldhaskell.org/read/concurrent-and-multicore-programming.html#id677193

    IMHO is not correct, or at least misleading.


It's both correct and, er, leading. The files are opened in a single thread, and then the file handles are read by multiple threads.

Ah, right, thanks.
They are read with ByteString.Lazy.



Manlio Perillo
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to