18CS34
18CS34
USN
RV COLLEGE OF ENGINEERING®
(An Autonomous Institution affiliated to VTU)
III Semester B. E. Examinations April/May-2023
Computer Science and Engineering
OPERATING SYSTEMS
Time: 03 Hours Maximum Marks: 100
Instructions to candidates:
1. Answer all questions from Part A. Part A questions should be answered
in first three pages of the answer book only.
2. Answer FIVE full questions from Part B. In Part B question number 2, 7
and 8 are compulsory. Answer any one full question from 3 and 4 & one
full question from 5 and 6
PART-A
1 1.1 What is copy-on-write in process creation? What is it’s advantage. 02
1.2 Analyze the code below and create parent-child relationship tree to
determine number of process.
02
1.3 In additional reference bit algorithm, In the given table the next frame
selected for replacement is ___________. Give reason.
02
1.4 If the total number of available frames is , and there are processes
one of pages and the other of pages then calculate number of
frames allocated to each of these processes using proportional
allocation method. 02
1.5 Even if number of frames are increased, ___________ algorithm may
result in increased number of page faults. This scenario is known as
___________. 02
1.6 Construct a wait-for-graph for resource allocation graph below and
determine if there exist a deadlock.
02
1.7 How the operating system and other processes are protected from being
modified by an already running process? 02
1.8 What are the three main goals of an operating systems? 02
1.9 At a particular time of computation the value of a counting semaphore
is then operations and operations were completed on this
semaphore determine the resulting value of the semaphore. 02
1.10 Assuming page size and logical address space size, what are
the page numbers and offsets for the following address references:
i)
ii) 02
PART-B
2 a Elucidate with the help of neat diagram the dual mode of operation and
it’s purpose in operating systems? Which of the following instructions
need to execute in privileged mode or user mode, give reason.
i) Printing file on printer
ii) Create a child process
iii) Sorting list of numbers
iv) Read the clock 08
b Design a program to create child process from same parent, where
is read from user as a command line argument. Each child should print
message “Hi from child with parent ”, where is the process
of the child and parent. The parent process should wait for all the
children to exit first. 08
OR
OR