On a unix system, I would use a shared memory buffer (see shm_open()), or if it is not available, -mapped memory with the MAP_SHARED flag, see the differences in the OS, but http://en.wikipedia.org/wiki/Mmap
shm_open mmap , ( ), , , , , , (// ..).
- , , , /. , -, , ///etc.
, .