[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ice-9 thread-pool
From: |
Ludovic Courtès |
Subject: |
Re: ice-9 thread-pool |
Date: |
Wed, 08 Feb 2012 14:39:41 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux) |
Hi,
Andy Wingo <address@hidden> skribis:
> On Wed 08 Feb 2012 05:03, Nala Ginrut <address@hidden> writes:
>
>> Well, what if I want to avoid to create new thread repeatedly?
>> I mean recycle or pre-allocate a bunch of threads, then reuse them.
>> How can I reuse a thread-object in Guile?
>
> If I understand you correctly, you would use a thread pool. You'd build
> it yourself. (Of course, if this patch goes in, you'd use it instead.)
Heheh. :-)
I was asking this question because I view thread pools as an
implementation technique, not as an API.
The API would be futures for computation, and something different for
asynchronous I/O. For example, Oleg K. shows a nice approach to that
similar to futures at <http://okmij.org/ftp/meta-future/>.
Thanks,
Ludo’.