Latches vs Enqueues

Latches vs Enqueues.

Enqueues permit several concurrent processes to have varying degree of sharing of resources. Any object which can be concurrently used, can be protected with enqueues. The enqueue is obtained using an OS specific locking mechanism. An enqueue allows the user to store a value in the lock.

In latches there is no ordered queue of waiters like in enqueues. Latch waiters may use wakeup timers and retry or spin (only in multiprocessors). Since the processes keep trying concurrently, any process can get the latch. The first process to try might be the last one to get.
Difference between a hot backup and a cold backup
Difference between a hot backup and a cold backup - A cold backup is done when there is no user activity going on with the system...
How many memory layers are in the oracle shared pool?
How many memory layers are in the oracle shared pool? - Oracles shared pool consists of two layers namely, Library cache and Data dictionary cache.....
What is the cache hit ratio?
Cache hit ratio - When the cache client like a CPU, web browser etc finds a successful entry in the cache memory, it is called as a cache hit...
Post your comment