title: Difference between Mutex and Semaphore=1?
body: <p>Is there any difference between the following two variables:</p>
  
  <pre><code>Mutex m;
  Semaphore s = 1;
  </code></pre>
  
  <p>I think they are the same but in a video I am watching about a formula to the reader/writer problem, it says to use <code>5</code> semaphores, each of them starting at the value of <code>1</code>. I find that interesting because I thought if you have a semaphore at the value of <code>1</code>, then you would just use a mutex.</p>