Data Structures in Shared Memory

Phill Everson everson at CompSci.Bristol.AC.UK
Tue Feb 6 19:12:12 AEST 1990


Machine: SparcStation 1
OS: SunOS 4.03

I'm trying to use shared memory (shmctl(), shmat() etc etc) to store
some data that will be accessed by a number of processes. It all works fine
with the obvious restriction that the data structure so stored must be 'flat'
ie no pointers, as these would then most likely point to an address in another
process' address space. Has anyone done any work on getting non-'flat' data
structures (ie with pointers to other areas of the same shared memory 
segment) to work? 

Any pointers, hints etc would be appreciated - if you email I will post a
summary if worthwhile. Thanks for your time.

Phillip G. Everson
Senior Software Engineer                  Medical Imaging
Philips Radiotherapy Systems              Dept. Computer Science
Horfield Road, Bristol, UK                Bristol University, UK



More information about the Comp.unix.wizards mailing list