|
|
TYPE – Readonly or Exclusive??
TYPE – Readonly or Exclusive??
If no type is specified, then EXCLUSIVE the the default.
Exclusive locks on allow 1 thread (request) to manipulate data contained within the lock.
Exclusive locks should only be used when data is being written.
Readonly locks allow multiple threads (requests) to access the data within a the lock, but prevents an Exclusive lock from being obtained.
A Readonly lock is obtained when an Exclusive lock is not being processed at the same time.
Readonly locks should be used when data is being read.
|
|
|
|
|
|
|
|