Professional Documents
Culture Documents
DEPT: OF CSE
Page 1
SVNCE
DEPT: OF CSE
(se)
B.
(2se)
C. s
D. e
10. Consider the following performance table for FCFS scheduling. For this , the throughput will be;
A. 0.184
B. 0.192
C. 0.269
D. 0.238
11. The address sequence generated by tracing a particular program executing in a pure demand
paging system with 100 records per page, with 1 free main memory frame is recorded as follows:
0100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320, 0370. What is the
number of page faults?
A. 13
B. 8
C. 7
D. 10
12. Consider a set of 5 processes whose arrival time, CPU time needed and the priority are given
below:
Process Arrival
CPU time Priority
number time(ms) needed(ms)
P1
0
10
5
P2
0
5
2
P3
2
3
1
SVNCE:
Page 2
SVNCE
DEPT: OF CSE
P4
5
20
4
P5
10
2
3
If the CPU scheduling policy is FCFS, the average waiting time will be:
A. 12.8 ms
B. 8 ms
C. 16 ms
D. 20 ms
13. Consider a set of 5 processes whose arrival time, CPU time needed and the priority are given
below:
Process Arrival
CPU time Priority
number time(ms) needed(ms)
P1
0
10
5
P2
0
5
2
P3
2
3
1
P4
5
20
4
P5
10
2
3
If the CPU scheduling policy is SJF, the average waiting time (without preemption) will be:
A. 12.8 ms
B. 6.8 ms
C. 17 ms
D. 7.2 ms
14. Consider a set of 5 processes whose arrival time, CPU time needed and the priority are given
below
Process Arrival
CPU time Priority
number time(ms) needed(ms)
P1
0
10
5
P2
0
5
2
P3
2
3
1
P4
5
20
4
P5
10
2
3
If the CPU scheduling policy is SJF, the average waiting time (with preemption) will be
A. 8 ms
B. 14 ms
C. 5.6 ms
D. 7 ms
15. Consider a set of 5 processes whose arrival time, CPU time needed and the priority are given
below
Process Arrival
CPU time Priority
number time(ms) needed(ms)
P1
0
10
5
P2
0
5
2
P3
2
3
1
P4
5
20
4
P5
10
2
3
SVNCE:
Page 3
SVNCE
DEPT: OF CSE
If the CPU scheduling policy is priority scheduling without preemption, the average waiting time
will be:
A. 12.8 ms
B. 11.8 ms
C. 10.8 ms
D. 11 .0 ms
Page 4
SVNCE
DEPT: OF CSE
20. On a disk with 1000 cylinders, number 0 to 999, compute the number of tracks the disk arms
must move to satisfy the entire request in the disk queue. Assume the last request serviced was at
track 345 and the head is moving towards 0. The queue in FIFO order contain request for the
following tracks 123, 874, 692, 475, 105, 376. Perform the computation for the FIFO scheduling
algorithms:
A. 1013
B. 1713
C. 2013
D. none
21. On a disk with 1000 cylinders, number 0 to 999, compute the number of tracks the disk arms
must move to satisfy the entire request in the disk queue. Assume the last request serviced was at
track 345 and the head is moving towards 0. The queue in FIFO order contain request for the
following tracks 123, 874, 692, 475, 105, 376. Perform the computation for the SSTF scheduling
algorithms:
A. 1198
B. 1298
C. 1398
D. none
22. On a disk with 1000 cylinders, number 0 to 999, compute the number of tracks the disk arms
must move to satisfy the entire request in the disk queue. Assume the last request serviced was at
track 345 and the head is moving towards 0. The queue in FIFO order contain request for the
following tracks 123, 874, 692, 475, 105, 376. Perform the computation for the SCAN
scheduling algorithms:
A. 1219
B. 1119
C. 1019
D. none
23. On a disk with 1000 cylinders, number 0 to 999, compute the number of tracks the disk arms
must move to satisfy the entire request in the disk queue. Assume the last request serviced was at
track 345 and the head is moving towards 0. The queue in FIFO order contain request for the
following tracks 123, 874, 692, 475, 105, 376. Perform the computation for the C-SCAN
scheduling algorithms:
A. 1967
B. 1567
C. 1267
D. none
24. On a disk with 1000 cylinders, number 0 to 999, compute the number of tracks the disk arms
must move to satisfy the entire request in the disk queue. Assume the last request serviced was at
track 345 and the head is moving towards 0. The queue in FIFO order contain request for the
following tracks 123, 874, 692, 475, 105, 376. Perform the computation for the LOOK
scheduling algorithms:
A. 809
B. 1009
C. 909
SVNCE:
Page 5
SVNCE
25.
26.
27.
28.
29.
30.
DEPT: OF CSE
D. none
On a disk with 1000 cylinders, number 0 to 999, compute the number of tracks the disk arms
must move to satisfy the entire request in the disk queue. Assume the last request serviced was at
track 345 and the head is moving towards 0. The queue in FIFO order contain request for the
following tracks 123, 874, 692, 475, 105, 376. Perform the computation for the C-LOOK
scheduling algorithms:
A. 1107
B. 1507
C. 1207
D. none
A semaphore count of negative n means(S = -n) that the queue contains. waiting
processes:
A. n+1
B. n
C. n-1
D. 0
Consider a logical address space of 8 pages of 1024 words mapped to a memory of 32 frames.
How many bits are there in the logical address space:
A. 13
B. 15
C. 14
D. 12
Consider a logical address space of 8 pages of 1024 words mapped to a memory of 32 frames.
How many bits are there in the physical address space:
A. 16
B. 14
C. 15
D. 12
A single processor system has 3 resource type X,Y and Z, which is shared by 3 processes. There
are 5 units of each resource type. Which of the following process will finish last?
Alloc
Request
Avail
X Y Z
X Y Z
X Y Z
P0
1 2 1
1 0 3
0 1 2
P1
2 0 1
0 1 2
P2
2 2 1
1 2 0
A. P0
B. P1
C. P2
D. System is in deadlocked state
At a particular time of computation , the value of counting semaphore is 7. Then 20 P operations
and X V operations are completed on this semaphore. If the final value of semaphore is 5, value
of X will be:
A. 15
B. 22
C. 13
SVNCE:
Page 6
SVNCE
DEPT: OF CSE
D. 18
ANSWERS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SVNCE:
B
B
B
B
C
B
B
A
B
B
B
A
B
C
C
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
B
C
A
B
C
B
A
A
B
B
A
A
C
C
D
Page 7