title: Monitor vs Mutex
body: <p>I read that mutex is a semaphore with value 1 (binary semaphore) used to enforce mutual exclusion.</p>
  <p>I read this link
  <a href="https://stackoverflow.com/questions/7335950/semaphore-vs-monitors-whats-the-difference/7336799#7336799">Semaphore vs. Monitors - what&#39;s the difference?</a>
  which says that monitor helps in achieving mutual exclusion.</p>
  <p>Can someone tell me the difference between mutex and monitor as both help achieve the same thing (Mutual Exclusion)?</p>