title: Implementing Semaphores, locks and condition variables
body: <p>I wanted to know how to go about implementing semaphores, locks and condition variables in C/C++. I am learning OS concepts but want to get around implementing the concepts in C.</p>
  
  <p>Any tutorials?</p>