0% found this document useful (0 votes)
69 views1 page

OS Mid Paper Spring21 12052021 034844am

This document contains instructions and questions for a midterm examination in an Operating Systems course. It includes 3 questions: 1) Define the different methods for passing parameters in a system call to the OS and describe the responsibilities of an OS regarding process management activities. 2) Schedule 5 processes that arrive at different times using their burst times and a time slice scheduling algorithm. Draw a Gantt chart and calculate waiting times to identify ways to improve average waiting time. 3) Explain how to avoid deadlock by identifying an algorithm or method and providing an example with 3 processes and an algorithm for resource allocation to avoid deadlock and improve system performance.

Uploaded by

Kashanali Alu7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views1 page

OS Mid Paper Spring21 12052021 034844am

This document contains instructions and questions for a midterm examination in an Operating Systems course. It includes 3 questions: 1) Define the different methods for passing parameters in a system call to the OS and describe the responsibilities of an OS regarding process management activities. 2) Schedule 5 processes that arrive at different times using their burst times and a time slice scheduling algorithm. Draw a Gantt chart and calculate waiting times to identify ways to improve average waiting time. 3) Explain how to avoid deadlock by identifying an algorithm or method and providing an example with 3 processes and an algorithm for resource allocation to avoid deadlock and improve system performance.

Uploaded by

Kashanali Alu7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 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