[Haskell-cafe] More threading confusion

Robert Dockins robdockins at fastmail.fm
Thu Aug 17 16:23:27 EDT 2006

On Aug 17, 2006, at 3:48 PM, Creighton Hogg wrote:

> Good afternoon Haskellers,
> So I'm trying to understand how STM works, and wrote a quick  
> 'eating philosophers' example to see if I understood how it's  
> supposed to work.
> The problem is that while it executes, it doesn't appear to *do*  
> anything.
> Did I completely write things wrongheadedly or am I being bitten by  
> something more subtle?

 From a quick read, it looks like your program doesn't produce any  
output until a philosopher finishes 10000 think/eat iterations.   
Something tells me that could take awhile....

Rob Dockins

Speak softly and drive a Sherman tank.
Laugh hard; it's a long way to the bank.
           -- TMBG

More information about the Haskell-Cafe mailing list