Differentiate between mutexes vs semaphores?
Submitted by: Muhammad☛ Semaphores is a synchronization tool to overcome the critical section problem.
☛ A semaphore S is basically an integer variable that apart from initialization is accesses only through atomic operations such as wait() and signal().
☛ Semaphore object basically acts as a counter to monitor the number of threads accessing a resource.
☛ Mutex is also a tool that is used to provide deadlock free mutual exclusion. It protects access to every critical data item. If the data is locked and is in use, it either waits for the thread to finish or awakened to release the lock from its inactive state.
Submitted by: Muhammad
☛ A semaphore S is basically an integer variable that apart from initialization is accesses only through atomic operations such as wait() and signal().
☛ Semaphore object basically acts as a counter to monitor the number of threads accessing a resource.
☛ Mutex is also a tool that is used to provide deadlock free mutual exclusion. It protects access to every critical data item. If the data is locked and is in use, it either waits for the thread to finish or awakened to release the lock from its inactive state.
Submitted by: Muhammad
Read Online Advanced Embedded Systems Job Interview Questions And Answers
Top Advanced Embedded Systems Questions
☺ | Tell me what is the difference between microprocessor and microcontroller? |
☺ | Do you know what is lst file? |
☺ | What is high-end embedded processor? |
☺ | What is interrupt latency? How can you reduce it? |
☺ | What is embedded system in a computer system? |
Top New Artificial Intelligence Categories
☺ | Virtual Assistant Interview Questions. |
☺ | Artificial Intelligence Robotics Interview Questions. |
☺ | AI Fuzzy Logic Interview Questions. |
☺ | Artificial Intelligence Neural Networks Interview Questions. |
☺ | Artificial Intelligence Games Interview Questions. |