POSIX Shared memory -
what difference between:
- shm_open("test")
- mmap()
- close()
- munmap()
- shm_unlink()
and:
- open("/dev/shm/test")
- mmap()
- close()
- munmap()
- unlink()
the difference see second options not need link -lrt
it same thing except shm_open(test) posix standard , needs librt library, , open(/dev/shm/test) not posix standard , not need librt library. performance equal both solution.
Comments
Post a Comment