SlideShare a Scribd company logo
2
Most read
3
Most read
8
Most read
Dr.M.Karthika,
AP/Information Technology
MTNC,Madurai.
29.8.21
 One of the ways to achieve Process
synchronization. The monitor is supported by
programming languages to achieve mutual
exclusion between processes.
 It is the collection of condition variables and
procedures combined together in a special kind of
module or a package.
 The processes running outside the monitor can’t
access the internal variable of the monitor but can
call procedures of the monitor.
 Only one process at a time can execute code
inside monitors.
9/29/2021
2
Dr.M.Karthika/AP/MTNC
1. Inside the monitors, we can only execute one
process at a time.
2. Monitors are the group of procedures, and condition
variables that are merged together in a special type
of module.
3. If the process is running outside the monitor, then it
cannot access the monitor’s internal variable. But a
process can call the procedures of the monitor.
4. Monitors offer high-level of synchronization
5. Monitors were derived to simplify the complexity of
synchronization problems.
6. There is only one process that can be active at a
time inside the monitor.
9/29/2021
Dr.M.Karthika/AP/MTNC
3
9/29/2021
4
Dr.M.Karthika/AP/MTNC
Two different operations are performed on
the condition variables of the monitor.
Wait. signal. let say we have 2 condition
variables
condition x, y; // Declaring variable
9/29/2021
5
Dr.M.Karthika/AP/MTNC
x.wait() :
Process performing wait operation on any
condition variable are suspended. The
suspended processes are placed in block
queue of that condition variable.
Note: Each condition variable has its
unique block queue.
9/29/2021
6
Dr.M.Karthika/AP/MTNC
x.signal():
When a process performs signal operation
on condition variable, one of the blocked
processes is given chance.
If (x block queue empty)
// Ignore signal else
// Resume a process from block queue.
9/29/2021
7
Dr.M.Karthika/AP/MTNC
 Advantages of Monitor:
Monitors have the advantage of making parallel
programming easier and less error prone than
using techniques such as semaphore.
 Disadvantages of Monitor:
Monitors have to be implemented as part of the
programming language . The compiler must
generate code for them. This gives the compiler
the additional burden of having to know what
operating system facilities are available to control
access to critical sections in concurrent
processes.
9/29/2021
8
Dr.M.Karthika/AP/MTNC
THANK YOU
9/29/2021
9
Dr.M.Karthika/AP/MTNC

More Related Content

PPTX
Eucalyptus cloud computing
PDF
Semaphores
PPTX
Computer system architecture
PPTX
Unix operating system architecture with file structure
PDF
Monitors
PPT
Parallel processing
PPTX
Phases of compiler
PPT
Lec11 semaphores
Eucalyptus cloud computing
Semaphores
Computer system architecture
Unix operating system architecture with file structure
Monitors
Parallel processing
Phases of compiler
Lec11 semaphores

What's hot (20)

PDF
Introduction to PHP
PPTX
Introduction to Distributed System
PDF
Events and Listeners in Android
DOC
Creating an executable jar file
PDF
Fault tolerance
PPT
Operating System - Monitors (Presentation)
PDF
Unit 1-problem solving with algorithm
PPTX
Overview of Deadlock unit 3 part 1
PPT
Applet Architecture - Introducing Java Applets
PPTX
VB.NET:An introduction to Namespaces in .NET framework
PPT
Silberschatz / OS Concepts
PDF
Schedule in DBMS
PPTX
Daa unit 1
DOCX
Iterative Waterfall model
PPT
Process Synchronization
PPTX
Client server architecture
PDF
Control Flow Graphs
PPT
Presentation On Com Dcom
PDF
Operating systems system structures
Introduction to PHP
Introduction to Distributed System
Events and Listeners in Android
Creating an executable jar file
Fault tolerance
Operating System - Monitors (Presentation)
Unit 1-problem solving with algorithm
Overview of Deadlock unit 3 part 1
Applet Architecture - Introducing Java Applets
VB.NET:An introduction to Namespaces in .NET framework
Silberschatz / OS Concepts
Schedule in DBMS
Daa unit 1
Iterative Waterfall model
Process Synchronization
Client server architecture
Control Flow Graphs
Presentation On Com Dcom
Operating systems system structures
Ad

Similar to Process Synchronization - Monitors (20)

