Semaphore lock resulting in a deadlock

后端 未结 0 1982
失恋的感觉
失恋的感觉 2021-02-05 12:07
public class SampleData
{
 private static readonly Semaphore pool = new Semaphore(0,1);

 public string Data => getFromFile();

 private static string getFromFile()
          


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