【評論主題】27. What is the status of a process if the process stops because its time slot is over?(A) Waiting(B
【評論內容】
在採用 RR 的短期排班程式 short-term scheduler 中,
一個行程的 time slot 用完後會被中斷 interrupt,
比照行程狀態圖 process transition diagram, PTD 可得知
當行程被中斷後應該回到 Ready 中等待下一次的執行
【評論主題】22. Consider the following C program code and statements (1)~(5). (1) node[1].num = 0(2) node[1].num
【評論內容】
for 迴圈總共跑了 20 次
因此 node[0].num ~ node[9].num 被重新取代過一次
i = 10, index = 10 % 10 = 0, node[0].num = 10**2 = 100
i = 11, index = 11 % 10 = 1, node[1].num = 11**2 = 121
i = 13, index = 13 % 10 = 3, node[3].num = 13**2 = 169
X (1) node[1].num = 0
X (2) node[1].num = 1
X (3) node[2].ptr->num = node[3].num = 9
O (4) node[9].ptr->ptr->num = node[1].num = 121
O (5) node[9].ptr->num = node[0].num = 100