📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which lock type allows reading but blocks writing by others?

A. Exclusive lock
B. Shared lock ✅
C. No lock
D. Deadlock

Correct Answer: B. Shared lock

Explanation

  • A shared lock allows multiple transactions to read but blocks exclusive writes.
  • An exclusive lock blocks both reads and writes by others in most systems.