作者sa074463 (垒包)
看板Grad-ProbAsk
标题[理工] [OS] thread
时间Wed Jan 6 01:24:16 2010
恐龙习题上面有一题
A simplified view of thread states includes only Ready, Running, and Blocked
assume a thread is in Running state, answer the following questions:
(我有把题目简化^^")
(i)Will the thread change state if it incurs a page fault? If so, to what state?
(ii)Will the thread change state if it incurs a TLB miss that is resolved in the
page table? If so, to what state?
(iii)Will the thread change state if an address reference is resolved in page
table? If so, to what state?
我不知道这三个差异在哪...囧
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.62.111.246
※ 编辑: sa074463 来自: 61.62.111.246 (01/06 01:24)
1F:→ NOtWorThy:running state应该在cache里了吧 怎会page fault? 01/06 12:33
2F:→ gn01642884:(i)应该要去做disk IO 所以会改变成block 01/06 12:34
3F:→ gn01642884:(ii)只要建立TLB的miss项目 不用改变state 01/06 12:41
4F:→ gn01642884:(iii)应该只要把资料搬到cash就好 不用改变 01/06 12:43