简体   繁体   中英

System V shared memory in Python?

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 repositories, or Python standard libraries (now or in future releases).

如果您不想使用任何非标准的Python库,也许您可​​以使用ctypes自己包装所需的函数?

此页面提供了一个功能矩阵,可帮助您在posix_ipcsysv_ipcshm模块之间进行选择。

Google找到了sysv_ipc

处理包还支持共享内存对象,适用于unix / mac / windows。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM