Another year, another goal - read 55 books in 2018. I failed to reach my goal
of reading 50 books in 2017 and … dropped the ball this time too. Why set
even more ambitious goal instead of lowering the expectations? Because lowering
feels like a step backwards and one should always strive to move forward. I am
still happy with the result - 49 books!
a) while we're locked, nobody else can access the object (unless its read lock) -> better to unlock earlier b) when you put more code & call other functions between lock / unlock, it becomes easier to deadlock c) defers are slow