How to CORRECTLY receive access to data taking place in memory of other
process, if the segment and offset is known.
Ivan Kulkov <guard@crypto.ru> wrote:
How to CORRECTLY receive access to data taking place in memory of other
process, if the segment and offset is known.
There is no correct way to do this – no process should be able to
see/snoop the memory of another process.
You can do explicit shared memory using shm_open() & mmap(). If you
want to share data between processes, this is the way to do it.
If using shared memory, you will also probably want to consider either
using IPC (S/R/R) or semaphore (sem_init, sem_wait, sem_post) for
synchronisation.
-David
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.