which is best among semaphores and mutexes?

Answers were Sorted based on User's Feedback



which is best among semaphores and mutexes?..

Answer / ankit tripathi

We should always go for mutex lock as compared to semaphore
lock when it comes for a Multithreaded program(exclusion
b/w threads) and when we do not want exclusion b/w process,
the reason is that mutex is not an IPCS and any other
program cannot effect it, moreover you need not to create
an IPC Key and all those stuffs.

Is This Answer Correct ?    1 Yes 0 No

which is best among semaphores and mutexes?..

Answer / scandal

semaphore.
mutex is a semaphore with count 1

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Operating Systems General Concepts Interview Questions

How long does chkdsk last?

0 Answers  


Should I use x86 or x64?

0 Answers  


What was the last 32 bit processor?

0 Answers  


What is interrupt table?

5 Answers   HP,


What is deadlock? Explain.

0 Answers  






What is the cache memory?

0 Answers  


What is resource allocation graph?

0 Answers  


What is the most used operating system in the world?

0 Answers  


Explain some memory components.

0 Answers  


What are necessary conditions for dead lock?

0 Answers  


Is vmware a hypervisor?

0 Answers  


What is fragmentation? Different types of fragmentation?

0 Answers  


Categories