Copy-on-write file mapping on windows
问题 I have 3 processes communicating over named pipes: server, writer, reader. The basic idea is that the writer can store huge (~GB) binary blobs on the server , and the reader(s) can retrieve it. But instead of sending data on the named pipe, memory mapping is used. The server creates an unnamed file-backed mapping with CreateFileMapping with PAGE_READWRITE protection, then duplicates the handle into the writer . After the writer has done its job, the handle is duplicated into any number of