[Haskell-cafe] Re: a question about concurrent haskell

Simon Marlow simonmarhaskell at gmail.com
Mon Sep 22 09:50:51 EDT 2008


Manlio Perillo wrote:
>
> P.S.: another question.
> Why, in ghci, every time I call myThreadId, I get a different value?
> 
> Prelude Control.Concurrent> myThreadId
> ThreadId 40
> Prelude Control.Concurrent> myThreadId
> ThreadId 41

GHCi runs each expression in a new thread.

Cheers,
	Simon



More information about the Haskell-Cafe mailing list