It appears that POSIX defines two different optional IPC APIs that provide shared memory: the XSI extension (shmget, shmctl, shmdt) and the Realtime option group (shm_open, shm_unlink). The documentation on opengroup for shmget says, in the Application Usage section, that if I write sofware that uses the XSI routines, it should be easily modified to use the routines in the Realtime extension.
Does this mean that the routines in the Realtime extension should be preferred, if available?
Is one set intended to eventually replace the other?
Which set is more 'future-proof'?
Regards, David
shm{get,ctl,at,dt}
is the traditional System V shmem, andshm_{open,unlink}
is the "new" and improved POSIX shmem. – Manipurshm_open
is faster (on CentOS 6). My Linux book says thatshmget
is more portable. You pick! – Ruddock