tcs503 Endsem 2019
tcs503 Endsem 2019
tcs503 Endsem 2019
"
TCS-503
a. TeCH. (CSE) (FIFifH SEMESTER) .
END SEMESTER EXAMINATION, 2019
OPERATING SYSTEM
Time: Three Hours
Maximum'Marks : 100
Note: (i) This question paper contains five questions..
(ii) All questions are compulsory. .
(iii) Instructions on how to attempt a question are mentioned against it.
. (iv) Total marks for each main question are twenty. j ;' .
1. Attempt any,two parts ~f choice ~om (a),(b) and (c). ,: (10x~ 20 Marks)
(a) Answerthefollowmg:, ... '. i'
(i) What is the basic goal of operating system? Give various .criteria
and state how they help in getting best performance out of
operating system. (5 Marks)
(ii) Discuss the various type'S of operating systems. List at least two
specifications of each type. ' . (5 Marks)
(b) An operating system uses the Shortest Remaining Time First (SR1F)
process scheduling algorithm. Consider the arrival times and execution
times for the following processes-:
Process - Burst Time Arrival Time
PI 20 0
P2 25 15
P3 10 30
P4 15 45
F No. :d-53 , P. T. O.
..
••
(2) TCS-503
Calculate following :
(i) Draw a Gantt chart for SRTF. (3 Marks)
(ii) What is the total waiting time for process P2 ? (2 Marks)
(iii) Calculate the average turn-around time. (3 Marks)
(iv) Calculate CPU utilization and throughput. (2 Marks)
(c) (i) Discuss Kernels and System calls. (5 Marks)
(ii) What is Virtual Machine ? Give some advantages of virtual
machines. Also. draw appropriate diagram in support of your
answer. (5 Marks)
2. Attempt any two parts of choice from (a), (b) and (c). (IOx2=20 Marks)
(a) Write short notes on thefollowing :
(i) Process state (5 Marks)
(ii) Context switch (5 Marks)
(b) What do you understand from the term "Operating System Structure" ?
Elaborate its different approaches along with suitable. neat, clean and
labelled diagrams.
(c) Consider the following set of processes, with the length of CPU given in
milliseconds :
Process "
Burst Time Priority
PI 8 4
P2 6 1
P3 1 2
P4 9 2
-
P5 3 3
The processes ~e assumed to have arrived in the order PI, P2, P3, P4,
P5 all at time O.
(i) Draw Gantt charts for the Priority (Non-preemptive) and R-R
scheduling algorithms. (4 Marks)
F. No. : d·S3
(3 ) TCS-503
(ii) What is the waiting time of each process and average waiting time
for each of these scheduling algorithms ? (3 Marks)
(iii) What is the average turn-around time of each scheduling
algorithms? (3 Marks)
3. Attempt any two parts of choice from (a), (b) and (c). (IOx2=20 Marks)
(a) Answer the following:
(i) Differentiate between Cooperative and Independent processes.
(5 marks)
(ii) Race condition (Explain with the help of an example). (5 marks)
(b) What is Critical Section problem ? State Readers-Writers problem and
give a solution. Also show that given solution satisfies all the
requirements of a solution for critical section problem.
(c) Consider the following snapshot of a system :
Allocation Max Available
·A B C D A B C D A BCD
PI 1 2 2 1 3 3 2 2 3 1 1 2
P2 1 0 3 3 1 2 3 4
P3 1 2 1 0 1 3 5 0
Answer the following questions using Banker's algorithm :
(i) What is the content of matrix need?
(ii) Is the system in safe state ? If no, explain the reason. If yes, give
the safe sequence.
(iii) If a process from PI arrives for (1, 1, 0, 2), can the request be
granted immediately. . J
4. Attempt any.two parts ofchoice from (a), (b) and (c). (lOx2=20 Marks)
{a) Explain the following terms:
(i) Logical and Physical Address Space (3 Marks)
(ii) Swapping (3 Marks)
(iii) Thrashing (2 Marks)
(iv) Demand segmentation (2 Marks)
••
(4) TCS-503.
TCS-S03 280
F. No.: d-53