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 |
What's so great about <cool web technology of the day>?
What is the need for dmac in es?
If your database was under a lot of strain, what are the first few things you might consider to speed it up?
Explain the concept of separation of concerns?
How do the mvp, mvc, and mvvm patterns relate?
Have you developed software testing procedures for new systems and performed qa, quality assurance, or audits?
Show me a portfolio of all the applications you worked on, and tell me how you contributed to design them.
Tell me how does the interrupts handle by using the threads?
What is a 'const' variable?
Tell me why does pre-emptive multi-threading used to solve the central controller problem?
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?
What happens when recursive functions are declared inline?