Q. What is the Concept of Lock?
Locks are used for protected access of data in a shared variable system. There are numerous kinds of locks:
1) Binary Locks: These locks are used worldwide amongst multiple processes.
2) Deckkers Locks: These type of locks are based on distributed requests to guarantee mutual exclusion without unnecessary waiting.