← 回題庫

卷別

計算機結構與作業系統(B)

選擇

國立臺灣大學 2022 · 考試 · 第 8 題

(4 pts) The UNIX system call wait() returns the process identifier of a terminated child process. Select correct description(s).

(複選;至少一個正確選項,每個選項獨立計分。)

  • (A)
    Cascading termination means that "if a process terminates, then all its children must also be terminated."
  • (B)
    The process identifier of a zombie process is released even if its parent has not yet invoked wait().
  • (C)
    If there is no child process when wait() is invoked, then it is as if no wait() is there.
  • (D)
    If there is an orphan process, the system can assign a process as the new parent which periodically invokes wait().

標準解析

AI 生成