436 Subj : Re: trying to understand simultaneous wakeup of all threads on pthreads_cond_broadcast() To : comp.programming.threads From : David Schwartz Date : Sat Feb 05 2005 05:27 pm wrote in message news:42053462$1_2@news.cybercity.ch... >> Why would you want randomness? > > Fairness? Threads won't file union grievances. There is no reason to be fair to them. If you care which thread runs, you use priorities. Otherwise, you make whichever thread happens to run do the work you needed it to do. >> You would normally want whichever thread ran the most recently to run >> again. (Hottest in the cache.) > > Generally yes, (although it also depends on the rest of the cache entries > I suspect). > >> For some reason, people seem to think that POSIX implementations >> should be tuned for the minimal possible performance. > > It's not what I had in mind when asking this question and having some > experience with POSIX style programming, I certainly can defy that myth. Good. :) DS . 0