作者cansister (cansister)
看板Grad-ProbAsk
标题Re: [理工] [OS]-Process
时间Wed Dec 9 00:20:27 2009
※ 引述《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
1F:→ yesa315:囧 我打错 我也认为是E 一时没注意到 12/09 15:22
2F:推 tryPTT:我觉得AE都对耶..因为time out(clock)、硬体中断(hardware) 12/09 22:51
3F:→ tryPTT:都会造成state从running→ready.. 有错请指正 12/09 22:51
4F:推 tryPTT:刚又想想..也许clock他归在硬体.... (纯属猜测..) 12/09 22:56
5F:推 yesa315:假如他归类在硬体 又何必写出clock这答案? 这是单选题.. 12/10 12:05
6F:推 tzuci6649:不论答案是什麽,我都笑了。 单选题不是只有一个答案.. 12/15 22:40