Subj : Re: trying to understand simultaneous wakeup of all threads on pthreads_cond_broadcast() To : comp.programming.threads From : David Schwartz Date : Mon Jan 31 2005 09:26 pm wrote in message news:41feb57b_2@news.cybercity.ch... > So how does the linuxthreads implementation guarantee randomness in the > waiting thread selection? Or does POSIX not require randomness for > pthreads_cond_broadcast()? Why would you want randomness? You would normally want whichever thread ran the most recently to run again. (Hottest in the cache.) For some reason, people seem to think that POSIX implementations should be tuned for the minimal possible performance. DS .