Answer Posted / 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 |
Post New Answer View All Answers
What is the purpose of an I/O status information?
How are the wait/signal operations for monitor different from those for semaphores?
What are the four necessary and sufficient conditions behind the deadlock?
Does ram affect excel performance?
What is the kernel of the operating system?
How do I force a program to close?
How many registers does x86 have?
What is mutual exclusion and multithreading in OS?
Is faster ram worth it?
What is difference between Process and Thread?
What are the thread states?
What is Page-Stealer process?
What are old chkdsk files?
Can bad sectors cause blue screen?
What is a cache memory?