Re: [Haskell-cafe] Concurrency question

2005-09-07 Thread Dmitry V'yal
Donald Bruce Stewart wrote: Can I ask if just using a `seq` works as well? That was enough (now I recall) for the watchdog code I posted earlier. -- Don In my case this doesn't work timeout :: DeepSeq a = Int - IO a - IO (Maybe a) timeout n t = do res - par_io timer thr --timer

Re: [Haskell-cafe] Re: Thread pool in GHC

2005-09-07 Thread Dinh Tien Tuan Anh
So is there a way to reuse thread ? I think eventhough threads in GHC are extremely lighweight, it still make a different if u keep launching and killing thread in so many times. TuanAnh Yes, but AFAIK, threads in Haskell are exceedingly lightweight, as they are only primitives for