You can build things like 2 phase locking on top of that.  You&#x27;re right though that simply taking a lock before updating two values doesn&#x27;t solve the atomicity of that update problem.  However if you&#x27;re updating a single value then taking a lock can make your life easier vs. systems with no locks and eventual consistency.