PREVIOUS YEAR QUESTION PAPER

CS6108 – OPERATING SYSTEMS

Anna University

Regulation 2019 Semester 4 2024

Question Paper Details

University Anna University
Degree B.E. Computer Science and Engineering
Department Computer Science and Engineering
Regulation Regulation 2019
Semester 4
Subject Code CS6108
Subject Name OPERATING SYSTEMS
Exam Session May June 2024
Duration 3 Hours
Maximum Marks 100

View Question Paper PDF

Access the previous year question paper for your examination preparation.

View / Download PDF

How to Use This Question Paper

More Question Papers

Browse other previous year question papers for this subject.

View All Subject Question Papers

Question Paper Intelligence

Automatically extracted historical question data. Academic accuracy and examination rules require verification.

10Extracted entries
100Maximum marks (metadata)
180Duration (minutes)
0Choice candidates

Part-wise extracted questions

Part A7
Part B1
Part C2

Question type candidates

Other Or Unclassified7
Diagram2
Definition1

Section marks — arithmetic candidates

Part A20 marks
Part B64 marks
Part C16 marks

Recorded Bloom level candidates

BL L12
BL L21
BL L33
BL L41

Examination marks pattern

PartRequired answersMarks per answerSection total
A10220
B8864
C2816

Estimated time allocation

Proportional to section marks. This estimate uses the full exam duration without a separate reading or revision reserve.

Section time budget

Part A36.0 min
Part B115.2 min
Part C28.8 min

Question navigator

Extracted questions

Part A — 1

What are the types of multiprocessors, and highlight their advantages. 2 1 L1

Definition

Source quality review required

Part A — 2

