What's the difference between semaphore , critical sections and mutex?
Answer Posted / rajji
Semaphore and mutex are the synchronising mechanisms for shared resources. And critical region is part of synchonizing schemes, means it's a part of process sections.
Normally every process will have 3 sections 1.Entry section 2.critical section 3. exit section
In these critical section is more important which tells us how to manage resources like.
In semaphores if one thread is waiting for resource then other thread which has the resource can signal the waiting thread.
In Mutex if one thead is waiting for resource then it has to wait till resource get released. This is the best mechanism for multithreading.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a device queue?
What are the functions of the ram ic`s?
What is the function of the control lines in ram?
What is the purpose of system calls?
Can bad sectors cause blue screen?
What is the feature of real time os?
What are the advantages of a multiprocessor system?
Differentiate between logical and physical address.
What are the basic functions of file management in os?
What grep means?
Can a bad cpu cause blue screen?
How do I recover files from my usb?
What is the purpose of the command interpreter? Why is it usually separate from the kernel?
Can ram cause blue screen?
Explain the dual channel architecture?