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
Which intel processor is 64 bit?
What are device drivers in os?
What is sdram?
What is semaphore and its function?
What is synchronous and asynchronous process?
Who is the father of operating system?
What layer is http?
Why is round robin algorithm considered better than first come first served algorithm?
Can a 64 bit computer run 32 bit programs?
What are the different tasks of Lexical analysis?
What is the difference between exclusive lock and shared lock?
What resources are used when a thread created?
How do I copy a full file path?
Explain booting the system in operating system.
What are the essential conditions for a deadlock to occur?