<br>hi again everyone,<br><br>I am giving a tech talk soon, and aspire to show an example from Chapter 28 of RWH on the STM monad.<br><br>My example is just a watered down version of the &quot;transfer wealth&quot; example in the book.  However it is<br>
single threaded.<br><br>Q: is there an &quot;easy&quot; example of illustrating 2 threads that do something (trivial is fine)? I believe that the book constructs a <br>thread library/manager of sorts but I wonder if there is something easier.<br clear="all">
<br>Though I&#39;m not sure how to square this with my example, for now I&#39;d love to see an example of starting up<br>2 threads that do something and block until a keystroke is entered in the terminal.<br><br>My apologies if this is too vague or too much &quot;can you do my homework?&quot; ! <br>
<br>thanks<br>Michael<br><br>-- <br>----------------------<br>Michael Easter<br><a href="http://codetojoy.blogspot.com">http://codetojoy.blogspot.com</a>: Putting the thrill back in blog<br><br><a href="http://youtube.com/ocitv">http://youtube.com/ocitv</a> -&gt; Fun people doing serious software engineering<br>