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
How can I tell if a program is 64 bit?
What is waiting time?
What is the difference between mailbox and queue?
Explain the concept of real-time operating systems?
What is semaphore and its function?
Is it ok to interrupt chkdsk?
What do you call a bootable disk that contains a full usable os?
What are real-time systems?
What are interrupts?
Can you please explain the difference between demand-paging and pre-paging?
How much ram do I need?
How do I enable plugins on firefox?
Describe the actions taken by the operating system when a page fault occurs?
What are the advantages of multithreaded programming?
Explain Marshalling?