Subj : Re: Challenge: Multithreading & Synchronization To : comp.programming.threads From : David Schwartz Date : Fri May 20 2005 08:35 pm "Uenal Mutlu" <520001085531-0001@t-online.de> wrote in message news:d6m0di$kjr$01$1@news.t-online.com... > Wrong. All the effort is because it IS shared! If yo don't see it then I'm > sorry for you: > > thread1: > sets the shared condition variable. > > thread2: > sets the shared condition variable. > > thread3: > waits for the shared condition variable to have a specific value. > > Do you now understand that it is shared by multiple threads? > The variable could also be set to any other value but just the 0 and 1. Show me in code how you wait for a condition variable without unsharing it. By "unsharing it", I mean making it no longer shared in the CPU's cache. DS .