On Fri, Mar 24, 2006 at 11:07:53AM +0000, Malcolm Wallace wrote:
> threads, and I assume that since a non-concurrent implementation has
> only one thread, that thread will be trying to MVar-synchronise with
> something that does not exist, and hence be blocked for ever.  I can

Not necessarily.  An MVar is a useful tool in place of an IORef.  It
works well when a given hunk of code is used in a threaded program, but
it also works well in a non-threaded program.  If they are used
correctly, there is no problem.

-- John
_______________________________________________
Haskell-prime mailing list
Haskell-prime@haskell.org
http://haskell.org/mailman/listinfo/haskell-prime

Reply via email to