Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

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 different types of semaphores?

0 Answers   Axtria,

What are DDks? Name an operating system that includes this feature.

3 Answers  

Explain binary semaphore and its functionality.

0 Answers   Accenture,

How do I use i3?

0 Answers  

What do you mean by a process?

0 Answers  

How do you format a pc?

0 Answers  

What is cache memory?

1 Answers  

In the context of memory management, what are placement and replacement algorithms?

1 Answers  

How do you check your operating system?

0 Answers  

Define a good platform along with its qualities.

0 Answers   Wipro,

Why is ram also known as volatile memory?

0 Answers  

What is time- sharing system?

0 Answers