阿摩線上測驗
登入
首頁
>
台大◆資工◆計算機結構與作業系統(B)
>
110年 - 110 國立臺灣大學_碩士班招生考試_部分系所:計算機結構與作業系統(B)#102077
> 申論題
題組內容
5. (10 pts) Please read the code segment and answer the five sub-questions.
(a) (2 pts) Please answer the line number where the process will be suspended when it first starts?
相關申論題
(b) (2 pts) When the process is suspended and a SIGUSR2 signal is sent to the process, how does the process react? (A): terminated, (B): resume, (C): no action, or (D) Add SIGUSR2 to the signal mask.
#428888
(c) (2 pts) What's the signal mask when SIGUSR2 is caught by the process: (A) SIGUSR1and SIGUSR2, (B) SIGUSR1, (C) SIGINT and SIGUSR2, and (D) Empty.
#428889
(d) (2 pts) When SIGINT is sent and caught; from which line will the process be resumed?
#428890
(e)(2 pts) When sigaction() on line 17, 19, and 21 are replaced by signal(), what's the signal mask after resumed by catching SIGINT? (A) SIGUSR1 and SIGUSR2, (B) SIGUSR1, (C) SIGINT and SIGUSR2, and (D) Empty.
#428891
(a) (5 pts) What is the size (bits) of the tag array?
#428892
(b) (5 pts) Could increasing the cache associativity reduce cache misses running the above codes?
#428893
(c) (5 pts) How many coherence misses could occur in the worst case(c1)? How many of them are false-sharing misses(c2)?
#428894
(d) (5 pts) if the cache line size becomes 32 bytes (the cache size is still 4KiB), how many coherence misses could occur in the worst case (d1)? How many of them are false-sharing misses(d2)?
#428895
(a) (10 pts) Which pipeline stage determines the clock cycle time?
#428896
(b)( 5 pts) When the first instruction (tw) is in the MeM stage, which instructions are executing in the ID (b1) and EX (b2) stage? (請填寫instructionnumber不要instruction)
#428897
相關試卷
110年 - 110 國立臺灣大學_碩士班招生考試_部分系所:計算機結構與作業系統(B)#102077
110年 · #102077
109年 - 109 國立臺灣大學_碩士班招生考試_資訊工程學研究所:計算機結構與作業系統(B)#106045
109年 · #106045