views:

65

answers:

3

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.

A: 

System.Threading.Mutex has a mutex that can be used for intra-process communication. If you would like functionality that it doesn't support, it can be implemented via a mutex.

McKay
Do you know of any samples that implement a read/write mutex?
Jeremy
A: 

Have you looked at System.Threading.ReaderWriteLock? Here's the MSDN Link.

AllenG
That's not cross-process
Zippit
Ah. Misuderstood the question (still on first cup of coffee). I'll leave this up for a few minutes and then delete it.
AllenG
+3  A: 
Richard