Mutex Console Release
<p>This is a console application Wqhen i run the below program it shows a single console
and  i have executed 3 other console from bin directory now my question is<br>
When 1 console is  has been has completed its task . Control  is not going to other console
 it is showing the same display Running(Console 1). How does Running show on other consoles.  </p>

<pre><code>class Program
{
    static Mutex m = new Mutex(true, "demo");

    public static void Main()
    {
        if (!m.WaitOne(1000))
        {
            Console.WriteLine("another");
            Console.ReadLine();
        }
        else
        {
            try
            {
                run();
            }
            finally
            {
                m.ReleaseMutex();
            }
        }
    }
    public static void run()
    {
        Console.WriteLine("running");
        Console.ReadLine();
        Thread.Sleep(1000);
          m.ReleaseMutex();
    }
}
</code></pre>
