Professional Documents
Culture Documents
Deadline/hand-in 20/12/2023
Scenario
1. The class leader makes a list of registered students for an account, select a topic account and
register by class list.
2. Maximum of 5 students doing the same topic, each topic must fulfill the requirements of 4 types
of questions.
3. The project uses Unicode font: Times New Roman, size 13 font to write the report
4. Submit product in which create directory with folder named student name, containing text map
and program file.
1. Deadlock [2 Points]
Available
RA RB RC RD
9 9 9 9
NIIE-ĐGHP-01 – ASSIGNMENT BRIEF
BIỂU MẪU ĐỀ ĐÁNH GIÁ GIỮA KỲ/CUỐI KỲ VỚI MÔN
KHÔNG TỔ CHỨC THI
ASSIGNMENT BRIEF
Current Allocation
RA RB RC RD
P0 1 1 1 1
P1 0 1 2 0
P2 3 1 0 2
P3 1 2 1 0
P4 1 1 3 0
Needs
RA RB RC RD
P0
P1
P2
P3
P4
Consider the following set of processes, with the length of the CPU burst and arrival time
given in milliseconds.
Process Burst Time Arrival time
P1 7 0
P2 8 3
P3 7 6
3.1. Draw four Gantt charts that illustrate the execution of these processes using the following
scheduling algorithms: FCFS, SJF, SRTN, Round Robin with q =4.
3.2. What is the waiting time and completion time of each process for each of the scheduling
algorithms in part a?
3.3. Which of the algorithms on part a results in the minimum average waiting time and
completion time (over all processes)?
Disk requests come into the disk driver for cylinders 20, 25, 22, 4, 40, 46, 88, and 38 in that order.
Assume that the disk has 100 cylinders.
A seek takes 6msec per cylinder moved. Compute the average seek time for the request sequence
given above for
4.1. First-come, First-served
4.2. Shortest Seek Time First (SSTF)
4.3. SCAN
In all the cases, the arm is initially at cylinder 52.
5. Application [2 points]