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 |
What are loosely coupled systems?
Is there a 64 bit version of office 365?
What is sudo user?
Is gnome a shell?
Is atomic thread safe?
What is the difference between Authoritative restore & Non- Authoritative restore?
What are the 4 stages of computing?
What are short, longand mediumterm scheduling?
2 Answers Accenture, SwanSoft Technologies, TCS,
What is a safe state and a safe sequence?
What isthe difference between a 'thread' and a 'process'?
What replaced ifconfig?
How long should a chkdsk r take?