Re: Race condition on loading packages from 2 maxima processes in parallel?
Raymond Toy <[email protected]> Mon, 15 Jun 2026 14:31:34 -0700
| Newsgroups | gmane.comp.mathematics.maxima.general |
|---|---|
| Message-ID | <[email protected]> |
On 6/15/26 10:43 AM, Robert Dodier wrote: > On Sun, Jun 14, 2026 at 5:10 AM Gunter Königsmann via Maxima-discuss > <[email protected]> wrote: > >> wxMaxima on every commit creates a new virtual machine, compiles wxMaxima in that machine and runs a few hundred tests in that machine. >> >> If it runs more than one test in parallel sometimes maxima fails to load draw. >> >> My theory is: >> >> One maxima process tries to load draw, compiles that package and starts saving it. >> A second maxima process tries to load the compiled draw package while that compiled package still being written. > Another potential source of problems is that Maxima wants to launch > Gnuplot as a long-running process and talk to it through a pipe. I'm > not sure what's going to happen if two instances of Maxima want to do > some plotting -- does each instance of Maxima get a separate instance > of Gnuplot, or do they inadvertently try to use the same one? (Both From gnuplot_defs.lisp, it looks like each Maxima instance will run gnuplot with a pipe (|start-gnuplot-process|), so these would be separate. But if you’re talking about two instances of Maxima running in separate threads, I guess they’ll use the same gnuplot process, assuming |*gnuplot-stream*| is the same variable in both threads. I don’t use threaded lisp, so I don’t know how that works. ​ _______________________________________________ Maxima-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maxima-discuss