[Haskell-beginners] basic threading

Henk-Jan van Tuyl hjgtuyl at chello.nl
Wed Mar 4 08:46:02 EST 2009

On Wed, 04 Mar 2009 13:33:37 +0100, Michael Easter <codetojoy at gmail.com>  

> I am giving a tech talk soon, and aspire to show an example from Chapter  
> 28
> of RWH on the STM monad.
> My example is just a watered down version of the "transfer wealth"  
> example
> in the book.  However it is
> single threaded.
> Q: is there an "easy" example of illustrating 2 threads that do something
> (trivial is fine)? I believe that the book constructs a
> thread library/manager of sorts but I wonder if there is something  
> easier.
> Though I'm not sure how to square this with my example, for now I'd love  
> to
> see an example of starting up
> 2 threads that do something and block until a keystroke is entered in the
> terminal.

The page
links to several examples of concurrency; maybe you are also interested in  

Henk-Jan van Tuyl



More information about the Beginners mailing list