Synchronization between two processes in C#.?

前端 未结 3 1943
北恋
北恋 2021-01-24 01:49

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#.

3条回答
  •  既然无缘
    2021-01-24 02:14

    you can use the Mutex class

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

提交回复
热议问题