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
For a deadlock to occur what are the necessary conditions
What do you know about a pipe? When is it used?
How do you tell if your computer is 32 or 64 bit?
Will chkdsk delete my files?
Can you tell what a device is by mac address?
How much ram do I need for excel?
How many types of os are there?
What are the different ways in which data can be represented?
What do you mean by ram?
What is the advantage of a multiprocessor system?
What is the difference between 16 bit and 32 bit?
Some omeone on campus calls and says they have a new Mac. They've just pulled it out of the box and want to plug it into the campus network. What might they need to set to make this work?
What is the maximum ram for a 64 bit operating system?
Does chkdsk work for ssd?
Will chkdsk repair corrupt files?