110年 民航特考 三等 航空通信 計算機概論 試卷

pdf
187.67 KB
3 頁
windows10
侵權投訴
加載中. ..
PDF
110年公務人員特種考試外交領事人員及
考試別
民航人員考試
三等考試
類科組別
航空通信
計算機概論
考試時間
2
小時
座號
禁止使用電子計算器。
請以藍、黑色鋼筆或原子筆在申論試卷上作答。
本科目除專門名詞或數理公式外,應使用本國文字作答。
代號
3036
0
頁次
3
1
一、行程(Process是電腦作業系統中重要的元素,回答下列有關作業系
統行程之問題:
在作業系統中程以行程控制區塊Process Control Block, PCB
示,PCB 中除了 CPU 排程資訊和記憶體管理資訊外,還有那三個元
New, Running, Waiting, Ready,
Terminated 等狀態,請完成下列程序狀態圖(Process State Diagram
I~VI)的狀態和轉換15
請說明兩種程序間溝通Interprocess Communication, IPC機制的基礎
模型分享記憶體Shared Memory與訊息傳遞Message Passing
在不同狀況下的優缺點。10 分)
I
II)
I
)
I/O
event
I/O
event wait
n
ew
(I
V
terminate
e
xit
I
I)
V
VI
代號
30360
頁次
3
2
二、佇列Queue是重要的資料結構可使用陣列Array鏈結串列Link
List)實作。
請填寫下表從空間使用、增刪速度上說明陣列Array或鏈結
串列(Link List)實作佇列的優缺點。6分)
以陣列實作 鏈結串列實作
使用空間數量已知
使用空間數量未知
增加刪除元素
佇列一般從後端backenqueue一個新元素從前端front
刪除dequeue一個元素請完成下面使用陣列實作環狀佇列Circular
Queue)程式碼I~V)空格,使輸出為:15 分)
enqueue data=0, enqueue data=1, Queue Full, Queue Full, Queue Full,
dequeue data=0, dequeue data=1, Queue Empty, Queue Empty, Queue Empty,
#include
#define SIZE 3
typedef enum{FALSE, TRUE} bool;
bool isEmpty(int front, int back) {
return (front== (I) );
}
bool isFull(int front, int back) {
return (( (II) )==front);
}
bool enqueue(int data[], int index[], int key) {
//front = index[0]; back = index[1];
if (isFull(index[0], index[1]))
return FALSE;
index[1] = (III) ;
data[index[1]] = key;
return (IV) ;
}
int dequeue(int data[], int index[]) {
// front = index[0]; back = index[1];
// dequeue data = index[2]
if (isEmpty(index[0], index[1]))
return FALSE;
index[0] = (V) ;
index[2] = data[index[0]];
return TRUE;
}
int main() {
int k=0;
//front=index[0]; back = index[1];
//dequeue data = index[2]
int index[3]={0, 0, 0};
int data[SIZE];
bool result;
for (int i=0; i<5; i++) {
result=enqueue(data, index, k++);
if (!result) printf("Queue Full, ");
else printf("enqueue data=%d, ", k-1);
}
printf("n");
for (int i=0; i<5; i++) {
result = dequeue(data, index);
if (!result) printf("Queue Empty, ");
else
printf("dequeue data=%d, ",index[2]);
}
return 0;
}
請說明最大優先權佇列Max-Priority Queue)有那些基本操作,以及
如何應用於作業系統排程。4分)
代號
30360
頁次
3
3
三、第 5代行動通訊標準5G 4代行動通訊標準4G後技術的進化
請說明國際電信聯盟ITU制定 5G 三大目標/特性eMBB(高頻
高速)uRLLC(高可靠度、低延遲)mMTC(多連結)15 分)
請說明無人機與虛擬實境(Virtual Reality, VR如何應用這些特性。
10 分)
四、請回答下列作業系統記憶體管理相關問題
設定記憶體管理前的記憶體配置狀態如下圖A~E 區域為尚未
使用的部份其餘為已配置行程process區域若有新行程需要 290K
記憶體,請分別使用最先合適法(first fit、最佳合適法best fit)與
最差合適法worst fit行程會被分配的區域並計算新產生的
碎片大小。18 Process 1
A (490K)
Process 2
B (210K)
Process 3
C (400K)
Process 4
D (690K)
Process 5
E (320K)
Process 6
external fragmentation
internal fragmentation請說明分頁paging與分段segmentation
記憶體管理法會產生碎裂的種類與原因。7
收藏 ⬇️ 下載