Determine if only one instance is running: Difference between revisions

Content added Content deleted
Line 250: Line 250:
<lang csharp>
<lang csharp>
// Use this class in your process to guard against multiple instances
// Use this class in your process to guard against multiple instances
//
// This is valid for C# running on Windows, but not for C# with Linux.
//
using System;
using System;
using System.Threading;
using System.Threading;