0% found this document useful (0 votes)
78 views3 pages

Operating Systems Exam Questions Guide

This document is a study guide for an exam on operating systems. It contains 20 multiple choice and written response questions across 5 modules: 1) Operating system overview, 2) Process management, 3) Process synchronization, 4) Memory management, and 5) Storage management. The questions cover topics like multiprogramming, scheduling algorithms, interprocess communication, deadlocks, virtual memory, disk scheduling, and file systems. Students are asked to define terms, compare approaches, provide examples, analyze scenarios, and explain concepts from each module.

Uploaded by

Jessel Cherian
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views3 pages

Operating Systems Exam Questions Guide

This document is a study guide for an exam on operating systems. It contains 20 multiple choice and written response questions across 5 modules: 1) Operating system overview, 2) Process management, 3) Process synchronization, 4) Memory management, and 5) Storage management. The questions cover topics like multiprogramming, scheduling algorithms, interprocess communication, deadlocks, virtual memory, disk scheduling, and file systems. Students are asked to define terms, compare approaches, provide examples, analyze scenarios, and explain concepts from each module.

Uploaded by

Jessel Cherian
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

D 02000CST206052101 Pages: 3

Reg No.:_______________ Name:__________________________


APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fourth Semester [Link] Degree Examination July 2021 (2019 Scheme)

Course Code : CST206


Course Name: OPERATING SYSTEMS
Max. Marks: 100 Duration: 3 Hours
PART A
(Answer all questions; each question carries 3 marks) Marks
1 Which are the three methods used to pass parameters to operating system ? 3
2 Write three advantages of peer-to-peer system over client server system. 3
3 Differentiate Pre-emptive and Non-pre-emptive scheduling giving the 3
application of each of them.
4 Why is context switching considered to be an overhead to the system? 3
5 What are necessary conditions which can lead to a deadlock situation in a 3
system?
6 Explain the wait and signal operations used in semaphores. 3
7 How does swapping result in better memory management? 3
8 Explain the concept of virtual memory. Write one memory management scheme 3
which supports virtual memory.
9 Compare sequential access and direct access methods of storage devices. 3
10 Write notes on disk formatting. 3

PART B
(Answer one full question from each module, each question carries 14 marks)
Module -1
11 a) Distinguish among the following terminologies associated with the operating 9
system and explain each of them in detail.
(i) Multiprogramming systems (ii) Multitasking systems
(iii) Multiprocessor systems.

b) Explain, how the long-term scheduler directly affects the system performance. 5

12 a) Explain in detail about the various functions of operating systems. 6


b) Write notes on the following operating system structures. 8
(i) Layered approach (ii) Microkernel

Page 1 of 3
02000CST206052101

Module -2
13 a) A writer process like to send some bulk information to a reader process. Explain 8
the IPC mechanism that can be used for this purpose.
b) How many child process will be created for the following code ? 6
void main() { fork(); fork(); printf(“HELLO\n”); fork();
printf(“WELCOME\n); }
How many times HELLO and WELCOME will be printed? Justify your answer.
14 a) Five batch jobs A through E arrive at a computer system in the order A to E at 12
almost the same time. They have estimated running times of 6, 4, 1, 3, and 7
seconds. Their (externally determined) priorities are 3, 5, 2, 1, and 4
respectively, with 5 being the highest priority. For each of the following
scheduling algorithms, determine the average process waiting time. Ignore
process switching overhead.
(i) Round Robin (assume quantum = 2 sec) (ii) First-come first-served
(iii) Shortest job first (iv) Priority scheduling
b) Point out the significance of Zero capacity queue in IPC? 2

Module -3
15 a) Consider the following snapshot of a system with five processes P1, P2, P3, P4, 8
P5 and four resources A, B, C, D. What is the total number of instances of A, B,
C, and D? Using Bankers Algorithm check whether the system is in safe state
or not.

b) What is critical section problem? What are the requirements that need to be 6
satisfied by any solution to critical section problem? Give a solution to a 2
process critical section problem.
16 a) Describe the Bounded - buffer problem and give a solution for the same using 8
semaphores. Write the structure of producer and consumer processes.

Page 2 of 3
02000CST206052101

b) Why is deadlock state more critical than starvation? Draw the resource 6
allocation graph (i) with deadlock (ii) with a cycle but no deadlock.

Module -4
17 a) Explain with the help of supporting diagram, how translation look-aside buffer 8
(TLB) improves the performance of a paging system.
b) With a diagram write the steps involved in handling a page fault. 6
18 a) Consider the page reference string 1,2,3,4,2,1,5,6,2,1,2,3,7,6,3,2,1,2,3,6. For a 9
system with 3 frames compute the number of page faults for the following page
replacement methods: (i) FCFS (ii) Optimal (ii) LRU.

