Cross-process read-write synchronization primative in .NET?
问题 Is there a read/write locking mechanism that works across processes (similar to Mutex, but read/write instead exclusive locking)? I would like to allow concurrent read access, but exclusive write access. 回答1: No. As Richard noted above, there is no such out of the box mechanism in .NET. This is how to implement it using a mutex and a semaphore. Method #1 is described in http://www.joecheng.com/blog/entries/Writinganinter-processRea.html, quoting: // create or open global mutex GlobalMutex