Lecture 6- Synchronization
Distributed Systems
Lecture 6: Synchronization
Outline
• Overview
• Essentiality of Synchronization
• Issues in Synchronization
• Clock Synchronization
• Physical Clocks
• Clock Synchronization
• Logical Clocks
• Happens-Before Relationship
• Lamport's Logical Clocks
• Vector Clocks
• Mutual Exclusion
• A Centralized Algorithm
• A Decentralized Algorithm
• A Distributed Algorithm
• A Token Ring Algorithm
• Election Algorithm
• Overview
• The Bully Algorithm
• A Ring Algorithm
• Superpeer Selection
• Summary
Lecture 6: Synchronization
2
Lecture 6: Synchronization
3
Lecture 6: Synchronization
4
Lecture 6: Synchronization
5
Lecture 6: Synchronization
6
Lecture 6: Synchronization
7
Lecture 6: Synchronization
8
Lecture 6: Synchronization
9
Lecture 6: Synchronization
10
Lecture 6: Synchronization
11
Lecture 6: Synchronization
12
Lecture 6: Synchronization
13
Lecture 6: Synchronization
14
Lecture 6: Synchronization
15
Lecture 6: Synchronization
16
Lecture 6: Synchronization
17
Lecture 6: Synchronization
18
Lecture 6: Synchronization
19
Lecture 6: Synchronization
20
Lecture 6: Synchronization
21
Lecture 6: Synchronization
22
Lecture 6: Synchronization
23
Lecture 6: Synchronization
24
Lecture 6: Synchronization
25
Lecture 6: Synchronization
26
Lecture 6: Synchronization
27
Lecture 6: Synchronization
28
Lecture 6: Synchronization
29
Lecture 6: Synchronization
30
Lecture 6: Synchronization
31
Lecture 6: Synchronization
32
Lecture 6: Synchronization
33
Lecture 6: Synchronization
34
Lecture 6: Synchronization
35
Lecture 6: Synchronization
36
Lecture 6: Synchronization
37
Lecture 6: Synchronization
38
Lecture 6: Synchronization
39
Lecture 6: Synchronization
40
Lecture 6: Synchronization
41
Summary
• Overview
• Essentiality of Synchronization
• Issues in Synchronization
• Clock Synchronization
• Physical Clocks
• Clock Synchronization
• Logical Clocks
• Happens-Before Relationship
• Lamport's Logical Clocks
• Vector Clocks
• Mutual Exclusion
• A Centralized Algorithm
• A Decentralized Algorithm
• A Distributed Algorithm
• A Token Ring Algorithm
• Election Algorithm
• Overview
• The Bully Algorithm
• A Ring Algorithm
• Superpeer Selection
Lecture 6: Synchronization
42

Distributed systems course: Synchronization