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,
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
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
> >
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
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
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
&
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