Os QP
Os QP
Q no 3
architecture for a real time system. Out of Monolithic
(a) You need to select operating system
Layered Architecture which one will you
kernel architecture, Micro kernel Architecture and
(5)
select and why?
Scheduling algorithm witha quantum of 2
(b) Consider a scenario where OS is using Round Robin
4 processes is given below:
milisecond. The CPUburst time and arrival time of
Arrival time in mili CPU burst time in miliseconds
S.No Process
seconds
3
PO
2 P1 3
5 2
3 P2
P3
Average waiting time ii Average Response time iii
Show Gantt chart and calculate following i. (2+1+1+1=5)
Average turn around tine
Q. no 4
of another
of fragmentation but creates the problem
(a) "Paging solves the problem of one type not? (5)
statement? If yes why, if not why
type of fragmentation" Doyou agree with this
explain its significance. Willthere be a separate
(b) List the contents of Process Control Block and
PCB for each thread?
(5)
RollNo. ....
(Please write your Roll No. immediately)
Mid-Term Examination
B.TECH. PROGRAMMES (UNDER THE AEGIS OF USICT)
Sixth Semester, May, 2023
Paper Code: ETCS-304
Subject: Operating Systems
Maximum Marks: 30
Time: 1:30 Hrs.
Note: Attempt Q. No. 1 which is compulsorv and any twomore questionsfrom the remaining.
Question 1
1. What are schedulers? Explain the role of different types of schedulers. milliseconds.
in
2. Consider the table with 5 processes with their burst and arrival times
Arrival Time
Process Burst Time
P1 6
P2
1
P3
P4 3
4 4
PS
turnaround time for FCFS, SRTF
Draw the Gantt chart and find the average waiting time and average
(4, 6)
and Round Robin(time quantum=2 ms) scheduling algorithms.
Question 3
Question 4
1. On a simple paged system, associative registers hold the most active page entries and full page table is
stored in the main memory. If the references satisfied by the associative registers take 100ns and
references through the main memory page table take 180 ns. What must be the hit ratio to be achieved
125 ns?
on effective access time of
2. Write short notes on: (a) PCB (b) Segmentation (c)IPC (4,6)
Exam Roll No.
(Please write your Exam Roll No.)
END TERM EXAMINATION
SIxTH SEMESTER B.TECH JULY-2023
Subject: Operating Systems
Paper Code: ETCS-304
Maximum Marks:75
Time: 3 Hours
Note: Attempt ive questions in all including. Qno. 1 which is
each untt.
compulsory. Select one question from
(5x5-25]
Q1 Attempt any Five
other
term busy wwaiting? What
(a) What is the meaning of the operating systemn? Can busy
kinds of waiting are there in an
Explain your answer.
waiting be avoided altogether? system? How it is
operating
(b) What is multiprogramming
different from Multiprocessing. Explain.
with the help of suitable
(c) Explain Process Control Block
diagram in detail.
example?
(d) Explain race condition with suitable must be present for a
that
(e) What are the four conditions
deadlock to be possible?
() What are various file attributes?
UNIT-I
Operating Systemn? What are
Q2 (a) Explain the layered approach of [6]
main task of OS?
100K,500K, 200K,300K and 600K (in
(b) Given Memnory Partitions of the first fit, best fit, and worst fit
order), how would each of
212K,417K,112K and 426K (in
algorithms place processes of efficient use of memory?
order)? Which algorithms makethe most [6.5]
ETCS-304
[2-]
i Average waiting time for these processes with the Shortest
Remaining Time First, Round Robin (Time quantum 3ms) &
FCFS scheduling algorithm.
Average turnaround time for these processes with the SRTF,
Round Robin & FCFS Algo.
(b) Explain the Dining Philosophers classical IPC problem and its
solution. [6]
Q5 (a) What is thread? What are the differences between user-level
threads and kernel-level threads? Under what circumstances is
one type better than the other? [6]
(b) Explain bakery algorithm. Prove that it satisfy all the three
requirements for critical section problem. (6.5]
UNIT-III
Q6 (a) A disk with 1000 cylinders, numbered 0 to 999, compute the
number of tracks the disk arms must move to satisfy the entire
request in the disk queue. Assume the current request serviced
is at track 345 and head is moving towards track 0.The queue in
FIFO order contains request for the following tracks:
123,874,692,400,475,105,376. Perform the computation for the
following scheduling algorithm [6.5]
(1) FIFO (2) sSTF (3) SCAN (4) C-SCAN (5) LOOK
(b) Explain resource allocation graph. [3]
(c) What is Safe state? Explain with the help of suitable example.[3]
Q7 (a) Explain Bankar's Algorithm including safety algorithm &
resource request algorithm? [6]
(b) Consider the following snapshot of a system [6.5]
Allocation Maximum
Process A B C D A B C D
P1 1 2 0 1 2
P2 1 0 1 7 5
P3 1 3 5 4 2 3 5 6
P4 06 3 2 6 5 2
P5 1 4 6 5 6
Let the available number of resources be given by avail vector as (1,
5, 2, 0). Use banker'salgorithm and answer.
1.Find the contents of the matrix NEED".
2. Is the system in a safe state?
3.If a request from process P1 for (0, 4, 2, 0) arrives, can it be
granted immediately?
UNIT-IV
Q8 (a) Explain various types of file and file access methods? [6.5]
(b) What do you mean by directory structure? Explain various
directory structures with suitable diagram? [6]
Q9 Write short notes on any two: - [6.25x2=12.5]
(a) Logical file system v/s Physical file system
(b) FAT v/s NTFS
(c) Explain various file allocation strategies