[理工] OS 98資聯(software interrupt)

看板Grad-ProbAsk作者 (狗狗旺)時間5年前 (2020/10/28 10:40), 5年前編輯推噓3(308)
留言11則, 4人參與, 5年前最新討論串1/1
https://i.imgur.com/cGM0CFP.jpg
想問大家第八題E選項錯在哪裡 這題答案是B 不太清楚software interrupt的處理流程 謝謝大家(>人<;) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.115.108.94 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Grad-ProbAsk/M.1603852814.A.AFE.html ※ 編輯: dogdogh (140.115.108.94 臺灣), 10/28/2020 10:47:57

10/28 12:28, 5年前 , 1F
這應該是在說 exception 吧?這東西是 cpu 執行自己就
10/28 12:28, 1F

10/28 12:28, 5年前 , 2F
發現的,比方說 divide by zero.
10/28 12:28, 2F

10/28 12:54, 5年前 , 3F
據我所知的software interrupt 是 user process 需要os
10/28 12:54, 3F

10/28 12:54, 5年前 , 4F
提供服務所發出的中斷
10/28 12:54, 4F

10/28 12:54, 5年前 , 5F
樓上指的不是internal interrupt嗎?
10/28 12:54, 5F

10/28 17:24, 5年前 , 6F
(e)選項我也覺得疑惑
10/28 17:24, 6F

10/28 17:24, 5年前 , 7F
不過看恐龍書上沒有特別提到經過interrupt controller
10/28 17:24, 7F

10/28 17:24, 5年前 , 8F

10/29 07:46, 5年前 , 9F
Divide by zero 是 hardware interrupt
10/29 07:46, 9F

10/29 07:49, 5年前 , 10F
Interrupt controller 指的是硬體發出 interrupt 時會透
10/29 07:49, 10F

10/29 07:49, 5年前 , 11F
過 interrupt controller 告訴 cpu 有 interrupt
10/29 07:49, 11F
文章代碼(AID): #1VcDeEh- (Grad-ProbAsk)