Distributed Mutual Exclusion

Duration: 13 min

This video lesson is available to enrolled students.

Return to /learn/ISRO/operating-system/distributed-systems/distributed-communication/asset-distributed-mutual-exclusion after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. About Course: About the Course
  2. General Aptitude & Reasoning: Number System, Percentage, Ratio and Proportion (Ratios), Average, Profit and Loss, Simple Interest and Compound Interest, Time and Work, Speed Time and Distance, Mixture and Alligation, Data Interpretation, Algebra, Probability, Permutation and Combination, Venn Diagram, HCF LCM, Divisibility Rules, Age Problems, Pipe and Cistern, Partnership, Linear Algebra, Sequence and Series (Series), Statistics, Powers and Exponents (Surds and Indices), Arithmetic, Mensuration and Geometry, Calculus, Trigonometry, Vectors, Speed Mathematics and Basic Mathematics, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Analogy, Series (Number and Letter Series) (Numerical Relations and Reasoning), Puzzle Solving (Puzzles), Syllogisms, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Calendar, Seating Arrangements, Coding Decoding, Blood Relations, Directions (Direction Test), Clock, Analytical Reasoning (Counting Figures Reasoning), Ranking, Order and Sequence, Logical Sequence Of Words, Inequality, Data Sufficiency, Cubes & Dices
  3. Computer Networks & Cybersecurity: Introduction to CN, Data Communication, DLL: Access Control, DLL: Flow Control, DLL: Error Control, DLL: Framing, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Net Layer:Routing Protocol, Transport Layer Services, TL: Congestion & UDP, Application Layer, Hardware Basics, Network Security
  4. Programming, Data Structures & Algorithms: C Fundamentals, Control Flow, Functions, Arrays & Pointers, Storage Classes, Structures & Enums, DMA, Macros, Scoping & File Handling, OOPS with C++, Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing, Algorithm Analysis, Time Complexity Analysis, Sorting Algorithms, Greedy Algorithms, Dynamic Programming, Minimum Spanning Trees, Shortest Path Algos, Advanced Algorithms
  5. AI, Machine Learning, Big Data & Cloud: Emerging Tech Trends, Artificial Intelligence, Big Data Systems, Approaches to AI, Search Algorithms, Knowledge Representation, Cloud Computing
  6. Digital Logic & Computer Organization: Digital Systems & Boolean Basics, Logic Gates & Hardware, Boolean Expression, Boolean Minimization, Combinational Circuit, Sequential Circuits, Number System, Number Representation, Basics of COA, Floating Point Rep, Cache Memory Organization, Input Output Organisation, Pipelining, Instr Formats & Modes, Register Transfer and Microoperations, Control Unit Design, Programming the Basic Computer
  7. TOC & Compiler: Introduction to TOC, Deterministic FA (DFA), Non-Deterministic FA, Regular Expressions, Grammar, Regular Language Properties, Moore & Mealy Machines, Pushdown Automata & CFG, Turing Machines, Complexity Theory, Intro to Compilers, Lexical Analysis, Grammar & CFG, Syntax Analysis: Top-Down, Syntax Analysis: Bottom-Up, Semantic Analysis & SDT, Intermediate Code Gen, Code Optimization, Run Time Environment
  8. Discrete Mathematics: Set Theory, Relations, Functions, Graph Theory, Group Theory, Propositional and Predicate Logic
  9. Operating System: Introduction to OS, Process Management, CPU Scheduling, Process Synchronization, Threads & Process Creation, Deadlock, Memory Management, Virtual Memory, Disc Scheduling, File Management, Unix OS, Linux OS, Distributed Systems
  10. Software Engineering: Fundamentals of Software Engineering, Software Requirements and Quality Assurance, Software Design, Estimation and Metrics, Software Testing, Software Maintenance and Configuration Management, Object Oriented Technology, HTML Basics, JavaScript-Basics, Java, XML
  11. Database Management System: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Decomposition Properties & 4NF, File Organization & Indexing, Relational Algebra, SQL, Relational Calculus, Transaction Management, Concurrency Control, Database Recovery, Data Warehousing & Mining, Enhanced Data Models, NoSQL
  12. Other Recurring CS Topics: Basics of Computer Graphics, 2-D Geometrical Transforms and Viewing, Multimedia
  13. Live Classes: ISRO Live classes
  14. Full Mock Test:
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture introduces distributed mutual exclusion, beginning with the definition of a critical section (CS) as code accessing or modifying shared resources. The instructor uses a whiteboard race-condition example with P1 and P2 updating a Count variable to show why mutual exclusion is needed. Requirements—mutual exclusion, progress, and bounded waiting/fairness—are listed. The lesson then covers centralized mutual exclusion using a coordinator that receives Request, Grant, and Release messages from processes P1–P4. The slide notes working steps 1–5, advantages, and disadvantages, emphasizing the single point of failure: if the coordinator fails, no process can enter the CS. The final sampled window returns to distributed mutual exclusion framing processes communicating over a network without a central coordinator.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The opening slide titled "Distributed Mutual Exclusion" states that mutual exclusion ensures only one process at a time enters the Critical Section (CS), with examples such as updating a shared database. A diagram shows Process P1, P2, and P3 connected through a Network cloud to a Shared Resource box with a database/lock icon. The instructor underlines "only one process" and circles "Critical Section (CS)" in green, then begins a whiteboard example with a Count box and P1/P2 columns containing steps like x=10 and a=a+1.

  2. 2:00 – 5:00 02:00-05:00

    The instructor develops the whiteboard race-condition example, showing P1 and P2 reading/modifying/writing a shared Count variable concurrently. On-screen text includes "A Critical Section is a part of a program where a shared resource is accessed or modified" and operations such as X=10, Y=30 for P1 and a=2, b=20 for P2. Pink marker highlights key steps, demonstrating how interleaved execution can produce an incorrect final Count value and motivating the need for mutual exclusion.

  3. 5:00 – 10:00 05:00-10:00

    The lecture formalizes the requirements list on the slide: Mutual Exclusion (at most one process in CS at a time), Progress (a requesting process eventually gets access), and Bounded Waiting/Fairness (no indefinite waiting). Examples include updating a shared database and accessing a shared file. The slide then changes to "Centralized Mutual Exclusion," showing a COORDINATOR server linked to Process P1–P4 by Request, Grant, and Release arrows. A dashed panel titled "If Coordinator fails" shows a crossed-out server with the caption "No process can enter CS."

  4. 10:00 – 12:48 10:00-12:48

    The centralized protocol is detailed with a diagram of P1, P2, and P3 exchanging Request, Grant, and Release arrows with a central COORDINATOR. A CRITICAL SECTION box with a lock icon carries the note "Only one process at a time." The left panel lists Working steps 1–5 (Request, Grant, Enter CS, Release, Next Process) followed by Advantages and Disadvantages, including "Single Point of Failure." The instructor points to the failure diagram showing no process can enter CS, then transitions back toward distributed mutual exclusion where processes communicate over a network without a central coordinator.

The lecture progresses from problem to solution. First, it defines the critical section and shared resource using a network diagram of P1–P3. Second, it uses a concrete whiteboard race condition on a Count variable to show why concurrent access breaks correctness. Third, it states the three formal requirements: mutual exclusion, progress, and bounded waiting/fairness. Fourth, it presents centralized mutual exclusion as a first solution: processes send Request messages to a coordinator, which replies with Grant and later receives Release. The five working steps (Request, Grant, Enter CS, Release, Next Process) are listed alongside advantages and disadvantages. The key drawback emphasized is the single point of failure—if the coordinator fails, no process can enter the CS. The final window reorients toward distributed mutual exclusion, where processes coordinate over a network without relying on one central server. For exam revision, students should be able to define CS and shared resource, explain the race condition example, state the three requirements, describe the centralized Request/Grant/Release protocol and its five steps, and identify single point of failure as the main disadvantage motivating distributed approaches.

Loading lesson…