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
Will my laptop run faster with more ram?
How do I know if my cpu is overheating?
How does swapping result in better memory management?
What is the meaning of Thread Priority?
What are device drivers?
What are the 7 c's of communication?
What is best free operating system?
What kind of memory is a ram categorized as?
How can you pause the execution of a Thread for a certain amount of time?
What is feram?
Will chkdsk fix corrupt files?
How many stages are there in chkdsk?
Can a system detect starvation?
How do I find system information?
How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem?