Re: [理工] [OS]-Process

看板Grad-ProbAsk作者 (cansister)時間14年前 (2009/12/09 00:20), 編輯推噓4(402)
留言6則, 3人參與, 最新討論串2/3 (看更多)
※ 引述《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
囧 我打錯 我也認為是E 一時沒注意到
12/09 15:22, 1F

12/09 22:51, , 2F
我覺得AE都對耶..因為time out(clock)、硬體中斷(hardware)
12/09 22:51, 2F

12/09 22:51, , 3F
都會造成state從running→ready.. 有錯請指正
12/09 22:51, 3F

12/09 22:56, , 4F
剛又想想..也許clock他歸在硬體.... (純屬猜測..)
12/09 22:56, 4F

12/10 12:05, , 5F
假如他歸類在硬體 又何必寫出clock這答案? 這是單選題..
12/10 12:05, 5F

12/15 22:40, , 6F
不論答案是什麼,我都笑了。 單選題不是只有一個答案..
12/15 22:40, 6F
文章代碼(AID): #1B7dpDEn (Grad-ProbAsk)
文章代碼(AID): #1B7dpDEn (Grad-ProbAsk)