How to use shared memory in android native code?

百般思念 提交于 2019-12-01 11:28:53

Android intentionally doesn't provide SysV IPC. Try to avoid using of shared memory or, if you really want, look for examples of using ashmem.

Well, I found this github project and well it works! https://github.com/pelya/android-shmem

Like a magic, it works perfectly. You can use shared memory in android across independent processes using shmget(), shmat() and shmdt() API's seamlessly. Give it a try.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!