c#多线程学习笔记二
摘要:1:Mutex类可以同步两个单独的程序,只对一个线程授予对共享资源的独占访问。具名的互斥量是全局的操作系统对象,请务必正确关闭互斥量,最好使用using代码块来包裹互斥量对象。 示例代码: static void Main(string[] args) { const string MutexNam
阅读全文
posted @ 2019-03-15 17:51
posted @ 2019-03-15 17:51
posted @ 2019-03-13 17:14