Assignment 7
Assignment 7
Operating Systems
1. [3 marks] (CPU Scheduling) Given the following service times for 5 processes, draw a
Gantt chart to show process scheduling using each of the following algorithms:
a. First-Come, First-Served
2. [6 marks] (Paged Memory Management) Given the following Page-Map Table (PMT),
assume the page size and frame size are 1024:
Page 0 1 2 3 4
Frame 4 5 8 1 3
a. What is the physical address associated with the logical address of <4, 130>?
b. What is the logical address associated with the physical address of 5200?
3. [6 marks] (Paged Memory Management) Given the following Page-Map Table (PMT),
assume the page size is 1024 and the frame size is 2048:
Page 0 1 2 3 4 5
Frame 10 7 4 11 5 3
a. What is the physical address associated with the logical address of 5346?
b. What is the logical address associated with the physical address of 10255?
4. [6 marks] (CPU Scheduling) Given the following service times for 6 processes, draw a
Gantt chart to show process scheduling using each of the following algorithms:
First-Come, First-Served
Shortest Job Next
Round Robin with the time slice 40
What is the Average Turnaround Time for each algorithm?
Process P1 P2 P3 P4 P5 P6
Service time 125 80 35 140 210 55