End Sem
End Sem
Section A
1
4. Draw Hasse diagram of ({1, 2, 3,4, 5, 6, 9},/). Find greatest element and
maximal elements.
5. Using Warshall's algorithm fnd transitive closure of R ={(1,1).(2.1).(3 2). (3 1).
(4,1),(4,4),(1,4)}.
6. Show that RA (PVQ) is a valid conclusion from premises PvQ. QR.
P M and ~ M.
-Section G
Z 5
36
2'5
Department of CSE
(2K21 Batch)
Time: 3h
Maximum Marks: 50
ADD:
1. Time duration required for scheduling dispatcher to stop one process and start another is known as
a) process latency c) execution latency
b) dispatch latency d) interrupt latency
3. Asituation where several processes access and manipulate the same data concurrently and the outcome of
the execution depends on the particular order in which access takes place is called
a) data consistency c) aging
b) race condition d) starvation
4. When the valid - invalid bit is set to valid, it means that the associated page
a) is in the TLB c) is in the process's logical address space
b) has data in it d) is the system's physical address space
6. Swapping be done when a process has pending /0, or has to execute /0 operations only into
operating system buffers.
a) must never c) can
b) maybe d) must
7. A deadlock avoidance algorithm dynamically examines the to ensure that a circular wait
condition can never exist.
a) operating system c) system storage state
b) resources d) resource allocation state
8. In a timeshare operating system, when the time slot assigned to a process is completed, the process
switches from the current state to?
a) Suspended state c) Ready state
b) Terminated state d) Blocked state
9. Whenever a process needs (/0 to or from a disk it issues a
a) system call to the operating system c) system call to the CPU
b) a special procedure d) all of the mentioned
10. The address loaded into the memory address register of the memory is referred to as
a) Physical address c) Neither physical nor logical
b) Logical address d) None of the mentioned
SECTION- B
Each question carries 4marks
11. Give the structure of Process Control Block and discuss the various informations of PCB which is associated
with a specific process.
12. Consider the following snapshot ofa system
Allocation Max Available
ABCD ABCD ABCD
Po 0012 0012 1520
P: 1000 1750 2356
P: 1354 2356
P: 0632 0652
Pa 0014 0656
16. Suppose that a disk drive has 5000 cylinders, numbered 0 to 4999. The drive is currently serving a
request at cylinder 143 &previous request was at clinder 125. The queue of pending requests, in FIFO order
is: 86, 1470, 913, 1774, 948, 1509, 1022, 1750, 130
Starting from the current head position, what is the total distance that the disk arm moves to satisfy all the
pending requests for each of the following disk scheduling algorithms?
a) FCFS b) SSTF c) SCAN d) LOOK e) C-SCAN
17.
a) Ashared variable x, initialized to zero, is operated by four processes A, B, C, D. Process A& Bincrement x
by one while C&D decrement x by two. Each process performs wait and signal operation. If semaphore
'S' is initialized to two, find what is the minimum possible value of x after all
processes complete
execution. Explain your answer.
b) Explain the term race condition' associated with cooperative processes. Discuss Peterson's
algorithm to
solve the critical section problems.
DEPARTMENT OF COMPUTERSCIENCE & ENGINEERING
UNIVERSITY INSTITUTE OF ENGINEERINGAND TECHNOLOGY, CSJM UNIVERSITY, KANPUR