Imp
Imp
12.b. Consider the following process with the CPU burst time given in milliseconds
Process Burst time Priority
P1 5 2
P2 1 1
P3 7 3
P4 1 4
P5 3 2
12.b. Explain the FCFS, preemptive and non-preemptive versions of Shortest Job First and Round Robin
(time slice =2) scheduling algorithms with Gantt char for the four processes given. Compare their average turn
around and waiting time.
12.b. For the processes listed below, draw a Gantt chart and find the Waiting time and Turnaround time.
a) FCFS (4)
b) SJF(Preemption and Non Preemption) (3)
c) Priority(Preemption and Non Preemption) (3)
d) RR (Quantum Slice: 4ms) (3)
Process Arrival Time Burst Time Priority
P1 0 10 4
P2 1 6 2
P3 2 12 1
P4 3 15 3
12.b. For the processes listed below, draw a Gantt chart and find the Waiting time and Total arrival time and
waiting time.
a)FCFS (7)
b)SJF (6)
Process Burst time Arrival time
P1 7 0
P2 4 2
P3 1 4
P4 4 5
12.b. Consider the following process with the CPU burst time given in milliseconds
Process Burst time Priority
P1 5 53
P2 1 17
P3 7 68
P4 1 24
Processes are arrived in P1,P2,P3,P4 order of all at time 0
Draw Gantt charts to show execution using FCFS, SJF (Non Preemption), Priority (Non Preemption) and RR
(Quantum=20ms) Scheduling. (7)
(ii) Also calculate the waiting time and Turnaround time. (6)
12.b. Explain the FCFS, preemptive and non-preemptive versions of Shortest Job First and Round Robin
(time slice =2) scheduling algorithms with Grant char for the four processes given. Compare their average turn
around and waiting time.
12.b. Consider the following process with the CPU burst time given in milliseconds
Process Burst time Priority Ariival time
P1 6 2 0
P2 2 2 1
P3 3 4 1
P4 1 1 2
P5 2 3
2
Processes are arrived in P1,P2,P3,P4,P5 order
Draw Gantt charts to show execution using FCFS, SJF (Non Preemption), Priority (Non Preemption) and (7)
(ii) Also calculate the waiting time and Turnaround time. (6)
12.b. For the processes listed below, draw a Gantt chart and find the Waiting time and Turnaround time.
a) FCFS (4)
b) SJF(Preemption and Non Preemption) (3)
c)Priority(Preemption and Non Preemption) (3)
d)RR (Quantum Slice: 4ms) (3)
Process Arrival Time Burst Time Priority
P1 0 10 4
P2 1 6 2
P3 2 12 1
P4 3 15 3
13.b.
There exist deadlock in this RAG. Say True or False. If your answer is True write the steps to detect and
recovery from it. If your answer is false, with the help of necessary conditions for a deadlock, explain each
condition.
13.b.
There exist deadlock in this RAG. Say True or False. If your answer is True write the steps to detect and
recovery from it. If your answer is false, with the help of necessary conditions for a deadlock, explain each
condition.
14.a. Given memory partitions of 100k, 50k,600k,450k,200k,600k
Determine the available space list after allocating the space for the stream of requests consisting of the following
block sizes:
25,100,250,200,100,150
Use i) FIRST FIT ii) BEST FIT and iii) WORST FIT algorithms.
14.a. Explain the concept of Paging with neat diagrams.
14.a. (i)What is fixed partition and Variable Partition memory allocation (6)
(ii) Explain paging and the use of TLB in paging (7)
14.a. (i)What is fixed partition and Variable Partition memory allocation (9)
(ii)Give the differences between: Internal and external fragmentation(4)
14.a. Given memory partitions of 100 K, 500 K, 200 K, 300 K and 600 K (in order) how would each of the
first fit, best fit and worst fit algorithms work place processes of 212 K, 417K,112 K and 426 K (in order)?
Which algorithm makes the most efficient use of memory?
14.a. Given memory partitions of 100k, 50k,600k,450k,200k,600k
Determine the available space list after allocating the space for the stream of requests consisting of the following
block sizes:
25,100,250,200,100,150
Use i) FIRST FIT ii) BEST FIT and iii) WORST FIT algorithms.
14.a. Given memory partitions of 100 K, 500 K, 200 K, 300 K and 600 K (in order) how would each of the
first fit, best fit and worst fit algorithms work place processes of 212 K, 417K,112 K and 426 K (in order)?
Which algorithm makes the most efficient use of memory?
14.a. Given memory partitions of 200 K, 500 K, 200 K, 300 K and 600 K (in order) how would each of the
first fit, best fit and worst fit algorithms work place processes of 212 K, 417K,112 K and 426 K (in order)?
Which algorithm makes the most efficient use of memory?
14.a. Given memory partitions of 100k, 50k,600k,450k,200k,600k
Determine the available space list after allocating the space for the stream of requests consisting of the following
block sizes:
25,100,250,200,100,150
Use i) FIRST FIT ii) BEST FIT and iii) WORST FIT algorithms.
14.a. Given memory partitions of 100 K, 500 K, 200 K, 300 K and 600 K (in order) how would each of the
first fit, best fit and worst fit algorithms work place processes of 212 K, 417K,112 K and 426 K (in order)?
Which algorithm makes the most efficient use of memory?
14.b. Consider the following page reference string: 1,2,3,4,2,1,5,6,1,2,3,7,6,3,2,1,2,3,6 . How many page
faults would occur for the FIFO, LRU and optimal page replacement algorithms assuming three and four
frames?
14.b. Consider the page reference string: 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1. How many page faults would
occur for FIFO, Optimal, LRU page replacement algorithm when the number of frames is 3.
14.b. Consider the page reference string: 1,2,3,4,2,5,3,4,2,6,7,8,7,9,7,8,2,5,4 and 9. How many page faults
would occur for FIFO, Optimal, LRU page replacement algorithm when the number of frames is 3 and 4.
14.b. Consider the following page reference string: 1,2,3,4,2,1,5,6,1,2,3,7,6,3,2,1,2,3,6 How many page faults
would occur for the FIFO, LRU and optimal page replacement algorithms assuming three and four frames?
14.b. Consider the following page reference string: 2,3,4,2,1,5,6,1,2,3,7,6,3,2,1,2,3,6 How many page faults
would occur for the FIFO, LRU and optimal page replacement algorithms assuming three and four frames?
14.b. Consider the page reference string: 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1. How many page faults would
occur for FIFO, Optimal, LRU page replacement algorithm when the number of frames is 3.
14.b. Consider the page reference string: 1,2,3,4,2,5,3,4,2,6,7,8,7,9,7,8,2,5,4 and 9. How many page faults
would occur for FIFO, Optimal, LRU page replacement algorithm when the number of frames is 3 and 4.
14.b. Consider the page reference string: 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1. How many page faults would
occur for FIFO, Optimal, LRU page replacement algorithm when the number of frames is 3.
14.b. The page reference string ginven area : 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1. How many page faults
would occur for FIFO, Optimal, LRU page replacement algorithm when the number of frames is 4.
14.b. Consider the page reference string: 1,2,3,4,2,5,3,4,2,6,7,8,7,9,7,8,2,5,4 and 9. How many page faults
would occur for FIFO, Optimal, LRU page replacement algorithm when the number of frames is 3 and 4.
15.a. Define File. What are the various types of files? Discuss in detail about several File Access methods
15.a. What are the attributes of a file? Explain in detail all file Access methods with diagrams.
15.a. Discuss in detail about file Operations with File Access methods
15.a. Write notes on File Access methods with a neat diagram.
15.a. What are the various types of files? Discuss in detail about several file Access methods
15.a. What are the attributes of a file? Discuss all file Access methods with diagrams.
15.a. List out attributes of a file and explain in detail about Access methods with a neat diagram.
15.a. Provide insights into File Access methods, accompanied by a clear diagram
15.a. Describe the differences between a file and a directory. Write in-Depth Exploration of vaious File
Access methods.
15.a. What is a file. Discuss all file Access methods with neat diagrams.
15.b. List out te types of Directory structure and explain in detail about eac wit a neat diagram
15.b. Explain in detail about all 5 directory structures with a neat diagram.
15.b. Write short notes on directory structures.
15.b. Explain the concept of Directory and suggest various types of Directory structures that can be used.
15.b. Discuss in detail about al1 5 types of directory structure wit neat diagrams
15.b. Describe the fundamental concept of directories and propose different types of directory structures.
15.b. Provide an explanation of the fundamental concept of directories and present diverse directory
structures.
15.b. Describe the differences between a file and a directory. Write in-Depth Exploration of 5 Directory
Structures with Diagrams
15.b. Explore the concept of directories and propose different types of directory structures that can be utilized.
15.b. Differntiate a file and directory.Describe the fundamental concept of directories and propose different
types of directory structures.
Part – C ( 1 x 15 = 15 Marks)
16.a. Consider the following snapshot of a system
Allocation Max Available
A B C D A B C D A B C D
P0 0 0 1 2 0 0 1 2 1 5 2 0
P1 1 0 0 0 1 7 5 0
P2 1 3 5 4 2 3 5 6
P3 0 6 3 2 0 6 5 2
P4 0 0 1 4 0 6 5 6
Answer the following question using banker’s algorithm
a)What is the content of the matrix Need? (2)
b)Is the system in a safe state? (8)
c)If a request from process p1 arrives for (0,4,2,0) can the request be granted immediately? (5)
16.a. Examine the current state of the system presented in the following snapshot
Allocation Max Available
A B C D A B C D A B C D
P0 0 0 1 2 0 0 1 2 1 5 2 0
P1 1 0 0 0 1 7 5 0
P2 1 3 5 4 2 3 5 6
P3 0 6 3 2 0 6 5 2
P4 0 0 1 4 0 6 5 6
Answer the following question using banker’s algorithm
a)What is the content of the matrix Need? (2)
b)Is the system in a safe state? (8)
c)If a request from process p1 arrives for (0,4,2,0) can the request be granted immediately? (5)
16.a. Consider the following snapshot of a system
Allocation Max Available
ABC ABC ABC
P0 010 753 332
P1 200 322
P2 302 902
P3 211 222
P4 002 433
(i) Is the system in a safe state?(6)
(ii) What is the content of matrix Need?(4)
(iii) What are the total no.of resources available for each resource type?(2)
(iv) If a request from process P1 arrives for ( 1,2,1) can the request be granted immediately?(3)
16.a. Consider the following snapshot of a system
Allocation Max Available
ABC ABC ABC
P0 010 753 332
P1 200 322
P2 302 902
P3 211 222
P4 002 433
(i) Is the system in a safe state?(6)
(ii) What is the content of matrix Need?(4)
(iii) What are the total no.of resources available for each resource type?(2)
(iv) If a request from process P1 arrives for ( 1,2,1) can the request be granted immediately?(3)
16.a. Consider the following snapshot of a system
Allocation Max Available
ABC ABC ABC
P0 010 753 332
P1 200 322
P2 302 902
P3 211 222
P4 002 433
(i) Is the system in a safe state?(6)
(ii) What is the content of matrix Need?(4)
(iii) What are the total number of resources available for each resource type?(2)
(iv) If a request from process P1 arrives for ( 1,2,1) can the request be granted immediately?(3)
16.a. Consider the following snapshot of a system
Allocation Max Available
ABC ABC ABC
P0 010 753 332
P1 200 322
P2 302 902
P3 211 222
P4 002 433
(i) Does the current system configuration represent a safe state? (6)
(ii) What is the content of the Need matrix based on the given allocation and maximum matrices? (4)
(iii) What is the total number of available resources for each resource type in the system? (2)
(iv) If process P1 requests additional resources (1, 2, 1), can the request be granted immediately? (3)
16.a. Examine the current state of the system presented in the following snapshot
Allocation Max Available
Additionally, determine the optimum number of cylinders by evaluating the total head movement for each
algorithm. Optimum in this context refers to the configuration that minimizes the total head movement. Provide
calculations and diagrams to illustrate the head movement patterns for each algorithm.
16.b.
Imagine a moving-head disk system with 200 tracks labeled from 0 to 199. The disk head is presently at track
143 after completing a request at track 125. The pending requests are organized in a first-in-first-out (FIFO)
queue: 86, 147, 91, 177, 94, 150, 102, 175, 130. Calculate the total head movement for the following disk
scheduling algorithms:
i) First-Come, First-Served (FCFS)
ii) Shortest Seek Time First (SSTF)
iii) SCAN
iv) C-SCAN
v) LOOK
vi) C-LOOK
For each algorithm, determine the total head movement by considering the absolute differences between
consecutive track positions and, where applicable, the movement direction of the disk head.
16.b. Consider a disk queue with I/O requests on the following cylinders in their arriving order.
54,97,73,128,15,44,110,34,45. The disk head is assumed to be at cylinder 23. Calculate and show with diagram
the head movement for FCFS,SSTF, SCAN, C-SCAN, LOOK, C-LOOK. Find the optimum number of
cylinders.
16.b. Given a disk queue with I/O requests in the order of arrival: 54, 97, 73, 128, 15, 44, 110, 34, 45, and
assuming the disk head is initially at cylinder 23, let's analyze the head movement for various disk scheduling
algorithms, including FCFS, SSTF, SCAN, C-SCAN, LOOK, and C-LOOK. The objective is to minimize the
head movement and optimize the disk access.