Re: Placement into shared memory?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> What  is the  current  correct approach  to  instantiating objects  in
> shared memory so that multiple processes can access the C++ objects?

Why exactly do you want to do this? Maybe it is much easier to share
data not objects. Simply then you must create an object in each
process and for data processing use shared memory data (of course some
locking will be needed if data will be changed).

Or try using threads, if i'm not wrong, they exist in the same memory
and they will see your object correctly.

Arturas Moskvinas


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux