Are pointers in a shared memory segment valid for a different process?

BURNS,JIM gt0178a at prism.gatech.EDU
Sat Aug 25 10:45:55 AEST 1990


in article <1990Aug24.115009.24808 at virtech.uucp>, cpcahil at virtech.uucp (Conor P. Cahill) says:
> For other processes:
> 	get segment id
> 	attach segment at default address
> 	get correct attachment address (from the shared memory segment itself)
> 	detach & re-attach at the correct address.

To summarize some points made in a recent similar thread in
comp.unix.wizards, this only works if your OS allows specifying the attach
address, and, if the OS is virtual, the attach address means the same
thing in different process address spaces. Specifying offsets may be more
work, but its more portable.
-- 
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a at prism.gatech.edu



More information about the Comp.unix.wizards mailing list