What's the difference between an exclusive lock and a shared lock?

Viewed 104688

According to wikipedia:

Shared locks are sometimes called "read locks" and exclusive locks are sometimes called "write locks".

Can you explain the reasoning behind the terms "shared" and "exclusive"?

5 Answers
  • Exclusive lock doesn't allow read and write operations.

  • Shared lock allows only read operation.

Related