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 virtual memory? Where it used by OS?
What is the basic function of paging?
What is the latest version of mint?
Can you list the coffman's conditions that lead to a deadlock?
What are banks in reference to ram?
To ensure one program doesnt corrupt other program in a Multi program enviornment what you should do?
When an input file is opened, what are the possible errors that may occur?
Explain bootstrap program in operating system.
What are the different types of process termination?
What is trcd timing?
What are the various components of a computer system?
How long should a chkdsk take?
Tell me something about the concept of memory leak?
Is there a 86 bit operating system?
Explain trashing?