Processes & Events

Duration: 20 min

This video lesson is available to enrolled students.

Return to /learn/ISRO/operating-system/distributed-systems/distributed-communication/asset-processes-events 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.

The lecture introduces processes, events, and message passing in distributed systems. It defines internal, send, and receive events using a two-process example (P1 sends message m to P2). The instructor then presents Lamport’s happened-before relation, with rules for same-process ordering, message passing, and transitivity, plus the definition of concurrent events. The lesson moves to Lamport logical clocks: each process maintains a counter C; local event increments C, send attaches timestamp T to message, receive sets C = max(C,T)+1. A worked P1/P2 timeline shows counter values and message m (t=2), illustrating the ordering property: if a → b then C(a) < C(b). The final slide distinguishes causality (a causally precedes b if a → b) from concurrency when no causal relationship exists.

Chapters

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

    The slide 'Processes, Events and Message Passing' states that a distributed system consists of multiple processes that communicate with each other. It lists three event types: Internal Event, Send Event, and Receive Event. An example diagram shows P1 computing and sending message m to P2, which receives it; the instructor annotates with C1/P1 and C2/P2 labels to map abstract event types to specific process instances.

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

    The instructor elaborates on the event definitions, pointing to 'Internal Event - An event that occurs inside a process,' 'Send Event - A process sends a message to another process,' and 'Receive Event - A process receives a message from another process.' The slide emphasizes that distributed processes generally do not share common memory, so communication requires send/receive operations. The P1/P2 sequence 'P1: Compute -> Send(m)' and 'P2: Receive(m) -> Compute' is used to illustrate message flow.

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

    The lecture transitions to the 'HAPPENED-BEFORE RELATION' slide, noting it was introduced by Leslie Lamport to represent event ordering in a distributed system. The symbol → means 'happened before.' Three rules are shown: (1) Same Process — if a occurs before b in the same process, then a → b; (2) Message Passing — if a is send and b is receive of the same message, then a → b; (3) Transitivity — if a → b and b → c, then a → c. The slide also defines concurrent events: if neither a → b nor b → a, then a and b are concurrent.

  4. 10:00 – 15:00 10:00-15:00

    The 'LOGICAL CLOCK' slide introduces Lamport’s method for ordering events. Each process maintains a logical counter C. The rules are: (1) Local Event — C = C + 1; (2) Send Message — attach the current timestamp to the message; (3) Receive Message — C = max(C, T) + 1. A P1/P2 timeline shows events e0, e1 (Sender), e3 on P1 and f0, f1 (Receiver), f2 on P2, with counter values C=0 through C=3 and a receive computation 'C = max(1,2)+1 = 3'.

  5. 15:00 – 20:00 15:00-20:00

    The instructor reviews the logical clock with a 'LAMPORTE LOGICAL CLOCK' panel stating each process maintains a logical counter. The P1/P2 timelines are marked C=0, C=1, C=2, C=3 with 'Message m (t=2).' The ordering property is highlighted: if a → b then C(a) < C(b). A final slide titled 'CAUSALITY AND CONCURRENT EVENTS' defines causality as a → b meaning a causally precedes b, and concurrency as the absence of any causal relationship between two events.

  6. 20:00 – 20:07 20:00-20:07

    The video concludes with the instructor facing the camera and gesturing, likely summarizing the distinction between causality and concurrent events. The final visible content remains on the 'CAUSALITY AND CONCURRENT EVENTS' slide, reinforcing that events with no causal relationship are concurrent.

The lecture builds a coherent progression from basic distributed-systems communication to formal event ordering. It starts by defining processes and the three event types (internal, send, receive), using a concrete P1/P2 message-passing example to ground the abstraction. The key transition is to Lamport’s happened-before relation, which provides a partial order on events via three rules: same-process ordering, message-passing causality, and transitivity. This relation motivates the need for logical clocks because physical time is unreliable in distributed systems. Lamport’s logical clock assigns each event a counter value using simple increment and max-plus-one rules, ensuring the ordering property: if a happened before b, then C(a) < C(b). The final concept distinguishes causally related events from concurrent ones, which have no happened-before relationship in either direction. For exam revision, students should memorize the three happened-before rules, the three logical clock update formulas, and be able to trace counter values through a P1/P2 message-passing scenario.

Loading lesson…