what is the diff b/w MUTEX and semaphore?
Answer Posted / ashutosh shashi
Mutex is used for mutual exclusion, only one thread at a
time can use the resourse.
If Mutex is locked by one thread can not unlocked by
another thread.
Semaphore is used when we want one or more thread can use
the resouse at a time.
If Sem object is locked by one thread, it can be unlocked
in other thread.
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers