Home > OS >  Mmap interprocess communication also will write files?
Mmap interprocess communication also will write files?

Time:11-04

Use mmap implement general inter-process communication, want to pass in a file descriptor, then so will the memory space of mapping, speaking, reading and writing, so it will be written to a file, the frequent inter-process communication, frequent to write content mapping memory space, every time is to be written to a file, isn't this supposed to be very slow? The efficiency of how to solve the problem?
Windows in the realization of the memory mapping for interprocess communication, can do not map to the file, there would be no write file operations,
  • Related