important_topics
important_topics
1. Priority Inversion
Problem: A high-priority task is waiting for a lower-priority task to release a resource, but a
medium-priority task preempts the lower-priority task, leading to a deadlock or significant
delays.
Solution: Priority inheritance protocol, where the lower-priority task temporarily inherits the
higher priority to prevent preemption.
2. Deadlock
Problem: A set of processes are blocked because each process is waiting for a resource
that another process holds.
Conditions: Mutual exclusion, hold and wait, no preemption, and circular wait.
Solutions:
Solution: Aging, where the priority of waiting processes increases over time.
Problem: The producer and consumer processes share a bounded bu er, leading to
synchronization issues.
5. Reader-Writer Problem
Problem: Multiple readers and writers access a shared resource, potentially leading to
inconsistent states.
Solutions:
o First Reader-Writers Problem: Ensure readers don’t starve writers.
Problem: Multiple processes accessing a shared resource can lead to race conditions.
Problem: When the required page is not in memory (page fault) or excessive page faults
occur due to insu icient memory allocation (thrashing).
Solution:
9. Memory Fragmentation
Problem: Free memory is split into small blocks, leading to ine icient memory usage.
Solutions:
Solution: Use e icient allocation methods like contiguous allocation, linked allocation, or
indexed allocation.
Solution: Use scheduling algorithms like FCFS, SJF, SRTF, RR, and Priority Scheduling.
Solution: Increase physical memory, use working set model, or reduce degree of
multiprogramming.