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

2005-09-14 Thread Simon Marlow
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,

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 concurre

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

2005-09-06 Thread genneth
performance by getting of the overhead of creating new thread. > > TuanAnh > > >From: genneth <[EMAIL PROTECTED]> > >To: Dinh Tien Tuan Anh <[EMAIL PROTECTED]> > >CC: haskell-cafe@haskell.org > >Subject: Re: [Haskell-cafe] Re: Thread pool in GHC > >

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

2005-09-06 Thread Dinh Tien Tuan Anh
repeated for an infinite times, so thread reuse would improve the performance by getting of the overhead of creating new thread. TuanAnh From: genneth <[EMAIL PROTECTED]> To: Dinh Tien Tuan Anh <[EMAIL PROTECTED]> CC: haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] Re: Thread

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

2005-09-05 Thread genneth
t; > >To: haskell-cafe@haskell.org > >Subject: [Haskell-cafe] Re: Thread pool in GHC > >Date: Thu, 4 Aug 2005 16:47:56 + (UTC) > > > >Dinh Tien Tuan Anh hotmail.com> writes: > > > > > > > > > > > Can thread pool be implement

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

2005-09-05 Thread Dinh Tien Tuan Anh
askell-cafe@haskell.org Subject: [Haskell-cafe] Re: Thread pool in GHC Date: Thu, 4 Aug 2005 16:47:56 + (UTC) Dinh Tien Tuan Anh hotmail.com> writes: > > > Can thread pool be implemented in GHC ? > > I have a program that is currently using about 12-15 threads (launch and &

[Haskell-cafe] Re: Thread pool in GHC

2005-08-04 Thread genneth
Dinh Tien Tuan Anh hotmail.com> writes: > > > Can thread pool be implemented in GHC ? > > I have a program that is currently using about 12-15 threads (launch and > kill for infinite times) and when running, especially after Ctrl-C, my > computer got freezed up. And if i ran it several tim