Locking Mechanism

I wanted to go through how locking is done instead of why? Though to put it simply, we need locks to achieve correctness of concurrent applications.

Threads

C++

Screenshot 2023-11-05 at 00 11 43

Databases