[Haskell-cafe] Re: Concurrency questions
apfelmus
apfelmus at quantentunnel.de
Mon Jan 7 05:35:05 EST 2008
Andrew Coppin wrote:
> 2. You have to take the data out of an MVar to read it. In other words,
> only 1 thread can read an MVar at once [by design]. This isn't truly a
> problem in the current case, but it's irritating in principle that I
> can't make it so that once the cell is written, multiple threads can
> read it simultaneously...
This is also known as I-structures i.e. IVar. I think you can simulate
them via MVar with the readMVar function?
Regards,
apfelmus
More information about the Haskell-Cafe
mailing list