what is the diff b/w MUTEX and semaphore?
Answer Posted / afsana
mutex is used to run a single thread only so that until the
first thread releases the process other thread has to wait.
But in case of semaphore simultaniously more than on thread
can have access depending upon how many threads we are
allowing.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers