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


Please Help Members By Posting Answers For Below Questions

what are different ways the context switch happens from user to kernel space or vice-versa ?

2128


Explain process management system calls in linux?

536


What are system calls used for process management in linux?

574


I would like to know whether Simado and Setu products are they EPBX or not ?

1920