简体   繁体   English

System V在Python中共享内存?

[英]System V shared memory in Python?

How can I make use of the shmat() , shmdt() , shmctl() , shmget() calls from Python? 如何使用Python的shmat()shmdt()shmctl()shmget()调用? Are they hidden somewhere in the standard library? 它们隐藏在标准库的某个地方吗?

Update0 Update0

I'm after System V bindings that can be found in the Ubuntu repositories, or Python standard libraries (now or in future releases). 我正在使用可以在Ubuntu存储库或Python标准库(现在或将来的版本)中找到的System V绑定。

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

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

Google找到了sysv_ipc

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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