Shared Memory

John Nelson john at genrad.UUCP
Fri Apr 5 23:32:01 AEST 1985


>> 	With shared memory, If the process that first created or 
>> reserved the memory exits/terminates can another process
>> still access what ever was in that memory?
>
>The shared memory partition is not actually deallocated until a shmctl()
>is done to deallocate it.
>
Actually, the shared memory partition is not deallocated until a shmctl()
is done to destroy it, and all the current users of that partition have
released it (or terminated).  Note that after the shmctl that destroys the
partition, no new process can attach to that segment.



More information about the Comp.unix mailing list