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 is difference between synchronous and asynchronous threads and when can we use them?
What is eide?
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?
What is spooling? and What is spooled device? Give the examples for the spooled devices?
What are demand- and pre-paging?
What is a cache memory?
Tell me what are the rings in windows nt?
Explain turnaround time and response time?
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
How are data structures handled by ntfs and how does it recover from a crash?
How does the cpu and the ram communicate?
What are the stipulations of C2 level security?