On Apr 28, 12:20 am, Gunter Henriksen <gunterhenrik...@gmail.com> wrote: > > 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. -- http://mail.python.org/mailman/listinfo/python-list