Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

T.Y.B.C.A.

(Sem V)

SUBJECT : OS - II (504)
Assignment 1

1) Explain segmentation with demand paging.


2) What is deadlock prevention? Explain techniques of deadlock prevention.
3) What is semaphore? Explain how it solves the critical section problem.

Note :
* Assignment needs to be submitted in Assignment book only
* Submission dates will be declared in OS - II class
*Assignment submission is compulsory for each student.

Ass.Pro.Eeva Kapopara(BCA)
T.Y.B.C.A. (Sem V)

SUBJECT : OS - II (504)
Assignment 2

1) Consider the following page-reference string :


a, b, a, c, a, b, d, b, a, c, d.

How many page faults would occur for the following replacement

algorithms, assuming two frames ?

- LRU replacement.

- FIFO replacement.

Which is better? Why it is better? Explain

2) Consider the following table:

Process Arrival Time CPU Burst


P1 0 8
P2 1 4
P3 2 1
What is the average turnaround time and average waiting time with FCFS and SJN?

Note :
* Assignment needs to be submitted in Assignment book only
* Submission dates will be declared in OS - II class
*Assignment submission is compulsory for each student.

Ass.Pro.Eeva Kapopara(BCA)

You might also like