What is the difference between latches, mutexes and locks?
On 16th August 2002 mpruet@attbi.com (Madison Pruet) wrote:- Depends on who you talk to. There is a bit of confusion between latches and mutexes. Locks are applied against rows or pages. mutexs are objects on which the thread will queue itself if it can not lock the mutex latches are sometimes used the same as a mutex, but actually are the V5 lock to prevent two processes from accessing the same shared memory structure. Really in IDS the latch became the spin lock. It is a machine level test and set lock. The biggest difference between the spin lock and the mutex is that the thread (process) that can not lock a spin lock will simply repeat the effort without being queued. These are used to protect structures that are only locked for a few machine instructions. Also, they are used to protect the mutex structure itself. On 5th June 2001 mpruet@home.com (Madison Pruet) wrote:- The biggest difference between a spin lock and a mutex is that when a thread tries to obtain a mutex but can’t, t
Related Questions
- The types of locks or latches you need are the same for door handles on a backplate, door handles on a rose and door knobs. For information on lock and latch sizes please see FAQ What backset size do I need?
- What is the difference between dead bolt locks and latch bolt locks?
- What is the difference between latches, mutexes and locks?