看板 Grad-ProbAsk 關於我們 聯絡資訊
※ 引述《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
yesa315:囧 我打錯 我也認為是E 一時沒注意到 12/09 15:22
tryPTT:我覺得AE都對耶..因為time out(clock)、硬體中斷(hardware) 12/09 22:51
tryPTT:都會造成state從running→ready.. 有錯請指正 12/09 22:51
tryPTT:剛又想想..也許clock他歸在硬體.... (純屬猜測..) 12/09 22:56
yesa315:假如他歸類在硬體 又何必寫出clock這答案? 這是單選題.. 12/10 12:05
tzuci6649:不論答案是什麼,我都笑了。 單選題不是只有一個答案.. 12/15 22:40