How Distributed Systems Avoid Race Conditions using Pessimistic Locking?

distributed systems