Don wrote: [snip]
I think shared memory is an example of memory resource that's not freed bythe OS on program exit.Really? That sounds like an OS memory leak. Security issue, too: run your program, allocated shared memory, then exit. Repeat until all memory is exhausted.
Run your program, create a file, then exit. Repeat until all disk space is exhausted.
SYSV IPC objects have a persistent identifier through which they can be accessed by multiple processes.
-- Robin KAY