Hello,
I have asked you about Windows critical sections and the starvation
problem, and i have just read the following:
"The change to unfair locks clearly has the risk of leading to
starvation. But, statistically speaking, timing in concurrent systems
tends to be so volatile that each thread will eventually get its turn to
run, probabilistically speaking. Many more programs would suffer from
the convoy problems resulting from fair locks than would notice
starvation happening in production systems as a result of unfair locks."
read here:
http://joeduffyblog.com/2006/12/14/anticonvoy-locks-in-windows-server-2003-sp1-and-windows-vista/
So as you have noticed the Windows critical section has become unfair
and since it has become unfair starvation can happen now with windows
critical section etc. so some threads may starve for a long time and
this not acceptable i think, and not acceptable for me.