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 |
Where is the root directory?
what is the difference between mutexes and semaphores?
What is an idle thread?
Which intel processor is 64 bit?
What are the various components of a computer system?
What is the difference between process and program?
How do I see usb devices on mac?
How do I find a file path on a mac?
what's the latest ram lunch?
Can chkdsk damage a hard drive?
Is Windows NT a full blown object oriented operating system? Give reasons.
What is the purpose of using the yield method of thread class?