Run one process at a time for a critical section

后端 未结 0 556
遥遥无期
遥遥无期 2020-12-30 23:50

I had previously implemented it in this way.

using (var mutex = new Mutex(true, "MyMutex"))
{
    try
    {
        // critical section
    finally
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题