Explain me what are the rules followed by mutexes?



Explain me what are the rules followed by mutexes?..

Answer / Roshan Rajnish Beck

Mutexes (mutual exclusion objects) follow these fundamental rules:
1. Ownership: A thread owns a mutex when it acquires it.
2. At most one thread can own a mutex at any given time.
3. When a thread releases a mutex, it becomes available for another thread to acquire.
4. Once a thread acquires a mutex, no other thread can acquire it until the first thread releases it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Embedded Systems AllOther Interview Questions

What's so great about <cool web technology of the day>?

1 Answers  


What is the need for dmac in es?

1 Answers  


If your database was under a lot of strain, what are the first few things you might consider to speed it up?

1 Answers  


Explain the concept of separation of concerns?

1 Answers  


How do the mvp, mvc, and mvvm patterns relate?

1 Answers  


Have you developed software testing procedures for new systems and performed qa, quality assurance, or audits?

1 Answers  


Show me a portfolio of all the applications you worked on, and tell me how you contributed to design them.

1 Answers  


Tell me how does the interrupts handle by using the threads?

1 Answers  


What is a 'const' variable?

1 Answers  


Tell me why does pre-emptive multi-threading used to solve the central controller problem?

1 Answers  


Why do we need a infinite loop in embedded systems development? What are the different ways by which you can code in a infinite loop?

1 Answers  


What happens when recursive functions are declared inline?

1 Answers  


Categories