我用.net core 2.2 里面一句代码是var mutexSecurity = new MutexSecurity();
跑在windows没问题,跑在mac下的时候出了异常

看了许多文章。似乎System.Threading 下的这些mutex,信号量只能跑在 windows下
https://github.com/dotnet/coreclr/issues/1237
https://github.com/dotnet/docs/issues/3825
https://github.com/oleg-shilo/cs-script/issues/10
https://github.com/dotnet/coreclr/issues/3422
大佬们sos,请求帮助支援
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1805/viewspace-3142327/ ,如需转载,请注明出处,否则将追究法律责任。