作者TokiyoHot (東京熱死胖子)
看板Grad-ProbAsk
標題[作業系統]基本概念
時間Fri Nov 23 19:31:11 2012
1.
Which of the following statement is correct?
(A)For the interrupt which is masked, the interrupt still notifies the
CPU but the CPU does not process the request.
(B)Software interrupt also goes through the interrupt controller tonotify
the CPU.
(C)Events are almost always signaled by the occurrence of an interrupt
or a trap.
2.
Which events are not occurred when an application makes a system call?
(A)the CPU mode is changed from user mode to system mode
(B)this application is temporary suspened
(C)the service routine in OS is invoked
(D)the parameters may be passed by registers or a memory block with
the start address in a register
3. 是非題
(1).After a user program starts an I/O operation, it has to wait for
the completion of the I/O operation to resume its program execution.
(2).Interrupt vector tells us the port addresses of the I/O controllers.
(3).page tables can be used to protect system resources.
作業系統好難> < 拜託各位了...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.237.64
※ 編輯: TokiyoHot 來自: 140.123.237.64 (11/23 19:41)
※ 編輯: TokiyoHot 來自: 140.123.237.64 (11/23 21:56)
※ 編輯: TokiyoHot 來自: 140.123.237.64 (11/23 22:01)
→ cksh8008:我選C.D.X.X.O 不過第一二題沒把握 11/23 22:37
推 mingcloud:第二題應該是D沒錯 想問一下是非第一題為什麼是X 11/23 23:25
推 ddczx:因為若是No-wait I/O 則無需等待,另外請問2.D錯在哪 11/23 23:29
→ mingcloud:單純只是覺得ABC是對的... 11/23 23:38
→ TokiyoHot:他第二題答案給的是B,所以我想問suspend跟wait有差嗎? 11/23 23:44
→ TokiyoHot:因為恐龍版的process的STD好像沒有suspend, 11/23 23:46
→ TokiyoHot:可是有些版本的STD好像有把suspend跟wait分開0.0 11/23 23:47
→ TokiyoHot:以我的理解從suspend是已經被swap out,而wait是因為 11/23 23:49
→ TokiyoHot:process要等待I/O完成或一些event的發生才會從Running 11/23 23:51
→ TokiyoHot:變wait(Block),可是我不知道這樣對不對 11/23 23:51
→ TokiyoHot:請問一下為什麼page table可以用來保護系統資源@@? 11/23 23:53
推 shcyril:add a protection bit 11/24 00:03
推 ddczx:不同行程有各自P.T,避免互相干擾,存取別的行程的資訊 11/24 00:03
→ TokiyoHot:感謝,原來如此!! 11/24 00:12
推 cksh8008:對喔 應該是B 先進入Wait suspend是等待狀況下如果系統 11/24 11:48
→ cksh8008:下才進入 11/24 11:48
→ cksh8008:空間不足 11/24 11:49
推 kiwidoit:恩 11/24 14:29
→ kiwidoit:有人知道是非題1,2為什麼是錯的嗎@@? 11/24 14:31
→ martin77:是非2錯在應該是ISR位址才對?是非1我也想知道錯在那.. 11/26 01:27