Fourth Semester B.Tech Degree Examination July 2021 (2019 Scheme)
Fourth Semester B.Tech Degree Examination July 2021 (2019 Scheme)
Fourth Semester B.Tech Degree Examination July 2021 (2019 Scheme)
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
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.
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