PDF
5 Techniques to Achieve Functional Safety for Embedded Systems
PDF
5 Techniques to Achieve Functional Safety for Embedded Systems
PDF
5 Techniques to Achieve Functional Safety for Embedded Systems
PPTX
Examples in OS synchronization for UG
PDF
Proposed Algorithm for Surveillance Applications
PDF
IRJET- FPGA Implementation of an Improved Watchdog Timer for Safety Critical ...
PDF
Annunciator for Hazard Prevention & Temperature Control
PDF
FAULT DETECTION AND DIAGNOSIS OF INDUCTION MACHINE WITH ON-LINE PARAMETER PR...
PDF
Yokogawa UGS Solution for System Integration with Third Party
PDF
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...
PPTX
Monitors
PPTX
(Modifid)condition m0nitoring of longwall face supportd
PDF
TRAFFIC LIGHT PRIORITY FOR EMERGENCY VEHICLE
PPTX
Mule soft meetup__adelaide_october_2020_final (2)
PDF
Checkpointing and Rollback Recovery Algorithms for Fault Tolerance in MANETs:...
PDF
A Practical Fault Tolerance Approach in Cloud Computing Using Support Vector ...
PPTX
UVM_Full_Print_n.pptx
PPT
Monitor(karthika)
PDF
UVM ARCHITECTURE FOR VERIFICATION
5 Techniques to Achieve Functional Safety for Embedded Systems
5 Techniques to Achieve Functional Safety for Embedded Systems
5 Techniques to Achieve Functional Safety for Embedded Systems
Examples in OS synchronization for UG
Proposed Algorithm for Surveillance Applications
IRJET- FPGA Implementation of an Improved Watchdog Timer for Safety Critical ...
Annunciator for Hazard Prevention & Temperature Control
FAULT DETECTION AND DIAGNOSIS OF INDUCTION MACHINE WITH ON-LINE PARAMETER PR...
Yokogawa UGS Solution for System Integration with Third Party
A fault tolerant tokenbased atomic broadcast algorithm relying on responsive ...
Monitors
(Modifid)condition m0nitoring of longwall face supportd
TRAFFIC LIGHT PRIORITY FOR EMERGENCY VEHICLE
Mule soft meetup__adelaide_october_2020_final (2)
Checkpointing and Rollback Recovery Algorithms for Fault Tolerance in MANETs:...
A Practical Fault Tolerance Approach in Cloud Computing Using Support Vector ...
UVM_Full_Print_n.pptx
Monitor(karthika)
UVM ARCHITECTURE FOR VERIFICATION
Ad

More from Dr.M.Karthika parthasarathy (20)

PDF
IoT Enabled Wireless Technology Based Monitoring and Speed Control of Motor U...
DOC
Linux Lab Manual.doc
PDF
DOCX
PPTX
Unit 1 Introduction to Artificial Intelligence.pptx
DOCX
Unit I What is Artificial Intelligence.docx
PPTX
Introduction to IoT - Unit II.pptx
PDF
DOCX
Chapter 3 heuristic search techniques
DOCX
Ai mcq chapter 2
PPTX
Introduction to IoT unit II
PPTX
Introduction to IoT - Unit I
PDF
Internet of things Unit 1 one word
DOCX
DOCX
.net progrmming part4
DOCX
.net progrmming part3
DOCX
.net progrmming part1
DOCX
.net progrmming part2
DOCX
DOCX
What is a shell script
IoT Enabled Wireless Technology Based Monitoring and Speed Control of Motor U...
Linux Lab Manual.doc
Unit 1 Introduction to Artificial Intelligence.pptx
Unit I What is Artificial Intelligence.docx
Introduction to IoT - Unit II.pptx
Chapter 3 heuristic search techniques
Ai mcq chapter 2
Introduction to IoT unit II
Introduction to IoT - Unit I
Internet of things Unit 1 one word
.net progrmming part4
.net progrmming part3
.net progrmming part1
.net progrmming part2
What is a shell script

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Machine Learning_overview_presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Tartificialntelligence_presentation.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
The Rise and Fall of 3GPP – Time for a Sabbatical?
SOPHOS-XG Firewall Administrator PPT.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Network Security Unit 5.pdf for BCA BBA.
gpt5_lecture_notes_comprehensive_20250812015547.pdf
cuic standard and advanced reporting.pdf
Spectroscopy.pptx food analysis technology
Spectral efficient network and resource selection model in 5G networks
“AI and Expert System Decision Support & Business Intelligence Systems”
A comparative analysis of optical character recognition models for extracting...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine Learning_overview_presentation.pptx
Empathic Computing: Creating Shared Understanding
Programs and apps: productivity, graphics, security and other tools
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Machine learning based COVID-19 study performance prediction
Tartificialntelligence_presentation.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Process Synchronization - Monitors

  • 2.  One of the ways to achieve Process synchronization. The monitor is supported by programming languages to achieve mutual exclusion between processes.  It is the collection of condition variables and procedures combined together in a special kind of module or a package.  The processes running outside the monitor can’t access the internal variable of the monitor but can call procedures of the monitor.  Only one process at a time can execute code inside monitors. 9/29/2021 2 Dr.M.Karthika/AP/MTNC
  • 3. 1. Inside the monitors, we can only execute one process at a time. 2. Monitors are the group of procedures, and condition variables that are merged together in a special type of module. 3. If the process is running outside the monitor, then it cannot access the monitor’s internal variable. But a process can call the procedures of the monitor. 4. Monitors offer high-level of synchronization 5. Monitors were derived to simplify the complexity of synchronization problems. 6. There is only one process that can be active at a time inside the monitor. 9/29/2021 Dr.M.Karthika/AP/MTNC 3
  • 5. Two different operations are performed on the condition variables of the monitor. Wait. signal. let say we have 2 condition variables condition x, y; // Declaring variable 9/29/2021 5 Dr.M.Karthika/AP/MTNC
  • 6. x.wait() : Process performing wait operation on any condition variable are suspended. The suspended processes are placed in block queue of that condition variable. Note: Each condition variable has its unique block queue. 9/29/2021 6 Dr.M.Karthika/AP/MTNC
  • 7. x.signal(): When a process performs signal operation on condition variable, one of the blocked processes is given chance. If (x block queue empty) // Ignore signal else // Resume a process from block queue. 9/29/2021 7 Dr.M.Karthika/AP/MTNC
  • 8.  Advantages of Monitor: Monitors have the advantage of making parallel programming easier and less error prone than using techniques such as semaphore.  Disadvantages of Monitor: Monitors have to be implemented as part of the programming language . The compiler must generate code for them. This gives the compiler the additional burden of having to know what operating system facilities are available to control access to critical sections in concurrent processes. 9/29/2021 8 Dr.M.Karthika/AP/MTNC