You are on page 1of 1

Bahria University, Islamabad Campus

Department of Software Engineering


Mid Term Examination
Class/Section: 4(A)
(Spring 2021 Semester)
Paper Type: Descriptive
Subject: Operating System Date: 20-05-2021
Course Code: (CSC 320) Time: Session III
Name of Faculty: Aleem Ahmad Max Marks: 20
Time Allowed: 90 minutes Total Pages: 1

INSTRUCTIONS:
I. There are 3 questions and are to be attempted in the given sequence.
II. Copy pasting and plagiarizing is strictly not allowed.
III. Type your solutions and submit a .doc file in the given time.
IV. Mention your assumptions clearly and draw diagram where appropriate.
V. Written Exam carries 50% weightage of midterm assessment and rest 50% is for viva voce to be held
after exam week.
VI. Please do not call for the examiner. Understanding the comprehension is part of the examination.

Name: _______________________________ Enroll No: ______________________


(USE CAPITAL LETTERS)

Question # 1 (CLO-1): Answer the following questions: 2+2=4


a) How many general methods are there to pass the parameters in system call
to OS? List and explain those methods
b) Describe the responsibilities of OS regarding process management
activities?
Question # 2 (CLO-2): We have 5 number of processes which are arrived on different
time and their burst time is given in the table. OS needs to schedule them using their 8
burst time and time slice for their execution. Schedule these processes in such a way
that all process will be given time according to their sequence and time slice.
Draw Gantt Chart by identify the algorithm and Estimate waiting time for all
Processes & average waiting time as well.
Where Time Slice = 2. If we want to improve average and waiting time what changes,
we can do. Make an appropriate change to improve average and waiting time and also
draw Gantt Chart.
Data:
Process Arrival Time Burst Time
P1 0.0 11
P2 2.0 7
P3 4.0 5
P4 5.0 7
P5 7.0 5

Question # 3 (CLO-3): Deadlock is the situation where two or more processes are
blocked. How we can avoid the deadlock? Identify the method or algorithm through 8
which we can avoid deadlock for betterment of system performance. You can take an
example of 3 processes and write an algorithm to avoid deadlock for resource
allocation for all 3 processes.
End Paper
Page 1 of 1

You might also like