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

What are the reasons for process termination?

0 Answers  


How do I clean up program files?

0 Answers  


Which is better chkdsk r or f?

0 Answers  


What is a rootkit virus?

0 Answers  


What do you mean by a semaphore?

0 Answers   Flextronics,






What are the different types of scheduling algorithms?

0 Answers  


What is live boot?

0 Answers  


What are the different types of fragmentation?

0 Answers  


Who was the discover Mouse & When.?

4 Answers  


When does thrashing occur?

0 Answers  


Difference between Primary storage and secondary storage?

3 Answers  


How to take backup using active directory recyclebin concept

0 Answers  


Categories