[Haskell-cafe] Re: Thread pool in GHC

Simon Marlow simonmar at microsoft.com
Wed Sep 14 09:35:39 EDT 2005


On 07 September 2005 16:04, Dinh Tien Tuan Anh wrote:

> 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. 

My advice would be to try without a thread pool first, and see if you
have any performance problems.  My guess is that you won't - threads are
so lightweight that you might end up with *worse* performance if you use
a thread pool.

Cheers,
	Simon


More information about the Haskell-Cafe mailing list