Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
molyss
on Dec 8, 2022
|
parent
|
context
|
favorite
| on:
Fine-grained locking with two-bit mutexes
When B wakes up the 1st thing it does is state.exchange(sleeper,…), which returns unlocked, and set the state to sleeper. I think it works.
I had some concerns about the second one, but I think it works too…
gpderetta
on Dec 8, 2022
[–]
Oh, now I see it, very nice. I had missed that there is at least one additional exchange after wait returns.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
I had some concerns about the second one, but I think it works too…