[理工][OS] interrupt

看板Grad-ProbAsk作者 (Eric)時間14年前 (2012/01/03 17:52), 編輯推噓3(304)
留言7則, 5人參與, 最新討論串1/1
93交大資科 X could lead a process to leave from the "running" state to the "ready" state and Y could lead a process to leave from the "running" state to the "waitting" state. What is (X, Y)? A: hardware interrupt, software interrupt B: hardware , clock interrupt C: software , clock D: clock , hardware E: clock , software 書是買洪逸四版 解答給A 拿題目去google 看到兩篇這版的文 答案眾說紛紜= = 我的理解 running -> ready 超過time quota 被打掉 running -> waiting 等待I/O 或signal 請高手進一步說明orz ---- 同年另一題 Data striping provides high data-transfer rates and improves reliability as well 解答說是對的 但沒說到有加redundant info 不是應該會更慘嗎 畢竟壞一個disk就全部都壞了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 180.177.41.177 ※ 編輯: onlyeric23 來自: 180.177.41.177 (01/03 21:02) ※ 編輯: onlyeric23 來自: 180.177.41.177 (01/03 21:02)

01/03 22:10, , 1F
我也是覺得clock;hardware 這題我後來決定相信自己XD
01/03 22:10, 1F

01/03 23:08, , 2F
time-out中斷是hardware中斷的一種 (我忘記在哪看到的)
01/03 23:08, 2F

01/03 23:12, , 3F
timer大多是用hw做的阿,DMA RR都有
01/03 23:12, 3F

01/04 00:17, , 4F
D
01/04 00:17, 4F

01/04 00:21, , 5F
我是選D拉 Waiting跑Ready通常是Timerout
01/04 00:21, 5F

01/04 00:22, , 6F
running到Waiting是I/O Rueqest
01/04 00:22, 6F

01/04 00:23, , 7F
software不會到Waiting
01/04 00:23, 7F
文章代碼(AID): #1F0i_71V (Grad-ProbAsk)