I have a query on MAP_PRIVATE. Once I map a region with MAP_PRIVATE I know that the changes I made are invisible to other process. But I just want to make sure that if some other process which is also running at the same instance, if it makes some modifications to the mmap file, will those changes be visible inside my process (which mapped it using MAP_PRIVATE).
Basically my requirement is that I want to mmap a file at one moment in my application and the condition is that the updates made to this file by other processes should not be visible inside my process until my task is done. So can I mmap it using MAP_PRIVATE safely?
Thanks, Ram