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
Under what circumstances do page faults occur?
What is normal operating system?
How is the maximum addressable memory calculated?
Does uninstalling a program delete it?
Where is program files located?
Can I use chkdsk on ssd?
How does thread synchronization occur in a monitor?
Explain a system in safe state?
What are the main functions of a kernel?
What is time- sharing system?
Why use 64bit excel?
Explain briefly about processor and its functioning?
How many gb of ram can 64 bit use?
What is mutual exclusion and multithreading in OS?
Name the functions constituting the os's memory management.