Hi, Andy Wingo <wi...@pobox.com> skribis:
> On Wed 08 Feb 2012 05:03, Nala Ginrut <nalagin...@gmail.com> 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’.