3 ms·
> You don't put semaphores around all data You're talking about putting semaphores around code. Locking data, not code, is a great way to do things. It compo
by mrkeen 2y ago
> You don't put semaphores around all data
You're talking about putting semaphores around code.
Locking data, not code, is a great way to do things. It composes and you don't run into too-many-locks, too-few-locks, forgetting-to-take-a-lock, or deadlocking problems.
https://www.adit.io/posts/2013-05-15-Locks,-Actors,-And-STM-In-Pictures.html https://www.adit.io/posts/2013-05-15-Locks,-Actors,-And-STM-...