[Top][All Lists]

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

Parallel Guile code called from parallel C code

From: pablo
Subject: Parallel Guile code called from parallel C code
Date: Wed, 10 Aug 2011 17:49:46 +0200

Hello everyone,
I have a question about calling parallel Guile functions from a
parallel C program.

Suppose the situation is such that there is a parallel C program and
two threads which call Guile functions and that these Guile functions
use future to go parallel.

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?)

I'm not sure my question is very clear, sorry if it's not the case :-S.



reply via email to

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