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 |
Are 64bit applications faster?
Does dual boot slow down pc?
How can I tell what programs are running in the background on my computer?
Explain briefly about loader and its functioning?
Explain what is meant by heap?
Write a function that responds to a click anywhere on the page by displaying an alert dialog. Display the event name if the user held Shift during the mouse click. Display the element name that triggered the event if the user held Ctrl during the mouse click.
Explain the difference between trap and trapdoor?
What is Dirty bit? What is the role/purpose of dirty bit?
What are the advantages of multithreaded programming?
What are the different types package forms?
Some omeone on campus calls and says they have a new Mac. They've just pulled it out of the box and want to plug it into the campus network. What might they need to set to make this work?
When would you choose bottom-up methodology?