Nothing Special   »   [go: up one dir, main page]

Fourth Semester B.Tech Degree Examination July 2021 (2019 Scheme)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

D 02000CST206052101 Pages: 3

Reg No.:_______________ Name:__________________________


APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fourth Semester B.Tech 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

You might also like