[理工] 作業系統問題

看板Grad-ProbAsk作者 (絕代風華賈奈特)時間8年前 (2017/05/17 12:50), 編輯推噓2(202)
留言4則, 2人參與, 最新討論串2/2 (看更多)
大家好,我在研讀CPU schedule的時候看到以下問題,想請問大家會如何解? 1.Multiple jobs can be run in parallel and finish faster than if they had run sequentially.Suppose that two jobs, each needing 10 minutes of CPU time, start simultaneously.How long will the last one take to complete if they run sequentially?How long if they run in parallel. Assume 50% I/O wait. thanks! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.115.219.23 ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1494996606.A.2CD.html

05/17 18:56, , 1F
他的意思是考慮兩種情境: 1)真實平行計算, 兩個job是同時
05/17 18:56, 1F

05/17 18:57, , 2F
開始 2)切換兩個job交叉獲得cpu time執行
05/17 18:57, 2F

05/17 18:59, , 3F
05/17 18:59, 3F

05/18 14:50, , 4F
感謝kobe大
05/18 14:50, 4F
文章代碼(AID): #1P6zP-BD (Grad-ProbAsk)
文章代碼(AID): #1P6zP-BD (Grad-ProbAsk)