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

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to