开发者

System V shared memory in Python?

开发者 https://www.devze.com 2022-12-19 06:05 出处:网络
How can I make use of the shmat(), shmdt(), shmctl(), shmget() calls from Python? Are they hidden somewhere in the standard library?

How can I make use of the shmat(), shmdt(), shmctl(), shmget() calls from Python? Are they hidden somewhere in the standard library?

Update0

I'm after System V bindings that can be found in the Ubuntu repos开发者_开发技巧itories, or Python standard libraries (now or in future releases).


If you don't want to use any non-standard Python libraries, perhaps you could wrap the functions you need yourself using ctypes?


Google finds sysv_ipc.


This page offers a feature matrix to help you choose between the posix_ipc, sysv_ipc, and shm modules.


The processing package also supports shared memory objects, and works on unix/mac/windows.

0

精彩评论

暂无评论...
验证码 换一张
取 消