[Haskell-cafe] Spurious program crashes

Joel Reymont joelr1 at gmail.com
Thu Nov 17 09:07:23 EST 2005


Maybe one of the Simons can comment on this. I distinctly remember  
trying the mdo approach to kill the other thread and getting burned  
by that. Don't know why I forgot to mention it.

On Nov 17, 2005, at 2:03 PM, Sebastian Sylvan wrote:

> What I do remember is that the timeout and parIO functions in the
> concurrent programming papers I found were NOT correct. killThread did
> NOT behave as expected when I killed an already killed thread.
> I tried multiple tricks here (including some which required recursive
> do-notation) to try to get the parIO function to only kill the *other*
> thread.
> This could be done by having the two spawned threads take their
> computations in an MVar along with the threadID of the other thread.

--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list