b) Consider the following segment table: 5


Segment Base Address Length

0 100 400

1 3700 300

2 700 600

3 2600 500

4 1500 1000

What are the physical addresses for the following logical addresses?
(i) 4, 350 (ii) 2, 100 (iii) 3, 70 (iv) 0, 25 (v) 1, 130
Module -5
19 a) Explain FCFS, SSTF and SCAN disk scheduling algorithms, using the given 9
disk queue of requests: 82,170,43,140,24,16,190. Find the total seek time for
each case. Assume that, the disk has 200 cylinders ranging from 0 to 199 and
the current position of head is at cylinder 50.
b) Explain indexed allocation method with an example. 5
20 a) Explain the different directory structures used in file system. 10
b) Different users may need different types of access to a file or directory. Explain 4
the most general scheme to implement identity dependent access.
***

Page 3 of 3

Common questions

Powered by AI

When a page fault occurs, the operating system must determine whether the access is valid, locate the missing page on disk, allocate space in memory for the page, load the page into memory, and update the page table to include it. If necessary, it may involve swapping out another page. The process involves multiple steps, each critical for maintaining the flow of operations and requires careful coordination between hardware and the operating system .

Pre-emptive scheduling allows the operating system to interrupt and switch the CPU between tasks, enabling better responsiveness, as seen in Round Robin scheduling. Non-preemptive scheduling, such as First-Come, First-Served (FCFS), allows a process to keep the CPU until it finishes executing or voluntarily yields, offering simplicity and reduced overhead but potentially poor response times in interactive systems .

Virtual memory is a memory management capability that provides an "idealized abstraction of the storage resources" and creates the illusion for users of a very large memory. It is supported by schemes such as paging, where the memory is divided into fixed-size units called pages, allowing for non-contiguous memory allocation and efficient memory use. This scheme helps manage fragmentation and allows for larger processes to be run than the physical memory might normally allow .

Directory structures in file systems can be single-level, two-level, tree, or acyclic graph structures. A single-level directory is simple but suffers from naming conflicts. Two-level directories provide a separate space for each user, improving organization. Tree structures allow a hierarchical arrangement supporting logical grouping and efficient file management, while acyclic graph structures are more flexible, permitting shared subdirectories and easier collaboration. Each structure offers different ease of use, performance, and management capabilities .

Different disk scheduling algorithms impact performance differently. FCFS (First-Come, First-Served) is fair but can lead to long wait times; SSTF (Shortest Seek Time First) reduces seek time but can cause starvation; SCAN (Elevator algorithm) moves the head across the full range, serving requests in one direction before reversing, balancing performance and fairness. Each algorithm has trade-offs in efficiency, fairness, and responsiveness, making the choice context-dependent based on the workload and system goals .

Peer-to-peer systems offer several advantages over client-server systems. Firstly, they provide increased fault tolerance as there is no single point of failure. Secondly, they enhance scalability since each peer contributes resources, reducing the burden on a central server. Thirdly, they improve resource utilization by allowing direct communication and resource sharing between peers .

Context switching is considered an overhead in operating systems because it involves saving and loading the state of a process so that execution can be resumed from the same point at a later time. This process requires significant CPU time and resources to store and restore process control blocks (PCBs), resulting in increased latency and reduced CPU efficiency as the processor is not performing actual computational work during the switch .

Deadlocks in a computing system can occur when the following conditions are met simultaneously: mutual exclusion, hold and wait, no preemption, and circular wait. Mutual exclusion ensures that resources cannot be shared, while hold and wait allows processes to hold resources while waiting for others. No preemption prevents the forcible release of resources, and a circular wait occurs when a closed chain of processes exists, each waiting for a resource held by the next process. Deadlocks can be analyzed by breaking any of these conditions to avoid the situation .

The three methods used to pass parameters to an operating system are: passing parameters in registers, using a table in memory, and pushing parameters onto the stack. Passing parameters in registers involves storing parameters within a set number of registers, which is efficient but limited by the number of available registers. Using a table in memory allows for more parameters as they can be stored in a contiguous block that the OS accesses, while pushing parameters onto the stack enables dynamic parameter passing and handles function calls efficiently by using the call stack .

The Translation Look-aside Buffer (TLB) improves the performance of a paging system by caching page table entries, thus reducing the time required for virtual address translation. When a virtual address is accessed, the TLB checks for a corresponding physical address, speeding up the lookup process significantly if the required entry is found in the TLB, reducing the need for frequent access to the slower main memory each time an address is translated .

You might also like