简答题
Fill in the Gantt charts, using the given scheduling policy and assuming the following process characteristics in the table below. Also, use the space below to calculate the average turnaround time and average waiting for each algorithm. If there is queuing collision in the ready queue between new processes and extant processes, give priority to the new processes. Consider seven processes A to G with arrival times and CPU burst times as follows:Here “2-ε” indicates that B has arrived just before time unit 2, and similarly for the others. Assume that, when joining the Ready Queue, (new or existing) processes always get appended at the end of the queue.a. Draw a chart that illustrates the execution of these processes using the specified scheduling algorithm. (FCFS, RR(time quantum = 2), SPN (Shortest Process Next, non-preemptive), PSPN (Shortest Process Next, preemptive))b. Calculate the average turnaround time of RR and SPN.
简答题
Consider the following page reference string: 1, 2, 3, 4, 5, 6, 3, 4, 5, 6, 1, 2, 1, 0, 1, 0, 5.With 4 frames, how many page faults would occur with the following page replacement algorithms? Fill in the tables accordingly. (Remember all frames are initially empty, so your first unique pages will all cost one fault each.) RS: reference strings; F0: frame 0, F1: frame 1, etc.a). OPT (5 points)Total page fault?b). LRU (6 points)Total page fault?
套餐购买该问题答案仅对会员开放,欢迎开通会员 ¥ 19.9
0.64/天
1个月(不限次)
¥ 19.9
1000次
(不限时)
¥ 29.9
0.32/天
3个月(不限次)
¥ 59.9
0.16/天
1年(不限次)
立即支付