Philippe Elbaz-Vincent on Tue, 16 Aug 2005 00:07:08 +0200

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

PARI and POSIX threads


Is there a way to use PARI (i.e., in lib mode) inside a program
which uses posix threads (under Linux/2.6 with glibc 2.2.5 on x86_64) ?
(and of course knowing that there will be calls to PARI functions inside threads). As I understand the troubles come from the garbage collector as the variables of the PARI stack are globals and as soon that 2 threads run concurently the PARI stack would be likely messed up [in fact I tested it and indeed it is the case].

Is there a solution to this problem ?
[is it technically doable to run several instances of PARI inside the same program ?]

Thanks for your help.