Condition Variable vs Semaphore example
<p>I'm having a hard time solving this homework problem. Does calling x.signal() in one thread and later x.wait() in another thread produce a different result when x is a condition variable and when x is a semaphore?</p>

<p>My guess is that in this particular case it won't matter if x is a condition variable or a semaphore.</p>

<p>Thank you for help!</p>