Answer Posted / 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 |
Post New Answer View All Answers
Is it possible to have a deadlock involving only one process?
Can x86 run 64 bit?
How many types of file systems are there?
What is the meaning of Thread Priority?
What is significance of semaphores? What are the different types of semaphores?
What are the different types of process termination?
What is a semaphore? What are the different types of semaphores?
Explain the difference between load-time dynamic linking and run-time dynamic linking?
Explain what are device drivers used for?
What is dynamic scheduling in operating system (os)?
Explain the concept of deadlocks? Why they are used?
What's the difference between x86 and x64?
Which is the fastest operating system?
What happens if we don’t override a run method?
What are the different types of semaphores?