SlideShare a Scribd company logo
Advanced Operating Systems
I MCA- II SEMESTER
SUBJECT CODE : P22MCACC22
UNIT – II
Clock Synchronization & Mutual Exclusion
Presented By
S.Vijaya Lakshmi B.E(CSE)
Assistant Professor,
Department of Computer Science,
Sri Sarada Niketan College for Women,Karur.
Clock Synchronization in Distributed
System
 Clock synchronization is the mechanism to
synchronize the time of all the computers
in the distributed environments or system.
 Assume that there are three systems
present in a distributed environment.
Properties of Distributed algorithms to
maintain Clock synchronization:
• Relevant and correct information will be
scattered among multiple machines.
• The processes make the decision only on
local information.
• Failure of the single point in the system must
be avoided.
• No common clock or the other precise global
time exists.
• In the distributed systems, the time is
ambiguous.
Types of Clock Synchronization
 Physical clock synchronization
 Logical clock synchronization
 Mutual exclusion synchronization
Mutual exclusion in distributed system
Mutual exclusion is a concurrency control
property which is introduced to prevent race
conditions.
It is the requirement that a process can not
enter its critical section while another
concurrent process is currently present or
executing in its critical section i.e, only one
process is allowed to execute the critical
section at any given instance of time.
Requirements of Mutual exclusion
Algorithm:
 No Deadlock
 No Starvation
 Fairness
 Fault Tolerance
Solution to distributed mutual
exclusion:
 Token Based Algorithm
 Non-token based approach
 Quorum based approach
Election algorithm
 It assumes that every active process in the
system has a unique priority number.
 The process with highest priority will be
chosen as a new coordinator.
 Hence, when a coordinator fails, this
algorithm elects that active process which
has highest priority number.
Distributed Deadlock Detection
 Distributed deadlocks can occur when
distributed transactions or concurrency
control are utilized in distributed systems.
 It may be identified via a distributed
technique like edge chasing or by creating
a global wait-for graph (WFG) from local
wait-for graphs at a deadlock detector.
Types of deadlock detection
An operating system (OS) can detect deadlocks
by using one of the four common algorithms:
 Banker's algorithm,
 Resource Hierarchy algorithm,
 Deadlock Detection Algorithm or
 Wait-For-Graphs.
Process Deadlocks in Operating System
 Coffman Conditions. A deadlock occurs if the four
Coffman conditions hold true.
 Deadlock Detection. A deadlock can be detected by a
resource scheduler as it keeps track of all the resources
that are allocated to different processes.
 Deadlock Prevention.
 Deadlock Avoidance.
Thank You

More Related Content

PPTX
Advanced Operating Systems- Distributed OS
PPT
dos mutual exclusion algos
PPTX
Synchronization in Distributed Systems.pptx
PPTX
distributed system ppt presentation in cs
PPT
Distributed Deadlock Detection.ppt
PDF
Chapter9.pdf
DOCX
Distributed systems_important 2marks.docx
PPTX
operating system notes of unit 3 explanation
Advanced Operating Systems- Distributed OS
dos mutual exclusion algos
Synchronization in Distributed Systems.pptx
distributed system ppt presentation in cs
Distributed Deadlock Detection.ppt
Chapter9.pdf
Distributed systems_important 2marks.docx
operating system notes of unit 3 explanation

Similar to Advanced Operating Systems- Clock synchronization and mutual exclusive (20)

DOCX
Deadlock detection
PDF
Chapter 15 slides Distributed System Presentation
PPTX
Module 3 (1).pptx
PDF
Analysis of mutual exclusion algorithms with the significance and need of ele...
DOC
Distributed Mutual exclusion algorithms
PPTX
DistributedDeadlock on distriburtedNetwork.pptx
PDF
Distributed deadlock
PPTX
PDF
Operating Systems - Process Synchronization and Deadlocks
PDF
Comparative Study of Mutual Exclusion Algorithms in Distributed Systems
PPTX
Mutual Exclusion in Distributed Memory Systems
PPT
Coordination and Agreement .ppt
PDF
Deadlock in distribute system by saeed siddik
PPTX
Distributed Mutual Exclusion and Distributed Deadlock Detection
PDF
Process coordination
PPTX
ch 2 - DISTRIBUTED DEADLOCK DETECTION.pptx
PPT
Chapter 18 - Distributed Coordination
PPTX
Mutual Exclusion using Peterson's Algorithm
PDF
DistributedOSintro.pdf from CSE Distributed operating system
PPTX
Chapter 5. Concurrency: Mutual Exclusion and Synchronization
Deadlock detection
Chapter 15 slides Distributed System Presentation
Module 3 (1).pptx
Analysis of mutual exclusion algorithms with the significance and need of ele...
Distributed Mutual exclusion algorithms
DistributedDeadlock on distriburtedNetwork.pptx
Distributed deadlock
Operating Systems - Process Synchronization and Deadlocks
Comparative Study of Mutual Exclusion Algorithms in Distributed Systems
Mutual Exclusion in Distributed Memory Systems
Coordination and Agreement .ppt
Deadlock in distribute system by saeed siddik
Distributed Mutual Exclusion and Distributed Deadlock Detection
Process coordination
ch 2 - DISTRIBUTED DEADLOCK DETECTION.pptx
Chapter 18 - Distributed Coordination
Mutual Exclusion using Peterson's Algorithm
DistributedOSintro.pdf from CSE Distributed operating system
Chapter 5. Concurrency: Mutual Exclusion and Synchronization
Ad

More from vijayalakshmis184431 (12)

PPTX
Advanced Operating Systems- Mobile OS and ARM
PPTX
Advanced Operating Systems- Process Synchronization
PPTX
Advanced Operating Systems- Synchronization primitives in os
PPTX
Advanced Operating Systems- Kernal Structure and native level
PPTX
Advanced Operating Systems- Distributed Scheduling and shared memory
PPTX
Advanced Operating Systems- Distributed file system and caching
PPTX
Advanced Operating Systems- Multiprocessor OS
PPTX
Advanced java programming - DATA TYPES, VARIABLES, ARRAYS
PPTX
Advanced Java Programming - Enterprise Java Beans client
PPTX
Computer Networks - Error Detection and Correction
PPTX
Computer Networks - OSI Model and its functions
PPTX
Computer Networks - Network Topologies, Application of Networks, Different ty...
Advanced Operating Systems- Mobile OS and ARM
Advanced Operating Systems- Process Synchronization
Advanced Operating Systems- Synchronization primitives in os
Advanced Operating Systems- Kernal Structure and native level
Advanced Operating Systems- Distributed Scheduling and shared memory
Advanced Operating Systems- Distributed file system and caching
Advanced Operating Systems- Multiprocessor OS
Advanced java programming - DATA TYPES, VARIABLES, ARRAYS
Advanced Java Programming - Enterprise Java Beans client
Computer Networks - Error Detection and Correction
Computer Networks - OSI Model and its functions
Computer Networks - Network Topologies, Application of Networks, Different ty...
Ad

Recently uploaded (20)

PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Computing-Curriculum for Schools in Ghana
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Presentation on HIE in infants and its manifestations
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Institutional Correction lecture only . . .
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
STATICS OF THE RIGID BODIES Hibbelers.pdf
RMMM.pdf make it easy to upload and study
Microbial disease of the cardiovascular and lymphatic systems
Final Presentation General Medicine 03-08-2024.pptx
Computing-Curriculum for Schools in Ghana
Chinmaya Tiranga quiz Grand Finale.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Presentation on HIE in infants and its manifestations
Abdominal Access Techniques with Prof. Dr. R K Mishra
Institutional Correction lecture only . . .
O7-L3 Supply Chain Operations - ICLT Program
Complications of Minimal Access Surgery at WLH
Pharmacology of Heart Failure /Pharmacotherapy of CHF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

Advanced Operating Systems- Clock synchronization and mutual exclusive

  • 1. Advanced Operating Systems I MCA- II SEMESTER SUBJECT CODE : P22MCACC22 UNIT – II Clock Synchronization & Mutual Exclusion Presented By S.Vijaya Lakshmi B.E(CSE) Assistant Professor, Department of Computer Science, Sri Sarada Niketan College for Women,Karur.
  • 2. Clock Synchronization in Distributed System  Clock synchronization is the mechanism to synchronize the time of all the computers in the distributed environments or system.  Assume that there are three systems present in a distributed environment.
  • 3. Properties of Distributed algorithms to maintain Clock synchronization: • Relevant and correct information will be scattered among multiple machines. • The processes make the decision only on local information. • Failure of the single point in the system must be avoided. • No common clock or the other precise global time exists. • In the distributed systems, the time is ambiguous.
  • 4. Types of Clock Synchronization  Physical clock synchronization  Logical clock synchronization  Mutual exclusion synchronization
  • 5. Mutual exclusion in distributed system Mutual exclusion is a concurrency control property which is introduced to prevent race conditions. It is the requirement that a process can not enter its critical section while another concurrent process is currently present or executing in its critical section i.e, only one process is allowed to execute the critical section at any given instance of time.
  • 6. Requirements of Mutual exclusion Algorithm:  No Deadlock  No Starvation  Fairness  Fault Tolerance
  • 7. Solution to distributed mutual exclusion:  Token Based Algorithm  Non-token based approach  Quorum based approach
  • 8. Election algorithm  It assumes that every active process in the system has a unique priority number.  The process with highest priority will be chosen as a new coordinator.  Hence, when a coordinator fails, this algorithm elects that active process which has highest priority number.
  • 9. Distributed Deadlock Detection  Distributed deadlocks can occur when distributed transactions or concurrency control are utilized in distributed systems.  It may be identified via a distributed technique like edge chasing or by creating a global wait-for graph (WFG) from local wait-for graphs at a deadlock detector.
  • 10. Types of deadlock detection An operating system (OS) can detect deadlocks by using one of the four common algorithms:  Banker's algorithm,  Resource Hierarchy algorithm,  Deadlock Detection Algorithm or  Wait-For-Graphs.
  • 11. Process Deadlocks in Operating System  Coffman Conditions. A deadlock occurs if the four Coffman conditions hold true.  Deadlock Detection. A deadlock can be detected by a resource scheduler as it keeps track of all the resources that are allocated to different processes.  Deadlock Prevention.  Deadlock Avoidance.