B. Sc. H Computer Science Ope DbzyR6h
B. Sc. H Computer Science Ope DbzyR6h
B. Sc. H Computer Science Ope DbzyR6h
- 6m2
6505 8 [This question paper contains 8 printed pages.]
problem? (2+3)
1. Write your Roll No. on the top immediately on receipt of
I
this question paper.
2. Q. 1is compulsory.
3. Attempt any 4 questions out of the questions from Q.2 to
Q.6.
( ( tarts of a question must be answered together.
(iii) the path name that begins at the root and follows
a path down to the specified frle
(1400) P.T.O.
6505 2 6505 7
(iv) excessive number of page faults that results in' (b) Consider the following page reference string
degradation of the system performance
0314762762714732121
(v) this type of file allocation allows only sequential
access of the file How many page faults would occur with FCFS and
( ( optimal page replacement algorithms assuming three
(vi) a way of interprocess communication frames? All frames are initially empty. (6)
else {
addresses? (2)
wait(NULL); (ii) How what is the breakup of offset and page number
in the logical address? (2)
a--;
(iii) What is the maximum number of entries in the
) ( ( conventional page table and in the inverted page
cout << a << endl;
table? (2)
P.T.O.
6505 6 6505 3
(i) Draw the resource allocation graph. (3) (iii) Long term scheduler and Short term scheduler
(ii) Is the system in a deadlock? If the answer is (e) What is the difference between the following two
yes, then mention the processes in the deadlock cases? (2)
else identify the sequence in which the processes
Case 1: renaming a file
can execute. (2) 1r I
Case 2: copying a file and deleting the original file
(b) What is file-open count? When does its value become
(f) Consider the following segment table:
zero2 (2)
(i) sequential (g) If the total number of frames in main memory is 60 and
there are 4 processes in the system with the demand as
(ii) direct (4)
P.T.O.
6s05 4 650 s 5
(i) l) 3 5 6 3
equal allocation
t ( J) 6 2 4
(ii) proportional allocation (2)
(i) Draw Gantt chart for Shortest Job First algorithm
(h) What is busy waiting in semaphores? How can it be
and calculate turnaround time for every process.
removed? (3) (ii) Draw Gantt chart for Priority based (preemptive)
algorithm and calculate waiting time for every
(i) What is the main advantage of the layered approach to, process. (6)
system design? What are the disadvantages of using
(b) Suppose there is a system with 128KB of memory with
the layered approach? ( 1+2)
no memory initially allocated. Given the following
sequence of requests by the processes, show the memory
0) Why command interpreter is usually placed separate
layout at intermediate stages for best-fit allocation
from the kernel? (2)
algorithm. (4)
(k) What are real time embedded systems? (2) Process Naturc of Amount of memory
( ( Numtrer Request requested (in KB)
(l) How can timer be used to protect CPU? (2) PO Allocation 20
P1 Allocation l5
(m) Compare indexed and linked allocation schemes. (3). P2 Allocation 10
P3 Allocation 25
2 (a) Consider the following set of processes, with the length PO Deallocation
of CPU burst time given in milliseconds : P2 Deallocation
P4 Allocation 8
P5 Allocation 10
P.T.O.