
sharing data between processes
Quote:
> > Shadi schrieb:
> > > i have the following situation: a process has data that is (for now)
> > > stored in a linked list. this data changes and rearranges. the problem
> > > is that i want a number of processes to access this data. i thought of
> > > shared memory but i have trouble accessing a struct allocated by the
> > > first process from other processes. does any one have an idea of how
to
> > > 'publicize' a dynmic list between processes in any way?
> > Generally what you can do is either use shared memory and a semaphore
> > mechanism (some systems support this with special instructions) or use
> > communication connections to send the data from one process to another
> > (like pipes or sockets or links).
> The main issue though is how to handle the dynamic nature of the data
> structure in shared memory.
You will find that each operating system has very different ways to access
shared memory. VMS, NT, OS/2 and UNIX will all have completely different
calls to do this (though VMS and NT (and OS/2?) have a [cough] POSIX layer
if you like). If you want a consistent metaphor, I suggest ACE. At any
rate, this entire query, thread and response are fully and in every way _off
topic_.