fork()

Gordon McMillan gmcm at hypernet.com
Tue Jun 8 11:38:39 EDT 1999


Stephan Houben wrote:
...
> Don't know if anyone wrote a Python wrapper around the POSIX shared
> memory stuff. However, you probably don't want/need to do that. The
> reason is that there's basically no (portable) way to get malloc()
> to allocate new objects in the shared memory, so you can't create
> Python objects in the shared memory. So you can probably only access
> the shared memory as a special array a la the "array" module.

Vladimir Marangozov has a SysV shared memory / semphore module at 
http://sirac.inrialpes.fr/~marangoz/python/shm/.

Like Mark Hammond's Win32 shared memory extension it uses a file like 
API.

Probably not what's needed in the context of this thread, but handy 
nonetheless.

- Gordon




More information about the Python-list mailing list