how to catch GHC "no threads to run" exception?

Volker Stolz stolz@i2.informatik.rwth-aachen.de
Fri, 2 Aug 2002 09:27:33 +0200


In local.haskell, you wrote:
> Since I have 3 threads waiting on takeMVar, do I have to wrap
> all of them with Exception.catch?

Yes. Especially since ghc-5.04, you cannot be sure which of the
blocked threads will get killed first:
http://haskell.org/pipermail/glasgow-haskell-users/2002-July/003779.html
-- 
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
http://news.bbc.co.uk: The Israeli army destroyed the bomber's
family's house afterwards, a military statement said.