
10 Feb
2008
10 Feb
'08
7:46 p.m.
Anthony Williams:
Adding yield() to try-and-back-off helps with some mutex implementations, and is effectively a no-op in others, so is worth adding.
I think that I would like to see how the algorithms scale to a number of cores equaling the number of philosophers before agreeing with that. As Phil notes, extra yields are not a problem if another thread can use the time to do something useful.