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 |
How do I run chkdsk?
What do you understand by system clock? What is system unit?
Describe Operating system?
On what level of security does windows nt meets?
Explain the refresh operation in a dynamic ram?
Explain the working of Virtual Memory?
How do I find a file path on a mac?
Do you know what is a binary semaphore? What is its use?
Explain the dual channel architecture?
What is a trap and trapdoor?
Tell something about deadlock and how can we prevent dead lock?
Where are the global variables stored?