[Scons-dev] SCons with shared resource

Kenny, Jason L jason.l.kenny at intel.com
Wed Nov 20 18:34:13 EST 2013

Technically all tasks in SCons run in parallel, thanks to a GIL. What run in parallel are the subprocess calls to a command line ( as these turn into waits from the python point of view). The easy way to do what you suggest its to add locks around this shared data to force the exeution of one task at a time.


-----Original Message-----
From: scons-dev-bounces at scons.org [mailto:scons-dev-bounces at scons.org] On Behalf Of Alex.Burton at csiro.au
Sent: Wednesday, November 20, 2013 5:03 PM
To: scons-dev at scons.org
Subject: [Scons-dev] SCons with shared resource


I am successfully using scons for batch processing of simulation work.

Unfortunately some of the tasks share resources that prevent them being executed in parallel.
Other tasks are can be run in parallel.

This means that I need to run scons in single processor mode, meaning some tasks are unnecessarily serialised.

I am considering modifying the scons code to allow specification of a shared resource/ mutex for certain tasks.

Does anyone have any advise as to how this is best implemented ?



Alex Burton
Research Engineer - Solar Thermal - Energy Technology - CSIRO
+61 2 4960 6110
+61 416 594 752

Scons-dev mailing list
Scons-dev at scons.org

More information about the Scons-dev mailing list