
7 Sep
2005
7 Sep
'05
3:03 p.m.
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 concurrency. To be perfectly honest, I've found that my solution is completely useless in practise. I made up the solution cos I reconned that tweaking GHC runtime heap size would be harder than making a threadpool (it isn't). Basically, all the usual reasons for using a threadpool just don't apply in Haskell.
_________________________________________________________________ MSN Messenger 7.5 is now out. Download it for FREE here. http://messenger.msn.co.uk