guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parallel Guile code called from parallel C code


From: Ludovic Courtès
Subject: Re: Parallel Guile code called from parallel C code
Date: Sun, 21 Aug 2011 11:22:53 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Hi,

pablo <address@hidden> skribis:

> The Guile doc says "Internally, a fixed-size pool of threads is used
> to evaluate futures, (...) the pool contains one thread per available
> CPU core, minus one, to account for the main thread."
>
> Then how does this work in the situation I described? Do the two
> concurrent parallel Guile functions use threads from the same pool or
> is there actually two pool? (ie. does each C threads calling a Guile
> function have an independent Guile environment regarding the possible
> parallelization of the Guile function itself?)

There’s a single thread pool per Guile instance.  See ice-9/futures.scm:
there’s a global variable holding a list of threads, basically.

HTH,
Ludo’.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]