Light (general) Inter-Process Mutex/Wait/Notify Synchronization?

Aaron Brady castironpi at
Tue Apr 28 07:39:19 CEST 2009

On Apr 28, 12:20 am, Gunter Henriksen <gunterhenrik... at>
> > If you don't want to use a 3rd party module you could
> > use the multiprocessing module
> That is definitely good for when I have a tree of
> processes which are all Python applications.  I use
> it for that.  But I am looking for something where
> the Python application can interact conveniently
> with an arbitrary external application.  Using a
> socket/pipe and shared memory is convenient, but
> not feasible when system call overhead matters.

You could write your own '.pyd' or '.so' extension that merely brokers
the OS synchronization calls.  The 'ctypes' module may be enough.

You will need a way to get the owner's pid and synch. object handle to
the remote process of course.

More information about the Python-list mailing list