You are developing a multi-user application, which heavily relies on some shared data. You are required to program an exclusive lock i.e. only one user can edit the data, and any other read or write lock should be rejected.
To accomplish this, which of the following locks would you need to program?
- Read Lock
- Write Lock
- Enhanced Write Lock
- Optimistic Lock