Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site genrad.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!genrad!john From: john@genrad.UUCP (John Nelson) Newsgroups: net.unix,net.unix-wizards Subject: Re: Shared Memory Message-ID: <745@genrad.UUCP> Date: Fri, 5-Apr-85 08:32:01 EST Article-I.D.: genrad.745 Posted: Fri Apr 5 08:32:01 1985 Date-Received: Sun, 7-Apr-85 03:29:11 EST References: <564@ahuta.UUCP> <166@uwvax.UUCP> Reply-To: john@genrad.UUCP (John Nelson) Organization: GenRad, Inc., Bolton, Mass. Lines: 11 Xref: watmath net.unix:4133 net.unix-wizards:12724 >> 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.