Operating Systems Class 12 Exam Prep Revision β Grandmaster Guide
Ayush (Founder)
Exam Strategist
- Process Control Block (PCB) contains process ID, program counter, registers, memory limits
- CPU Scheduling algorithms: First Come, First Served (FCFS), Shortest Job First (SJF), Priority Scheduling (PS), Round Robβ (RR)
- SJF: avg waiting time = β(waiting time)/n, where n is a number of processes
- RR: Time Quantum (TQ) = time slice allocated to each process
- Multilevel Queue Scheduling: separate queues for foreground and background processes
- Banker's Algorithm for deadlock avoidance: resource allocation and deallocation
- Deadlock detection: wait-for graph, resource allocation graph
- Memory Management: paging, segmentation, virtual memory
- Page Replacement algorithms: First In First Out (FIFO), Optimal, Least Recently Used (LRU)
- LRU: page replacement based on recent usage
- File System: file allocation table, file organization, directory structure
- Disk Scheduling algorithms: First Come, First Served (FCFS), Shortest Seek Time First (SSTF), Scan, C-Scan
- SSTF: avg seek time = β(seek time)/n, where n is a number of requests
πͺ€ The 5 Mistakes That Cost Marks
- Not understanding the difference between paging and segmentation
- Confusing SJF and PS algorithms
- Not applying the Banker's Algorithm correctly
- Forgetting the formula for avg waiting time β SJF
- Not knowing the difference between FCFS and SSTF disk scheduling algorithms
βοΈ 3 Solved PYQs
- Question 1: What is the purpose of a Process Control Block (PCB)? Step 1: Identify the components of a PCB Step 2: Explaβ the role of each component Answer: A PCB contains information about a process, such as process ID, program counter, registers, and memory limits, to manage the process execution.
- Question 2: Consider a system with 3 processes, P1, P2, and P3, with burst times 10, 5, and 8 respectively. Calculate the avg waiting time using SJF algorithm. Step 1: Arrange the processes β ascending order of burst time Step 2: Calculate the waiting time for each process Step 3: Calculate the avg waiting time Answer: avg waiting time = (0 + 10 + 15)/3 = 25/3
- Question 3: Explaβ the concept of virtual memory. Step 1: Define virtual memory Step 2: Explaβ the concept of paging Step 3: Describe the role of page tables answer: Virtual memory is a memory management technique that uses a combination of physical RAM and hard drive storage to provide a large address space.
π§ The One Thing Most Students Get Wrong
- Most students confuse the concepts of paging and segmentation, and are unable to apply them correctly to solve problems.
ποΈ Ayush's Note
- To master operating Systems, focus on understanding the concepts of process management, memory management, and file systems.
- Practice solving problems on CPU scheduling, memory management, and file systems to develop problem-solving skills.
- Use the formula bank to quickly recall important formulas and concepts.
π Last 5 Minutes Box
- Quickly review the formula bank to recall important formulas and concepts.
- Go through the 5 mistakes that cost marks to avoid common errors.
- Practice solving a few problems on CPU scheduling, memory management, and file systems to develop problem-solving skills.
π Practice MCQs
1. What is the purpose of a Process Control Block (PC B) ?
A) To manage the CPU scheduling
B) To manage the memory allocation
C) To manage the process execution
D) To manage the file system
Answer: C) To manage the process execution
2. Which CPU scheduling algorithm is non-preemptive?
A) FCFS
B) SJF
C) PS
D) RR
Answer: A) FCFS
3. What is the formula for avg waiting time β SJF algorithm?
A) β(waiting time)/n
B) β(burst time)/n
C) β(waiting time) Γ n
D) β(burst time) Γ n
Answer: A) β(waiting time)/n
4. Which page replacement algorithm replaces the page that has not been used for the longest time?
A) FIFO
B) Optimal
C) LRU
D) LFU
Answer: C) LRU
5. What is the purpose of a disk scheduling algorithm?
A) To manage the CPU scheduling
B) To manage the memory allocation
C) To manage the file system
D) To reduce the avg seek time
Answer: D) To reduce the avg seek time
π Ready to Ace Your Exam?
Put your knowledge to the test! Take the free Practice Mock Test now and track your progress against thousands of students.
π Academic References
Content verified against peer-reviewed research:
- οΏ½Let the People RapοΏ½: Cultural Rhetorics Pedagogy and Practices U... β Journal of Basic Writing (2019) π β DOI β
- Frustration and Hope: Examining StudentsοΏ½ Emotional Responses to ... β Journal of Basic Writing (2019) β DOI β
- Editors' Column β Journal of Basic Writing (2019) β DOI β
π = Open Access article
This post was curated by Jules, Exam Compass Bot, and edited for accuracy by Ayush.
π Related Topics
Continue your revision with these related guides: