AD/CD/CS-405 (GS) – Operating Systems

B.Tech., IV Semester
Examination, November 2022
Grading System (GS)
Max Marks: 70 | Time: 3 Hours

Note:
i) Answer any five questions.
ii) All questions carry equal marks.

Previous Year Questions (November 2022)

Q.1

a) Explain the different types of services in Operating system and its features. (Unit 1)


b) Define the Utility programs with example. Explain system call. (Unit 1)


Q.2

a) What is Process ? Explain the process states diagram. (Unit 3)


b) Consider the set of processes with arrival time (in milliseconds), CPU burst time (in milliseconds) , and priority (0 is the highest priority) shown below. None of the processes have I/O burst time.

ProcessArrival timeCPU Burst timePriority
P10112
P25280
P31223
P42101
P59164

Solve the problem using preemptive priority scheduling algorithm. Draw the Gantt chart for it. and calculate Average waiting time, Turn around time. (Unit 3)


Q.3

a) Consider the resource allocation graph in the figure

Resource Allocation Graph containing three processes (P1, P2, P3) represented as circles, and three resources (R1, R2, R3) represented as rectangles. Resource R1 has 1 instance (1 dot), R2 has 2 instances (2 dots), and R3 has 1 instance (1 dot). The directed edges are as follows: A request edge from P1 to R1; an assignment edge from R1 to P2; an assignment edge from one instance of R2 to P1; an assignment edge from the other instance of R2 to P2; a request edge from P2 to R3; an assignment edge from R3 to P3; and a request edge from P3 to R2.

Find if the system is in a deadlock state otherwise find a safe sequence. (Unit 4)


b) Difference between Deadlock and Starvation. Explain the necessary Condition for Deadlock. (Unit 4)


Q.4

a) Explain the types of Semaphores in process synchronization. (Unit 4)


b) What are the different criteria for evaluating the CPU scheduling algorithm? (Unit 3)


Q.5

a) Consider a system with byte-addressable memory, 32 bit logical addresses, 4 kilobyte page size and page table entries of 4 bytes each. The size of the page table in the system in megabytes. (Unit 3)


b) Describe fixed and variable partitioned contiguous memory allocation scheme along with their merits and demerits. (Unit 3)


Q.6

a) Disk request come to a disk driver for cylinders in the order 10, 22, 20, 2, 40, 6 and 38 at a time when the disk drive is reading from cylinder 20. The seek time is 6 ms/cylinder. The total seek time if the disk arm scheduling algorithm is First-Come-First-Served (FCFS), and SCAN. (Unit 2)


b) How many types of disk allocation methods describe Indexed method with merits and demerits. (Unit 2)


Q.7

a) Explain the deadlock recovery in brief. (Unit 4)


b) Explain the I/O buffering and Interrupt driven operation in short. (Unit 4)


Q.8

Write short notes on following (Any two):

a) Distributed operating system. (Unit 5)

b) Multiprocessor operating system. (Unit 5)

c) Network Operating system. (Unit 5)

d) Paged Segmentation. (Unit 3)