which is best among semaphores and mutexes?
Answers were Sorted based on User's Feedback
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 |
Can chkdsk repair bad sectors?
What are the stipulations of C2 level security?
What is process synchronization?
Why is it that a single, all – encompassing metric cannot be developed for programme complexity or programme quality?
What is the current microsoft operating system?
A pair of redundant systems are operating, how would you ensure that when one of them goes down, the other one will take over its operation?
What are the 4 major types of operating system?
Where are the global variables stored?
Why is 64 bit better?
what is Compiler?
What is the difference among deadlock avoidance, detection and prevention?
Is 4gb ram enough for netflix?