Close sidebar

Accenture technical round question.

Question: What is difference between binary semaphore and mutex?

  • Vishal
  • 2502 दृश्य
  • 1 उत्तर
1 उत्तर
  • Hi vishalbr /strongThe differences between binary semaphore and mutex are very simple:/strongbr /br /- Mutex is used exclusively for mutual exclusion. Both mutual exclusion and synchronization can be used by binary.br /- A task that took mutex can only give mutex.br /- From an ISR a mutex cannot be given.br /- Recursive taking of mutual exclusion semaphores is possible. This means that a task that holds before finally releasing a semaphore, can take the semaphore more than once.br /- Options for making the task which takes as DELETE_SAFE are provided by Mutex, which means the task deletion is not possible when holding the mutex.


मॉक परीक्षण अभ्यास के लिए
accenture