|
|
|
|
|
by jprete
521 days ago
|
|
I get your point, and my first question was "what operations are even atomic here for this problem to be well-defined?". But I think "language operations are atomic and everything else isn't" is a reasonable inference for a puzzle. I'm also intrigued by locking being done through atomic assignments; I thought it required at least something like "write if equal to value" or "write new value and return old". |
|
This locking is 'slow' and has 'unfair' behavior.