作者stevenwin (袋哥)
看板Grad-ProbAsk
標題[理工][OS] 98 政大
時間Thu Mar 4 20:05:04 2010
7. Consider a multi-level feedback queue in a single-CPU system.The first
level(queue 0) is given a quantum of 8 ms, the second one a quantum of
16 ms,the third is scheduled FCFS.Assume six jobs (J1~J6) arrive at
time 0 with the following job times(in ms):4,7,12,15,25 and 30
c. Compute the response time
Gantt chart
J1 J2 J3 J4 J5 J6 J3 J4 J5 J6 J5 J6
0 4 11 19 27 35 43 47 54 70 86 87 93
我想問的是respomse time 應該是系統產生第一個回應的時間,即
考慮Gantt chart中每個process第一段的時間間距,是否正確?
以本題為例:
Job 我寫的response time 洪兔的response time
J1 0 4
J2 4 11
J3 11 19
J4 19 27
J5 27 35
J6 35 43
不知道誰寫的才是對的?
感謝~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.84.63.154
※ 編輯: stevenwin 來自: 219.84.63.154 (03/04 20:08)
推 abc73021:洪兔題庫班講的麼 03/04 20:15
→ stevenwin:我沒上OS題庫班耶 03/04 20:19
推 abc73021:不然可以問一下他的答案哪來的呢?? 03/04 20:19
→ stevenwin:99 OS解答 03/04 20:21
→ abc73021:鼎茂購買的那種麼?? 我是比較支持你的答案 03/04 20:22
→ lightergogo:書上對於response time定義不是很明確 03/04 20:24
推 strangehead:洪兔上課有講你算的答案(另一解) 03/04 20:24
→ lightergogo:洪兔好像是說兩種答案都有人寫吧 03/04 20:25
→ strangehead:原因是response time定義不同 03/04 20:25
→ stevenwin:另外一種定義是? 03/04 20:27
→ strangehead:一開始作就有"回應" V.S. 第一次SWAP OUT才有回應 03/04 20:28
→ stevenwin:所以考試寫這兩個應該都對吧 03/04 20:33
推 zeowo:標題錯誤 03/05 07:52
※ 編輯: stevenwin 來自: 219.85.29.170 (03/05 18:14)
※ 編輯: stevenwin 來自: 219.85.159.52 (03/06 16:48)