News for hackers. Stuff that matters.
Re:On mutex performance and WTF::Lock by obstinate on Sunday April 02, 2017 @02:09PM (#14018226)
Hard 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.
Re:On mutex performance and WTF::Lock by pizlonator on Sunday April 02, 2017 @02:13PM (#14018237)
Eventual fairness costs nothing.
Re:On mutex performance and WTF::Lock by obstinate on Sunday April 02, 2017 @02:19PM (#14018255)
Right, I'm referring to the idea of immediate fairness. I'm agreeing w/ your approach.
Re:On mutex performance and WTF::Lock by bogomipz on Sunday April 02, 2017 @10:53PM (#14020310)
Might you have any good resources about hard fairness vs eventual fairness locking?
Re:On mutex performance and WTF::Lock by pizlonator on Monday April 03, 2017 @12:06PM (#14023939)
It's all in the commit.