Semaphores

CSC 213 - Operating Systems and Parallel Algorithms - Weinman



Answer the following questions. Record your answers in your Reading Journal.
  1. Identify the sentence you believe makes the best distinction between condition variables and semaphores. Briefly (3-5 sentences) explain your selection.
  2. Identify the sentence from today's reading that expresses the most important thing a programmer (you!) should remember when using semaphores. Briefly (3-5 sentences) explain your selection.
  3. Give an example from your own experience that manifested the hold-while-waiting flaw exhibited by the solution in Figure 31.7. Briefly explain the resources, actors, and deadlock-causing relation among them.