Re: [理工] [OS]-Process
※ 引述《yesa315 (XD)》之銘言:
: 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 "waiting" state . What is (X,Y)?
: (A)(hardware interrupt,software interrupt)
: (B)(hardware interrupt,clock interrupt)
: (C)(software interrupt,clock interrupt)
: (D)(clock interrupt,hardware interrupt)
: (E)(clock interrupt,software interrupt)
: 答案寫A 但我覺得是C
: hardware interrupt可以是I/O complete之類
: 感覺clock interrupt比較正確
: 有人這麼認為嗎? 謝謝
我覺得答案是 (E)
X:
當timer interrup(clock interrupt)發生時,"running" state → "ready" state
Y:
當I/O request、event wait或是SVC(software interrupt),
"running" state → "waiting" state
有錯誤請多指教,謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.134.129.184
→
12/09 15:22, , 1F
12/09 15:22, 1F
推
12/09 22:51, , 2F
12/09 22:51, 2F
→
12/09 22:51, , 3F
12/09 22:51, 3F
推
12/09 22:56, , 4F
12/09 22:56, 4F
推
12/10 12:05, , 5F
12/10 12:05, 5F
推
12/15 22:40, , 6F
12/15 22:40, 6F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 3 篇):