0% found this document useful (0 votes)
15 views3 pages

Os Mid1 Assignment

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

Os Mid1 Assignment

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

CMR ENGINEERING COLLEGE

(Approved by AICTE, Affiliated to JNTU, Hyderabad)


KANDLAKOYA (V), MEDCHAL ROAD, HYDERABAD-501401.
Ph: 08418 200037, 92470 22662, Fax: 08418 200240, www.cmrec.ac.in

Department of Information Technology

II-B. Tech I-Semester


SUBJECT: Operating System

MID-I Assignment Questions

I. Answer the following questions:

1. Illustrate operating system and explain the following terms:

(a) Simple Batch

(b) Mutliprogrammed

(c) Time shared

(d) Parallel and Distributed (CO1)

2. What is process? Classify the various steps involved in change of process state and also

draw a neat diagram of process state. (CO2)

3. Consider a set of processors whose arrival time and burst time are given below

Process ID Arrival Time Burst Time

P1 5 5

P2 4 6

P3 3 7

P4 1 9
P5 2 2

P6 6 3

If the CPU scheduling policy is round robin with time quantum 3sec. Calculate the average

waiting time and average turnaround time by using FCFS, SJF, Round Robin. (CO1)

4. Consider a system that contain 5 processes p1,p2,p3,p4,p,5 and 3 resources types A B C

following are the resources types A has 10,B has 5, C has 7 instances.

Process Allocation Max Available

ABC ABC ABC

P1 010 753 332

P2 200 322

P3 302 902

P4 211 222

P5 002 433

Answer the following:

(a) What is the reference of the need matrix.

(b) Determine if the system is safe or not.

(c) What will happen if the resources request (1,0,0) for process P1? Can the system

accept this request immediately? (CO5)


5. A system has 3 devices D1, D2, D3 and 3 processes P1,P2,P3. P1 is holding D1 and

waiting for D3. P2 is holding D3 and waiting for D1. P3 is holding D3 and waiting for D2.

Draw the resource allocation graph and wait for graph. Is the system in deadlock condition

or not? (CO5)

You might also like