chapter

    Operating System Short Notes for Gate Cs

    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.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    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.

    Operating System Short Notes for GATE CS

    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.

    UnitChaptersPYQsShare of sectionAvg per paper
    Operating System548100%4.8

    Suggested Operating System Study Order for GATE CS

    1. Operating System: 100% of past Operating System questions, about 4.8 per paper.

    Start where the marks are. Units at the top of this list have appeared most often in past GATE CS papers.

    Units in GATE CS Operating System

    All Operating System chapters

    One Solved Question from Each Operating System Chapter

    Question 1 · Processes, Threads, System Calls and Context Switching NAT

    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 Scheduling NAT

    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:

    • : 0.01 seconds = 10 ms
    • : 15 ms
    • : 25 ms

    Step 2: Sort by burst time (SJF order):

    • : 10 ms
    • : 15 ms
    • : 25 ms

    Step 3: Calculate waiting times:

    • : WT = 0 (runs first)
    • : WT = 10 (waits for )
    • : WT = 10 + 15 = 25 (waits for and )

    Step 4: Calculate average waiting time:

    Answer: 11.67

    Question 3 · Concurrency, Synchronization and Deadlocks MCQ

    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.

    1. A.

      Both A and R are true but R is not the correct explanation of A.

    2. B.

      A is true but R is false.

    3. C.

      Both A and R are true and R is the correct explanation of A.

    4. 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 Memory MCQ

    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

    1. A.

      Both A and R are true and R is the correct explanation of A

    2. B.

      Both A and R are true but R is not the correct explanation of A

    3. C.

      A is true but R is false

    4. 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 Allocation MCQ

    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.

    1. A.

      Both A and R are true, and R is the correct explanation of A.

    2. B.

      A is true, but R is false.

    3. C.

      Both A and R are true, but R is not the correct explanation of A.

    4. 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 -th block requires disk accesses. For , 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.

    Step 3: Conclude that A is true, but R is false.

    Answer: A is true, but R is false.