Posix shared memory vs mapped files

后端 未结 3 1209
情话喂你
情话喂你 2021-01-31 04:11

Having learnt a bit about the subject, can anyone tell, what is the real difference between POSIX shared memory (shm_open) and POSIX mapped files (mmap)?

Both seems to u

3条回答
  •  囚心锁ツ
    2021-01-31 04:30

    The distinction is not always clear. Shared memory can be implemented via memory mapped files. An excellent write on this can be found here (as applied to C/C++ programming).

提交回复
热议问题