在C#中两个进程之间的同步? [英] Synchronization between two processes in C#.?
本文介绍了在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.
我使用C#。
推荐答案
您可以使用Mutex类
you can use the Mutex class
请参阅文件的位置: http://msdn.microsoft。 COM / EN-US /库/ system.threading.mutex.aspx
这篇关于在C#中两个进程之间的同步?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文