- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference Between Semaphore and Monitor in OS
In this post, we will understand the difference between semaphore and monitor in an operating system −
It is an integer variable.
The value of this integer variable tells about the number of shared resources that are available in the system.
When any process has access to the shared resources, it performs the ‘wait’ operation (using wait method) on the semaphore.
When a process releases the shared resources, it performs the ‘signal’ operation (using signal method) on the semaphore.
It doesn’t have condition variables.
It is an abstract data type.
It contains shared variables.
It also contains a set of procedures that operate upon the shared variable.
When a process wishes to access the shared variables in the monitor, it has to do so using procedures.
It has condition variables.
- Difference Between Semaphore and Monitor in OS\n
- Difference Between Semaphore and Mutex
- Difference Between Monitor and Television
- Difference between Network OS and Distributed OS
- Difference Between Deadlock and Starvation in OS
- Difference Between Paging and Swapping in OS
- Difference Between Multitasking and Multithreading in OS
- Difference Between Interrupt and Polling in OS
- Difference Between Buffering and Caching in OS
- Difference Between Paging and Segmentation in OS
- Difference Between Spooling and Buffering in OS
- Monitor network traffic and bandwidth usage in cent os
- Difference Between Virtual and Cache Memory in OS
- What is the difference between Monitor and Lock in C#?
- Difference Between Preemptive and Non-Preemptive Scheduling in OS
- Difference Between Long-Term and Short-Term Scheduler in OS