有什么方法可以让我们同步两个独立的进程吗?就像他们共享资源一样,我想同步它们.
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.
我正在使用 C#.
可以使用 Mutex 类
you can use the Mutex class
在此处查看文档:http://msdn.microsoft.com/en-us/library/system.threading.mutex.aspx