Sketch the microkernel system structure. Z 2 [1

Diagram

Source quality review required

Part A — 3

Highlight the benefits achieved by process cooperation. Ps 3 L2

Other Or Unclassified

Source quality review required

Part A — 4

Sketch the state diagram of process states. 2 3 ட1

Diagram

Source quality review required

Part A — 5

Consider a program that performs three tasks sequentially: Task A, 2 3 L3 Task B, and Task C. The sequential execution time for each task is as follows: Task A: 10 seconds, Task B: 15 seconds, Task C: 30 seconds. If you parallelize the execution of Task B using two threads, how much time would it take to complete all tasks? Cc 6 List the programming challenges for multicore systems. 2 2 L1 i If the average wait time to acquire a mutex lock is 10 ms and the critical 2 3 L3 section execution time is 5 ms, what is the total time a process spends if it has to wait once before entering the critical section?

Other Or Unclassified

Source quality review required

Part A — 8

Detail the circular wait leading to a deadlock situation. 2 3 L2

Other Or Unclassified

Source quality review required

Part A — 9

Under what circumstances do page faults occur? Describe the actions 2 4 L4 taken by the operating system when a page fault occurs. 10 |A 1000 KB memory is managed using variable partitions but no 2 4 L3 compaction. It currently has two partitions of sizes 200 KB and 260 KB respectively. What is the smallest allocation request in KB that could be denied?

Other Or Unclassified

Source quality review required

Part B — 12

(High) 9 NI] @] co} A] oo] PO (ஆம Oo] Al ry} a] A} L2,L3 15 b) Consider the following set of processes, assumed to have arrived at time 0. Consider the CPU scheduling algorithms Shortest Job First (SUF) and Round Robin (RR). For RR, assume that the processes are scheduled in the order P1, Pa, Ps, 4. Processes | 21 [22 23 24 Burst time | 8 7 2 4 (in ms) If the time quantum for RR 15 4 ms, then compute the absolute value of the difference between the average turnaround times (in ms) of SJF and RR (round off to 2 decimal places). (4) In a system with three processes (P1, P2, P3) sharing a critical section, if each process takes 15 ms to execute in the critical section and the mutex lock overhead is 5 ms, calculate the total time required for P1 to complete its critical section execution when P2 has just exited the critical section. (4) L3 16 Highlight the procedures to Implement a semaphore with no busy waiting. (4) Consider a system consisting of processes P1, Pa, ..., Pn, each of which has a unique priority number. Write a monitor that allocates three identical printers to these processes, using the priority numbers for deciding the order of allocation. (4) L2,L3 17 a) Consider a system consisting of m resources of the same type being shared by n threads. A thread can request or release only one resource at a time. Show that the system is deadlock free if the following two conditions hold: (4) i. The maximum need of each thread is between one resource and m resources. ii. The sum of all maximum needs is less than m +n. Draw a resource-allocation-graph for the scenario given below: (4) Set of resources: (R1, R2, R3, R4, R5), Set of processes: (P1, P2, P3, P4, P5) i. R1 is allotted to P2 and requested by P1; R2 is allotted to P1 and requested by P4; ii. R3 is allotted 1௦ P5 and requested by P2, R4 is allotted to P3 and requested by P2; Provide the corresponding wait-for-graph and comment on the presence of deadlock. L4, L2 18 To eliminate deadlocks, we should abort those processes whose termination will incur the minimum cost. List out the factors to select the processes. (4) Consider a disk with 300 cylinders. The requests to access the cylinders arrive in the following order: 143, 86, 147, 913, 177, 948, 150, 102, 175, and 130. Suppose the disk arm is initially at cylinder 100. Implement the LOOK disk scheduling algorithm. Calculate the total head movement. (4) L2, yr 19 Why is rotational latency usually not considered in disk scheduling? How would you modify SSTF, SCAN, and C-SCAN to include latency optimization? (4) How relocation and memory protection is achieved by hardware support in Contiguous Memory Allocation? (4) L3, L2 20 b) Consider a computer system with 40-bit virtual addressing and page size of 16 kilobytes. If the computer system has a one-level page table per process and each page table entry requires 48 bits, then what is the size of the per-process page table (in megabytes)? (4) Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time and two memory accesses. The TLB hit ratio is 90% and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time? (4) L3, ட4 21 b) Sketch and discuss the hardware implementation of paging. (6) Consider a system with byte-addressable memory, 32-bit logical address, 4 kilobyte page size and page table entries of 4 bytes each. What is the size of the page table in the system in megabytes? (2) EZ, LS 22 |a) Sketch the procedure for handling page fault. (4) b) Consider a demand-paging system with a paging disk that has an average access and transfer time of 20 milliseconds. Addresses are translated through a page table in main memory, with an access 8 4 L2, L4 time of 1 microsecond per memory access. Thus, each memory reference through the page table takes two accesses. To improve this time, we have added an associative memory that reduces access time to one memory reference if the page-table entry is in the associative memory. Assume that 80 percent of the accesses are in the associative memory and that, of those remaining, 10 percent (or 2 percent of the total) cause page faults. What is the effective memory access time? (4)

Other Or Unclassified

Source quality review required

Part C — 23

Consider the following snapshot of a system: Allocation | Max. ட்‌ ABCD ABCD TO 1202 4316 T1 0112 2424 8 2 L4 T2 1240 3651 T3 1201 2623 T4 1001 3112 Using the banker's algorithm, determine whether or not each of the following states is unsafe. If the state is safe, illustrate the order in which the threads may complete. Otherwise, illustrate why the state is unsafe. (8) i. Available = (2, 2, 2, 3) ii. Available = (4, 4, 1, 1) iii. Available = (3, 0, 1, 4) iv. Available = (1, 5, 2, 2)

Other Or Unclassified

Source quality review required

Part C — 24

Consider the following page reference string: 1,2, 3,4, 2, 1, 5, 6 2, 1, 2,3,.7, 6, 3,2, 1, 2, 3, 6. How many page faults would occur for the following replacement P i o algorithms, assuming one, two, three, four, five, six, and seven frames? Remember that all frames are initially empty, so your first unique pages will cost one fault each. (8) e LRU replacement e FIFO replacement e Optimal replacement

Other Or Unclassified

Source quality review required

Advanced Examination Analysis

Historical analysis based on extracted question papers. Topic classifications, marks and planning estimates are provisional.