Os Lab Viva Questions
Os Lab Viva Questions
VIVA QUESTIONS
to one of them.
9.What is Throughput?
CPU. One unit of work is the number of processes
The amount of work is being done by the
called throughput.
that are completed per unit time,
Page 74 of 79
Department of Computer Science, STIST
Oering ysem tah Munnd
When a process
deadlock avoidance?
requests an available
leaves the system in a safe state resource, system must decide if immediate
allocation
System in safe state if there exists a safe
is
sequence of all
Sequene is safe if for each Pi, the resources that Pi can stillprocesses.
currently available resources + resources held by all the request can be satisfied by
Pj, withj If Pi resource needs are not
immediately available, then Pi can wait until all Pj have finished. When
obtain needed resources, execute, return Pj is finished, Pi can
allocated resources, and terminate. When Pi
terminates, Pit1 can obtain its needed resources, and so on.
Deadlock Avoidance b ensure that a
system will never enter an unsafe state.
25. Recovery from Deadlock?
Process Termination:
->Abort all deadlocked processes.
->Abort one process at a time until the deadlock
->In which order should we choose to abort?
cycle iseliminated.
o Priority of the process.
o How long process has computed, and how much
longer to completion.
o Resources the process has used.
o Resources process needs to complete.
How many processes will need to be terminated?
Is process interactive or batch?
Resource Preemption:
->Selecting a victim - minimize cost.
ack - return to some safe state, restart pro for thatstate.
->Starvation - same process may always be picked as victim,include number of rollback in
cost factor.
76 oi 79
Page
Depaitment of Computer Science, S TIST
Operating System Lab Manual
exclusion.
Mutex is used exclusively for mutual by binary.
can be used
synchronization
Both mutual exclusion and mutex.
task which takes
Mutex is given only through the DELETE_SAFE are
provided by
takes as
the task which when holding
the mutex.
OOptions for making is not possible
Mutex, which m e a n s the task deletion
the process
29. What is virtual memory? is used to execute
management technique which
memory is memory
Virtual actual memory size.
than
which has more
fault rate?
algorithm will have less page
32. Which page replacement
Optimal Page Replacement
38.What is paging?
Paging is a
memory-nmanagement scheme that permits the
to be physical address space ot
process a
non-Contiguous. Paging avoids the considerable problem of fitting memory chunks
varying si7es onto the backing store.
39.What is frame?
Breaking main memory into fixed number of
blocks called frames.
40. What is page?
Breaking logical memory into blocks of
size is page.
same
Page 78 of 79
Department of Computer Science, STIST
Manuad
Operating ystem Lab
segment
in memory
for a
find a place but we
h a r d e r to virtual memory
with paging? it is of
Segmentation so benefits
this, it is
get the
lengths, avoid
46. Explain different we o r d e r to
can be of virtual memory, In Each
Segments memory. system.
of physical
segmented memory
virtual
page.
With allocation
two-level advantages of
a o f the
Than to do
dynamic
storage
and paging
into a
This give
some
of the
still
have segmentation
that segment. (logical
division
table for
combine
possible
to of segments
t o page
descriptor
points of the
advantages
some
segment with
placement)
(easy system
paging operating
actions
taken by the
programn). Describe the
occur? takes
faults memory
do page into main
brought invalid. If
circumstances
completion
of I/O,
frame. Upon
is restarted controls and
hardware. It
computer various
System? manages
the for the
Operating that programs
What is an program application
System is
48. a various
the
An Operating hardware among
the use of the
coordinates
users.
the different
states ofcar eprocess?
ated
What a r e
49. is being
New: The
process executed
a r e being
Instructions occur
event to
Running: for s o m e
process
is waiting
The to a process
Waiting: be assigned
is waiting to
The process execution
Ready: finished
has
The process
Terminated:
process? process.
is a known as a
$0. What execution is
in
A program
******************* **
**************************
**
*********
* * * * * * * * * *
k
Pa
me a e s S o e . SIIST