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 |
Explain thread.
What's the difference between 32 and 64 bit?
Is bgp layer 3 or 4?
Can I use ie with google chrome?
How can I boot from usb?
What are the 7 elements of communication?
To ensure one pgm. doesnt corrupt other pgm. in a Multi-pgm. enviornment .what you should do?
Explain what you mean by memory alignment.
Explain latency, transfer and seek time with respect to disk i/o.?
What are the 4 stages of computing?
How much ram do I need?
How long should a chkdsk r take?