Search

C++ Tip

  • Mutexes and Semaphores: Mutex allows only one thread in the critical section.
  • 2 types of mutexes; Lock and Unlock
  • Semaphores allow n threads
    • 1st Operation: wait /decrease
    • 2nd: post/increase
Visit the below link for more details
http://www.math.tau.ac.il/~hayim/courses/os/lecture_notes/lecture5/lecture.html

blog comments powered by Disqus