Cs Pyqs
Cs Pyqs
]
Your Roll No.......****
Semester : IV
2. Section A is Compulsory.
Section A
Section B
P1 3
P2 2
P3 7
P4 4
PS 5
Bharat
Sanjeev
Sanjay
Dhanraj
Inderjit
Sankalp
(i)) 3085
(ii) 420S
(ii) 65000
4003 7
are the
i) Explain the Single threaded and multithreaded process. What
6+3
b)
advantages of Threads in Operating Systems?
ii) What are the major entries to evaluate the performance of CPU
scheduling algorithms?
15
Q7 Differentiate between following:
i) Paging and segmentation
) Dispatcher and scheduler
ii) Preemptive and Non-preemptive scheduling
iv) Multiprogramming and multitasking.
v Internal fragmentation and External fragmentation
7310 2 3
7310
Section A sDefine Deadlock. Mention any two necessary
conditions required for a
deadlock to occur. (3)
1. (a) A system uses a logical address composed of 8
and bounded waiting are
bits for the page number and 12 bits for the offset. ) Discuss why progress Critical
essential requirements in
solving the
Calculate the total size of the logical address (3)
Section Problem.
space. (3
Control Block
Explain the concept of a Process
(b) Write the steps involved in handling a page fault ()
three essential clements it
(PCB) and name any
in an operating system (3) (3)
comprises.
(c) List three opcrations that can be performed on a Section B
file. 3)
non-preemptive Shortest Job
the
2. (a) The system uses following
(d) How can we handle the problem of starvation in algorithm. Consider the
First scheduling (7)
Priority Scheduling algorithm? (3)
processes:
P1
() Write three advantages of multi-threaded systems.
P2 2
(3)
P3
P4
(g) What is a System Call? Name any two system
calls used in file handling (3)
P.T.O.
7310
4
5
)) Draw the Gantt 7310
chart showing the in terms of
how
order. execution (ii) Rank the
algorithms
justify
memory. Briefly
efficiently they use
(ii) Calculate waiting time your ranking.
and turnaround time
to
for each process. translation of logical
addresses
P.T.O.
7310 6
5. (a) Adisk scheduling system has 7310
the
of pending requests (in the order following queue
they arrive)::[98,
183, 37, 122, 14, 124, 65, 67]. Base Length
The disk head star. | Segment
120
600
at position 53. Answer the
following: (10) 1 2300 14
2 60 105
() Calculate the total head
movement using the
First-Come, First-Served (FCFS) algorithm. (b) Describe the states
ofa process using a
suitable
(5)
diagram.
(ii) Calculate the total head
movement using the with 3 processes (PI, P2,
P3)
Shortest Seek Time First (SSTF) algorithm. (c) Consider a system R2 with
(RI with I instance,
resource types
and 2
allocation and requests
(ii) Which algorithm results in less 2 instances). The current
head (6)
are as follows:
movement, and why?
requests R2,
(b) Explain the concept of caching in an operating P1 holds R1 and
system. Discuss the concept of cache coherency instance of R2 and
P2 holds one
and its importance in multiprocessor systems.
requests Rl,
(5)
instance of R2.
another
P3 holds
6. (a) Explain the purpose of the base register.
Using
the segment table provided below, calculate the Allocation Graph and determine
Draw the Resource
physical address for the logical address (1, 10). or not. Justify your
whether a deadlock exists
answer.
(4)
P.T.O.
7310 8