Please enable JavaScript.
Coggle requires JavaScript to display documents.
Process Communication & Synchronization in Operating Systems - Coggle…
Process Communication & Synchronization in Operating Systems
Processes and States
Process: A program in execution
Status of the process
Managed through
Process State: Describes current status – e.g., running, waiting, ready
Process Control Block (PCB): Data structure containing process info like state, program counter, registers
Threading Models
Single-threaded Model: One thread per process; simpler but less efficient for multitasking
Compared for efficiency and responsiveness
Multi-threaded Model: Multiple threads share process resources; enables parallelism
Shares the same PCB structure
Thread Benefits: Responsiveness, resource sharing, economy
Critical-Section Problem
Definition
Conditions to solve
Requirements
Software Solution: Peterson’s Algorithm
Satisfies
Applies to two threads
Occurs frequently in