作者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)
→ NOtWorThy:running state應該在cache裡了吧 怎會page fault? 01/06 12:33
→ gn01642884:(i)應該要去做disk IO 所以會改變成block 01/06 12:34
→ gn01642884:(ii)只要建立TLB的miss項目 不用改變state 01/06 12:41
→ gn01642884:(iii)應該只要把資料搬到cash就好 不用改變 01/06 12:43