GATE CS Operating System: 1 units and 5 chapters, weightage from 48 previous year questions across 10 papers, a study order by exam weight and 1332 practice q
A question from this chapter
Question 1
Level 1: Warm-up
In the standard five-state process model, a process is currently in the 'Running' state. How many distinct valid state transitions are possible directly from the 'Running' state?
Question 2
Level 1: Warm-up
Three processes arrive at time zero with CPU burst times of 0.01 seconds, 15 milliseconds, and 25 milliseconds. If the scheduler uses Non-Preemptive Shortest Job First (SJF), what is the minimum achievable average waiting time in milliseconds (rounded to 2 decimal places)?
Question 3
Level 1: Warm-up
Assertion (A): In the bounded buffer problem, if a producer executes wait(mutex) followed by wait(empty), the system may deadlock.
Reason (R): The producer holds the mutex while blocked on the empty semaphore, preventing the consumer from entering the buffer to free a slot.
Question 4
Level 1: Warm-up
Assertion (A): A program with 15 memory accesses and 9 page faults has a page fault rate of 0.6.
Reason (R): Page fault rate is calculated as Total Page Faults divided by Total Memory Accesses.
Options:
A) Both A and R are true and R is the correct explanation of A
B) Both A and R are true but R is not the correct explanation of A
C) A is true but R is false
D) A is false but R is true
Question 5
Level 1: Warm-up
Assertion (A): Reading the 3rd block of a 10-block file in linked allocation requires 3 disk accesses.
Reason (R): The time taken is 3 KB because each block is 1 KB in size.
Free preview ends here
Login to view the complete short notes
Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.
Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.
Built around you, not around a syllabus PDF
Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.
Revision that hits your weak spots
We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.
Questions calibrated to the real exam
Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.
Notes written for recall, not for volume
Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.
One place for everything
Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.
Honest progress
No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.
Unlock the whole course
Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.
GATE CS Operating System: 1 units and 5 chapters, weightage from 48 previous year questions across 10 papers, a study order by exam weight and 1332 practice questions.
About Operating System Short Notes
Quick revision sheets for Operating System in GATE CS. Every chapter is condensed into key formulas, shortcuts and common traps so you can revise 5 chapters fast before the exam.
GATE CS Operating System Unit-wise Weightage from Past Papers
We counted every GATE CS Operating System previous year question in our bank (48 questions from 10 papers) and grouped them by unit.
One Solved Question from Each Operating System Chapter
Question 1 · Processes, Threads, System Calls and Context SwitchingNAT
In the standard five-state process model, a process is currently in the 'Running' state. How many distinct valid state transitions are possible directly from the 'Running' state?
Correct Answer:
3.00
Step-by-Step Solution
Key idea: This is a state transition diagram recall question, recognizable because it asks for valid moves from a specific state.
Step 1: Identify the current state: Running.
Step 2: List all valid outgoing transitions from the Running state:
Running → Ready (due to preemption or time quantum expiry)
Running → Blocked (due to I/O request or waiting for an event)
Running → Terminated (due to process completion or exit)
Step 3: Count the valid transitions. There are exactly 3.
Answer: 3.00
Question 2 · CPU SchedulingNAT
Three processes arrive at time zero with CPU burst times of 0.01 seconds, 15 milliseconds, and 25 milliseconds. If the scheduler uses Non-Preemptive Shortest Job First (SJF), what is the minimum achievable average waiting time in milliseconds (rounded to 2 decimal places)?
Correct Answer:
11.67
Step-by-Step Solution
Key idea: Convert all burst times to the same unit, then apply SJF to minimize average waiting time.
Step 1: Convert all burst times to milliseconds:
P1: 0.01 seconds = 10 ms
P2: 15 ms
P3: 25 ms
Step 2: Sort by burst time (SJF order):
P1: 10 ms
P2: 15 ms
P3: 25 ms
Step 3: Calculate waiting times:
P1: WT = 0 (runs first)
P2: WT = 10 (waits for P1)
P3: WT = 10 + 15 = 25 (waits for P1 and P2)
Step 4: Calculate average waiting time:
Avg WT=30+10+25=335=11.67 ms
Answer: 11.67
Question 3 · Concurrency, Synchronization and DeadlocksMCQ
Assertion (A): In the bounded buffer problem, if a producer executes wait(mutex) followed by wait(empty), the system may deadlock.
Reason (R): The producer holds the mutex while blocked on the empty semaphore, preventing the consumer from entering the buffer to free a slot.
A.
Both A and R are true but R is not the correct explanation of A.
B.
A is true but R is false.
C.
Both A and R are true and R is the correct explanation of A.
D.
A is false but R is true.
Correct Answer:
C
Step-by-Step Solution
Key idea: Acquiring a mutex before checking resource availability can lead to a circular wait if the resource is unavailable.
Step 1: The producer executes wait(mutex), setting mutex to 0 and acquiring the lock.
Step 2: The producer then executes wait(empty). If the buffer is full, empty is 0, so the producer blocks.
Step 3: The producer is now blocked while still holding the mutex.
Step 4: The consumer needs the mutex to remove an item and signal empty. Since the producer holds the mutex, the consumer blocks forever.
Step 5: Both processes are blocked, resulting in a deadlock. Thus, both A and R are true, and R correctly explains A.
Answer: C
Question 4 · Memory Management, Paging and Virtual MemoryMCQ
Assertion (A): A program with 15 memory accesses and 9 page faults has a page fault rate of 0.6.
Reason (R): Page fault rate is calculated as Total Page Faults divided by Total Memory Accesses.
Options:
A) Both A and R are true and R is the correct explanation of A
B) Both A and R are true but R is not the correct explanation of A
C) A is true but R is false
D) A is false but R is true
A.
Both A and R are true and R is the correct explanation of A
B.
Both A and R are true but R is not the correct explanation of A
C.
A is true but R is false
D.
D) A is false but R is true
Correct Answer:
A
Step-by-Step Solution
Key idea: Verify both the assertion and reason, then check if the reason correctly explains the assertion.
Step 1: Evaluate Assertion (A). Page fault rate = 9 / 15 = 0.6. The assertion is true.
Step 2: Evaluate Reason (R). The formula for page fault rate is indeed Total Page Faults / Total Memory Accesses. The reason is true.
Step 3: Check if R explains A. The reason provides the exact formula used to calculate the value in the assertion. Therefore, R is the correct explanation of A.
Answer: Both A and R are true and R is the correct explanation of A (Option A)
Question 5 · File Systems and Storage AllocationMCQ
Assertion (A): Reading the 3rd block of a 10-block file in linked allocation requires 3 disk accesses.
Reason (R): The time taken is 3 KB because each block is 1 KB in size.
A.
Both A and R are true, and R is the correct explanation of A.
B.
A is true, but R is false.
C.
Both A and R are true, but R is not the correct explanation of A.
D.
A is false, but R is true.
Correct Answer:
B
Step-by-Step Solution
Key idea: This is an assertion-reason question testing disk access counts and unit awareness.
Step 1: Evaluate Assertion (A). In linked allocation, reading the k-th block requires k disk accesses. For k=3, it requires 3 accesses. So, A is true.
Step 2: Evaluate Reason (R). Disk accesses are counted in number of operations, not in kilobytes (KB). Stating the "time taken is 3 KB" is a unit mismatch and conceptually false. So, R is false.