What is the difference between mutex and semaphore?
Answer Posted / rohit
Apart from counting behaviour the biggest differnce is in
scope of mutex and semaphore. Mutex have process scope that
is it is valid within a process space and can be used for
thread synchronization (hence light weight), semaphore are
can be used accross process space and hence can be used for
inter process synch.
However on RTOS this distinction is not applicable due to
flat process space hence only semaphores are supported on
typical RTOS.
| Is This Answer Correct ? | 31 Yes | 4 No |
Post New Answer View All Answers
What is the virtual memory?
What are the four common types of files?
How do I get the ie tab in chrome?
What is the largest ram?
What is the main purpose of an operating system?
How do I dual boot my pc?
Explain the difference between internal and external fragmentation in memory management. Suggest ways to reduce them.
What's the difference between x86 and x64?
Define max, min heap and search time of heap.
Is it possible to have a deadlock involving only one process?
Can you run 32 bit applications on a 64 bit operating system?
What is multi tasking, multi programming and multi threading?
What is the x86 folder?
What is a named pipe?
Explain what is meant by heap?