[Haskell-cafe] Re: Thread pool in GHC

Dinh Tien Tuan Anh tuananhbirm at hotmail.com
Wed Sep 7 11:03:32 EDT 2005


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



More information about the Haskell-Cafe mailing list