title: How to implement interprocess mutex in .NET Standard 2.1?
body: <p>There is a <a href="https://docs.microsoft.com/en-us/dotnet/api/system.threading.mutex" rel="nofollow noreferrer"><code>Mutex</code></a> class in .NET Standard that can be named in order to support interprocess synchronization. However, it does not support setting <a href="https://docs.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.mutexsecurity" rel="nofollow noreferrer"><code>MutexSecurity</code></a> neither via constructor argument nor via <a href="https://docs.microsoft.com/en-us/dotnet/api/system.threading.mutex.setaccesscontrol#applies-to" rel="nofollow noreferrer"><code>SetAccessControl</code></a>.</p>
  
  <p>When <code>MutexSecurity</code> is not applied, interprocess synchronization is not working on Windows.</p>