Connect with fellow learners in the PlacePrep Discord communityㆍ Join now →
R's PlacePrep

Operating Systems 2025

2 sections, 9 questions

Code: 105305
Sem: III
Marks: 70
Duration: 03 Hours

MCQ Section

1 questions
Q1. Choose the correct option/answer the following (Any seven question only): [2 × 7 = 14]

(a) What is the ready state of a process?

  1. When process waits for the scheduler to do a context switch
  2. When process is using the CPU
  3. When process is unable to run until some task has been completed
  4. None of the mentioned

(b) The total number of processes completed per unit time is known as

  1. Output
  2. Throughput
  3. Efficiency
  4. Capacity

(c) Physical memory is broken into fixed-sized blocks called

  1. Frames
  2. Backing store
  3. Pages
  4. None

(d) The First Fit, Best Fit and Worst Fit are partitioning algorithms to select a

  1. Process from a queue to put in memory
  2. Free Hole from a set of available Hole
  3. Processor to run the next process
  4. All of the mentioned

(e) In Paging, every logical address generated by the CPU is divided into two parts. They are

  1. Page Number and Frame Bit
  2. Page Offset and Frame Bit
  3. Page Number and Page Offset
  4. Frame Offset and Page Offset

(f) Page fault occurs when

  1. Page is not in cache
  2. CPU idle
  3. Page not in main memory
  4. Page is modified

(g) Deadlock prevention ensures

  1. Deadlock never occurs
  2. Deadlock recovery is easy
  3. Deadlock is detected after occurrence
  4. System ignores deadlocks

(h) Which IPC mechanism requires synchronization between processes?

  1. Shared memory
  2. Pipes
  3. Message passing
  4. Signals

(i) User-level threads are managed by

  1. Kernel
  2. Hardware
  3. Thread library
  4. Compiler

(j) A process moves from Running to Ready state due to

  1. I/O request
  2. Time quantum expiry
  3. Process termination
  4. Waiting for signal

Long Answer Questions

8 questions
Q2. [7 + 7 = 14]

(a) What is dispatch latency? How does it affect Real time scheduling? Suggest some solutions to keep dispatch latency low.

(b) What is a process scheduler? State the characteristics of an exemplary process scheduler.

Q3. [7 + 7 = 14]

(a) Describe the implementation of semaphores in attaining process synchronization. Explain any two classical process synchronization problems.

(b) Consider a disk with 200 tracks and the queue has random requests from different processes in the order: 55, 58, 39, 18, 90, 160, 150, 38, 184. Initially arm is at 100. Find the Average Seek length using FIFO, SSTF and SCAN algorithm.

Q4. [7 + 7 = 14]

(a) Consider the set of Processes ⟨A,B,C,D⟩\langle A, B, C, D \rangle assumed to have arrived at the time sequence ⟨0,1,2,4⟩\langle 0, 1, 2, 4 \rangle having Burst time ⟨3,6,4,2⟩\langle 3, 6, 4, 2 \rangle respectively. Draw the Gantt Chart illustrating their execution using Shortest Job First (SJF) Algorithm, Shortest Remaining Time First (SJF Preemptive Algorithm) and calculate the Average Turn Around time and Average waiting time for both scheduling algorithms.

(b) With a neat sketch (process state diagram), explain various states the process may undergo from its creation to its termination. Mark all possible transitions and states and clearly explain the details of states and state-transitions.

Q5. [7 + 7 = 14]

(a) Consider the following snapshot of a system:

ProcessAllocation (A B C D)Max (A B C D)Available (A B C D)
P00 0 1 20 0 1 21 5 2 0
P11 0 0 01 7 5 0
P21 3 5 42 3 5 6
P30 6 3 20 6 5 2
P40 0 1 40 6 5 6

Answer the following questions using the Banker's algorithm:

  • (i) What is the content of the matrix Need?
  • (ii) Is the system in a safe state?
  • (iii) If a request from process P1 arrives for (0,4,2,0), can the request be granted immediately?

(b) Explain the concept of paging in operating systems. Discuss the structure of logical and physical addresses, the role of the page table in address translation, and analyze the issue of internal fragmentation in paging systems.

Q6. [7 + 7 = 14]

(a) Consider the following page reference string 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1. How many page faults would occur for the following page replacement algorithms for 3 page frames? All frames are initially empty.

  • (i) FIFO replacement
  • (ii) LRU
  • (iii) Optimal replacement

(b) Describe the segmentation memory management scheme in operating systems. Explain the logical address format, segment table structure, and discuss the problem of external fragmentation along with its impact on memory utilization.

Q7. [7 + 7 = 14]

(a) Explain the concept of preemptive CPU scheduling in operating systems. Discuss its working mechanism, advantages, disadvantages, and compare it with non-preemptive scheduling in terms of responsiveness and overhead.

(b) Discuss the significance of time quantum in time-sharing systems. Analyze how the choice of time slice affects CPU utilization, context switching overhead, and turnaround time of processes.

Q8. [7 + 7 = 14]

(a) Explain the concept of multithreading in operating systems. Discuss the advantages of multithreading, different models of multithreading, and analyze the challenges involved in thread management such as synchronization and resource sharing.

(b) In a system implementing the Readers-Writers synchronization problem, suppose there are 5 processes arriving in the following order with their arrival times (in ms) and operation durations:

  • (i) R1: Arrival = 0, Duration = 4
  • (ii) W1: Arrival = 1, Duration = 3
  • (iii) R2: Arrival = 2, Duration = 3
  • (iv) R3: Arrival = 3, Duration = 2
  • (v) W2: Arrival = 5, Duration = 2

Assuming the first Readers-Writers problem (reader-priority) is followed: Determine the execution order of processes and compute the waiting time for each process. Also, draw the corresponding timeline (Gantt chart) showing access to the shared resource.

Q9. [7 × 2 = 14]

Write short notes on any two of the following:

(a) Batch Processing System

(b) Multiprogramming System

(c) Real-Time System

(d) Timesharing System


Last updated: 2026-10-31