Help for this page

Select Code to Download


  1. or download this
    m-locking
    m-waiting
    t-Locking
    ...
    t-Waiting
    m-locking
    m-waiting     # and again, we both wait...
    
  2. or download this
    If there are no threads blocked in a "cond_wait" on the variable,
    the signal is discarded. By always locking before signaling, you can
    (with care), avoid signaling before another thread has entered
    cond_wait().