Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the difference between latches, mutexes and locks?

0
Posted

What is the difference between latches, mutexes and locks?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123