Previous Semester
Previous Semester
Note: There are FOUR questions, answer ALL of them. Course Outcome (CO), Cognitive Level
and Mark of each question are mentioned at the right margin.
1. Consider the following set of processes, with the length of the CPU burst given [CO3, C4,
in milliseconds: Marks: 05]
2. Consider the following set of processes, with the length of the CPU burst given [CO3, C4,
in milliseconds: Marks: 05]
Page 1
27 August, 2020
3. Consider the following set of processes, with the length of the CPU burst given [CO3, C4,
in milliseconds: Marks: 05]
4. Consider the following set of processes, with the length of the CPU burst given
[CO2, C3,
in milliseconds:
Marks: 05]
Process Burst Time
P1 4
P2 7
P3 12
P4 8
P5 6
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5 at
time zero. Draw a graphical representation of the schedule of tasks that
illustrate the execution of these processes using Shortest Job First (SJF).What
is the waiting time and turnaround time of each process for SJF scheduling
algorithm?
5. Consider the following set of processes, with the length of the CPU burst given [CO2, C3,
in milliseconds: Marks: 05]
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, at
time zero. Draw a graphical representation of the schedule of tasks that illust-
rate the execution of these processes using non-preemptive priority scheduli-
ng algorithm. Also, find the waiting time and turnaround time of each process
for this algorithm.
Page 2
27 August, 2020
6. Consider the following set of processes, with the length of the CPU burst given [CO2, C3,
in milliseconds: Marks: 05]
The processes are assumed to have arrived in the order P1, P2, P3, P4, P5 at
time zero. Also consider a time quantum of 4.Draw a graphical representation
of the schedule of tasks that illustrate the execution of these processes using
Round Robin (RR). What is the waiting time and turnaround time of each
process for RR scheduling algorithm?
10. Tick-tack-toe, also known as noughts and crosses, is a game for two players, [CO2, C3,
X and O, who take turns marking the spaces in a 3X3 grid. The player who Marks:
succeeds in placing three of their marks in a horizontal, vertical, or diagonal 2.5]
row is the winner and the game is over. Suggest a synchronization method
for the above scenario. Explain your reasoning. [Your answer should be
within 5 sentences.]
11. Star Cineplex is the first multiplex cinema theatre in Bangladesh. It also gives [CO2, C3,
its viewers the facility to check available tickets and book shows via online Marks:
ticket booking system. When the program is run, it creates a certain number 2.5]
of threads that attempt to sell all available tickets. However, the program
needs to make sure that while booking the same show by various users, the
Page 3
27 August, 2020
total number of available seats are error free and there is not any data loss.
Suggest a synchronization method for the above scenario. Explain your
reasoning. [Your answer should be within 5 sentences.]
12. Snakes and ladders is an ancient board game with numbered, gridded [CO2, C3,
squares. A number of snakes and ladders are pictured on the board. The Marks:
object of the game is to navigate one’s piece according to die rolls, helped 2.5]
by climbing ladders but hindered by falling down snakes. The program for
this game assures that 2 players can play at a single round. The players play
in turns. However, if a player rolls a 1, he can roll the dice once again.
Suggest a synchronization method for the above scenario. Explain your
reasoning. [Your answer should be within 5 sentences.]
Page 4
27 August, 2020
Page 5
27 August, 2020
Page 6