On Windows / .NET, named Mutex can be used to synchronize multiple processes. Unfortunately, Mono does not quite support this on Linux. Their notes suggest that Linux does not support this feature of Windows, and it would be unreliable to imitate it. It is best to avoid the proposed hack in order to enable it anyway.
So what are the alternatives offered? I need my program to be safe to run at the same time, only a short section should be synchronized with other instances.
Ultimately, the application should be deployed to Ubuntu Linux with Mono 2.10, but for testing it would be very useful if it also works on Windows 7 with .NET 4.
source share