6 Sep
2015
6 Sep
'15
8:12 p.m.
Waiters are waken up in FIFO order (at least under realtime FIFO scheduling), but if the signaling is done outside
Giovanni Piero Deretta wrote: the critical section, a late thread might acquire the critical section (and consume a resource) after the condition as become true, but before older waiters had a chance to acquire it. This might be particularly important with realtime systems. That's typically what one wants for performance though (absent special FIFO requirements), as that late thread is running (has a CPU) and has its cache hot.