[理工] [OS]-政大98

看板Grad-ProbAsk作者 (袋哥)時間14年前 (2010/03/04 20:05), 編輯推噓4(409)
留言13則, 5人參與, 最新討論串1/1
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)

03/04 20:15, , 1F
洪兔題庫班講的麼
03/04 20:15, 1F

03/04 20:19, , 2F
我沒上OS題庫班耶
03/04 20:19, 2F

03/04 20:19, , 3F
不然可以問一下他的答案哪來的呢??
03/04 20:19, 3F

03/04 20:21, , 4F
99 OS解答
03/04 20:21, 4F

03/04 20:22, , 5F
鼎茂購買的那種麼?? 我是比較支持你的答案
03/04 20:22, 5F

03/04 20:24, , 6F
書上對於response time定義不是很明確
03/04 20:24, 6F

03/04 20:24, , 7F
洪兔上課有講你算的答案(另一解)
03/04 20:24, 7F

03/04 20:25, , 8F
洪兔好像是說兩種答案都有人寫吧
03/04 20:25, 8F

03/04 20:25, , 9F
原因是response time定義不同
03/04 20:25, 9F

03/04 20:27, , 10F
另外一種定義是?
03/04 20:27, 10F

03/04 20:28, , 11F
一開始作就有"回應" V.S. 第一次SWAP OUT才有回應
03/04 20:28, 11F

03/04 20:33, , 12F
所以考試寫這兩個應該都對吧
03/04 20:33, 12F

03/05 07:52, , 13F
標題錯誤
03/05 07:52, 13F
※ 編輯: stevenwin 來自: 219.85.29.170 (03/05 18:14) ※ 編輯: stevenwin 來自: 219.85.159.52 (03/06 16:48)
文章代碼(AID): #1BZw7qhG (Grad-ProbAsk)