3 ms·
WTF locks now use a policy we call eventual fairness. You can barge but the amount of time anyone loses due to the barging race is bounded. https://trac.webkit.
by pizlonator 10y ago
WTF locks now use a policy we call eventual fairness. You can barge but the amount of time anyone loses due to the barging race is bounded. https://trac.webkit.org/changeset/203350/webkit https://trac.webkit.org/changeset/203350/webkit
- obstinate 10y agoHard fairness guarantees for locking are very expensive and only situationally needful, so it's hard to justify paying a high cost to have them always on. It seems like the best thing to do is to use the fastest locking primitive you can find, and implement fairness on top of that in the rare case that you need it.
- pizlonator 10y agoEventual fairness costs nothing.
- obstinate 10y agoRight, I'm referring to the idea of immediate fairness. I'm agreeing w/ your approach.
- bogomipz 10y agoMight you have any good resources about hard fairness vs eventual fairness locking?
- pizlonator 10y agoIt's all in the commit.