What is the difference between mutex and semaphore?
Answer Posted / answers
Mutex: Nothing but a binary semaphore.
Mutex definition says "Mutex can lock any number of times,
and also it should unlock any number of times"---meaning,
in re-entrant codes if recursive is used.
In this case it will lock number of times and also should
unlock same number of times.
Semaphore: i think its default-----reeated answers.
| Is This Answer Correct ? | 9 Yes | 23 No |
Post New Answer View All Answers
How you can check whether a machine is 64 bit or 32 bit?
What is the ie tab in google chrome?
How do you fix a blue screen?
What are dynamic loading, dynamic linking and overlays?
Tell me about virtual memory?
What is the purpose of hard disk?
How do I make a bootable usb drive?
Which event determines that all the controls are completely loaded into memory?
What is Direct Access Method?
Is a directory a regular file?
What do you know about a pipe? When is it used?
How are the wait/signal operations for monitor different from those for semaphores?
What are the major differences between Thread and Process?
What is a volatile keyword?
What is the sequence of the three way handshake?