Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Or, can I prevent shared memory from being paged out, so a pointer to the memory is constant? (Or is this the case anyway?)
Using mlock() for example?
Thanks, Thomas
The pointer is constant, independent of whether the os pages out the memory or not.
You can't assume it stays in physical memory (so: mlock it) -- that doesn't imply that the address of the shared segment changes.
Thank you for your helpful answers.