c - What is the difference between writing to a file and a mapped memory? -
I have the following questions related to handling and mapping files ( Please help me answer all the questions. Thank you very much earlier. * Edit: Sharing Files Between Thread * As far as I know, if we are between two threads (not process) If you share a file, then use it instead of using mmap ):
mmap -
PROT_NONE ,
PROT_READ ,
PROT_WRITE , then The same level of protection can be obtained by using the files
O_RDONLY ,
O_RDWR etc. Then why
mmap ?
mmap memory, if we return that storage location by MMAP, then does it even simultaneously < / Ol>
mmap in the archive and then instead of using the file directly.
Comments
Post a Comment