by physicles · 5y ago · 0 comments
Then, instead of saying “there are these atomic locking primitives that we can use,” he asked the class for suggestions about how to make sure the two threads don’t stomp on each other’s updates. For about a half hour, someone would suggest a new way to place an if statement, and he would show how the “lock” would be defeated if contexts switched in such-and-such way.
Finally, when the whole class was thoroughly convinced that it wasn’t possible, he introduced atomic locking primitives.
No comments yet.