Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

Robin Becker robin at reportlab.com
Thu Nov 9 15:39:27 CET 2006

Paul Boddie wrote:

> My impression is that POSH isn't maintained any more and that work was
> needed to make it portable, as you have observed. Some discussions did
> occur on one of the Python development mailing lists about the
> possibility of using shared memory together with serialisation
> representations faster than pickles (which also don't need to be
> managed as live objects by Python), and I think that this could be an
> acceptable alternative.

your impression is correct, when I contacted the author some while ago he 
maintained that it was a proof of concept only. When I compiled this today with 
python-2.4.2 the example fails with this rather cryptic message

$ python Matrix.py
Traceback (most recent call last):
   File "Matrix.py", line 6, in ?
     import posh
   File "/usr/local/lib/python2.4/site-packages/posh/__init__.py", line 14, in ?
     import _core
RuntimeError: semaphore set creation failed

but that's most likely something to do with not allocating a semaphore of the 
right sort or something.

I think it uses sysv semaphores and although freeBSD 6 has them perhaps there's 
something I need to do to allow them to work.

> Paul

Robin Becker

More information about the Python-list mailing list