阿摩線上測驗
登入
首頁
>
系統程式(包含作業系統)
> 101年 - 101年國家情報人員三等系統程式(包括作業系統)#44809
101年 - 101年國家情報人員三等系統程式(包括作業系統)#44809
科目:
系統程式(包含作業系統) |
年份:
101年 |
選擇題數:
0 |
申論題數:
17
試卷資訊
所屬科目:
系統程式(包含作業系統)
選擇題 (0)
申論題 (17)
⑴記憶體中全域替換(global replacement)和區域替換(local replacement)
⑵信號(semaphore)和事件(event)
⑶死結(deadlock)和飢餓(starvation)
⑷無阻塞輸出入(non-blocking I/O)和非同步輸出入(asynchronous I/O)
⑸系統呼叫(system call)和函式(function)
⑴ /dev/hda3
⑵ stderr
⑶ /dev/ttyc4
⑷ /etc/passwd
⑴有一個邏輯定址空間(logical address space)有 32 頁(pages),而每頁有 2,048 個字(words),此空間對應到實體記憶體的 16 個框(frames)。請問邏輯定址 和實體定址各有多少個位元?
⑵請舉例說明兩種情況,第一種情況下多重執行緒(multithread)的效能會比單一執 行緒的效能好,第二種情況下多重執行緒的效能會比單一執行緒的效能差。
⑶何謂即時作業系統(real-time operating system)?
⑷在非對稱加密(asymmetric encryption)中,請說明中間人攻擊(man-in-the-middle attack)是如何進行的。
⑸何謂擬重入函式(reentrant function)?為何訊號處理器(signal handler)必須是 reentrant?
⑴ static jmp_buf buf_alrm; static void sig_alrm(int signo) { longjmp(buf_alrm, 1); } unsigned int myfunc() { signal(SIGALRM, sig_alrm); alarm(5); if(setjmp(buf_alrm) != 0) { /* handle time out */. . .} . . . }
⑵ int worktogether() { pid_t myid; if ((myid = vfork()) < 0) { fprintf(stderr, "vfork error"); exit() ; } else if (myid == 0) { printf("Child Process: %d. ", getpid()); return(0);} else { waitpid(myid,NULL,0); printf("Parent Process: %d. ", getpid());} } int main() { worktogether(); exit(0);}
五、請畫出一個用 C 程式語言撰寫的程式在記憶體中的記憶配置圖。應標明配置中各部 分的名稱。(10 分)
相關試卷
111年 - 111 中華郵政股份有限公司_職階人員專業職(一)資訊類科甄試試題_專業職(一)/系統操作:作業系統#111500
111年 · #111500
102年 - 102 國家安全情報特種考試_三等_資訊組:系統程式(包括作業系統)#44167
102年 · #44167
101年 - 101 調查特種考試_三等_資訊科學組:系統程式#44830
101年 · #44830
100年 - 100 國家安全情報特種考試_三等_資訊組:系統程式(包括作業系統)#45679
100年 · #45679
100年 - 100 調查特種考試_三等_資訊科學組:系統程式#45504
100年 · #45504
99年 - 99 調查特種考試_三等_資訊科學組:系統程式#46591
99年 · #46591
99年 - 99 國家安全情報特種考試_三等_資訊組:系統程式(包括作業系統)#46589
99年 · #46589
98年 - 98 國家安全情報特種考試_三等_資訊組:系統程式(包括作業系統)#47992
98年 · #47992
98年 - 98 調查特種考試_三等_資訊科學組:系統程式#47850
98年 · #47850
97年 - 97 國家安全情報特種考試_三等_資訊組:系統程式(包括作業系統)#48936
97年 · #48936