title: same file acess by multiple application
body: <pre><code> **This is Writer Application**     
  
    public class LogWritter
            {      
             Mutex mutx = new Mutex(false, @"Global\MySharedLog");
             mutx.WaitOne();
              try
              {
               xmlDoc.Load(_logFilePath);
                ///Write Log Code
                xmlDoc.Save(_logFilePath);
              }
              finally
              {
                  mutx.ReleaseMutex();
              }
            }
  </code></pre>
  
  <p>This is Reader Application</p>
  
  <pre><code>  public class LogReader
           { 
               Load(logFilePath);
                //Reader code    
           }
  </code></pre>
  
  <p>I am writing log in ABC.XML file.That XML file can be shared by multiple processes thats why I use <code>Mutex</code> object for locking purpose means if one process is writing log then at the same time another process is come using <code>Mutex.Waitone()</code> method Wait incoming process while first process completes writing log and release mutext object in finally.
  and i have another Reader application where I want to use ABC.xml file for reading purpose How i use mutext object in Reader application?</p>