Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Synchronization between two processes in C#.?

Is there any way so that we can synchronize two independent processes? Like if they are sharing a resource, I would like to sync them.

I am using C#.

like image 449
Sumeet Avatar asked May 09 '26 17:05

Sumeet


2 Answers

you can use the Mutex class

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

like image 145
Alon Avatar answered May 12 '26 05:05

Alon


You can use WCF with pipe binding, or named synchronization objects, Mutex for example for synchronization between two processes

like image 33
Arsen Mkrtchyan Avatar answered May 12 '26 05:05

Arsen Mkrtchyan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!