Synchronization between two processes in C #.?

Is there a way so that we can synchronize two independent processes? For example, if they use a resource, I would like to synchronize them.

I am using C #.

0
source share
3 answers

you can use the mutex class

see the documentation here: http://msdn.microsoft.com/en-us/library/system.threading.mutex.aspx

+4
source

You can use WCF with a channel binding or named synchronization objects, for example, Mutex to synchronize between two processes

+2
source

.

You can also implement the API in WCF using named pipes, which can give you good synchronization in OO code without system calls and complete the test. Named pipes will also give you not only synchronization, but also a message.

0
source

All Articles