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


Please Help Members By Posting Answers For Below Questions

Tell me what has triggered the need for multitasking in pcs?

524


For a deadlock to occur what are the necessary conditions

614


Explain the concept of the batched operating systems?

553


Who made the first 64 bit processor?

524


Will chkdsk delete my files?

520






What are the operating system types?

564


What items of information about a task might be useful in real time scheduling?

1987


Will my laptop run faster with more ram?

499


Hello this is gaurav garg I have completed BCA. plz TEll me how will ask question in interview.

1718


How do I unhide a file?

583


What is tras timing?

564


What are the major differences between Thread and Process?

605


How do I use i3?

579


What are the three types of file system?

499


Can ram cause blue screen?

546