操作系統(tǒng)第3章Process Description and Control_第1頁
操作系統(tǒng)第3章Process Description and Control_第2頁
操作系統(tǒng)第3章Process Description and Control_第3頁
操作系統(tǒng)第3章Process Description and Control_第4頁
操作系統(tǒng)第3章Process Description and Control_第5頁
已閱讀5頁,還剩2頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、Operating Systems, 5 th ed.Test BankChapter 3Chapter 3 Process Description and ControlTrue / False Questions:1. T / F - The principal function of the processor is to execute machine instructions residing in main memory.處理器的主要功能是處理駐留在主存中的指令。ANS: T2. T / F - A process trace is a listing of the sequenc

2、e of instructions that execute for that process.進程指令追蹤就是這個進程的指令序列的列表。ANS: T3. T / F - The principal responsibility of the operating system is to control the execution of processes.操作系統(tǒng)的主要任務(wù)是控制進程的執(zhí)行。ANS: T4. T / F - When one process spawns another, the spawning process is referred to as the child pro

3、cess and the spawned process is referred to as the parent process.當一個進程派生出另一進程時,產(chǎn)生進程的進程是子進程,被產(chǎn)生的進程是父進程。ANS: F (opposite is true)5. T / F - Round-Robin processing refers to a method of thread prioritization for scheduling.輪轉(zhuǎn)是一種線程優(yōu)先級調(diào)度方法。ANS: F (not prioritized)6. T / F - The primary difference betwee

4、n the Two-State Process Model and the Five- State Process Model is that the latter splits the Running state into two new states: Ready and Blocked.兩狀態(tài)處理模型和五狀態(tài)處理模型主要區(qū)別是后者將運行態(tài)分割成就緒和阻塞態(tài)。ANS: F (splits the Not Running state)7. T / F - One solution to the problem of limited main memory space is swapping,

5、 which involves moving all or part of a process from main memory to secondary memory. 一種解決主存空間有限的方法是交換,這種交換包括將一個進程的全部或部分從主 存轉(zhuǎn)移到輔存。ANS: T8. T / F - In order to define the control structures (e.g., tables) that the O/S needs to manage processes and resources, it must have access to configuration datad

6、uring initialization.為了定義操作系統(tǒng)控制進程和資源所需要的控制結(jié)構(gòu),操作系統(tǒng)在初始化的時候必須擁有對設(shè)備數(shù)據(jù)的控制權(quán)。ANS: T9. T / F - The Process Image refers to the binary form of the program code. 進程映像指的是二進制形式的程序碼。ANS: F (refers to process elements: program, data, stack & attributes)10. T / F The portion of the Process Control Block that c

7、onsists of the contents of the processor registers is called the Process Control Information.進程控制塊中包含處理器寄存器的部分是進程控制信息。ANS: F (processor state information portion of the PCB contains registers)11. T / F - The less-privileged processor execution mode is often referred to as kernel mode.沒有特權(quán)的處理器執(zhí)行模式通常被

8、叫做內(nèi)核模式。ANS: F (user mode)12. T / F - The primary process table contains one entry per process, unless the process spawns a new process, in which case the table contains multiple entries for the parent process.主進程表中每個進程有一個入口,除非進程產(chǎn)生了子進程,這種情況下表中會有多個到父進程的入口。ANS: F (only one entry for the parent process)

9、13. T / F - One kind of system interrupt, the trap, relates to an error or exception condition in the currently running process.陷阱,一種系統(tǒng)中斷,是涉及當前進程中的錯誤或異常條件。ANS: T14. T / F - In the Nonprocess Kernel approach to defining the relationship between the O/S and the User Process, the O/S code is executed a

10、s a separate entity that operates in privileged mode.采用無進程內(nèi)核方法來定義操作系統(tǒng)和用戶進程的區(qū)別:操作系統(tǒng)代碼是作為獨立的整體在特權(quán)模式下運行。ANS: T15. T / F - A typical UNIX system employs two Running states, to indicate whether the process is executing in user mode or kernel mode.典型的 UNIX 系統(tǒng)采用兩種運行態(tài)來表示進程是運行在用戶模式還是內(nèi)核模式。ANS: TMultiple Choic

11、e Questions:1. The behavior of a processor can be characterized by examining: 一個處理器的行為可以通過對進程的交錯的觀察來衡量A A single process traceB Multiple process tracesC The interleaving of the process tracesD All of the aboveANS: C2. The behavior of an individual process can be characterized by examining: 一個單獨進程的行為

12、可以通過觀察此進程的痕跡來描述A A single process traceB Multiple process tracesC The interleaving of the process tracesD All of the aboveANS: A3. The basic Two-State Process Model defines two possible states for a process in relationship to the processor:基本的兩狀態(tài)進程模型定義了一個進程與處理器關(guān)系可能的兩種狀態(tài):進行態(tài)和非運行態(tài).A Running and Execut

13、ing B Running and Not Running C Executing and Waiting D None of the aboveANS: B4. There are a number of conditions that can lead to process termination, including: 導(dǎo)致進程終止的條件有:正常結(jié)束,越界,父進程終止.A Normal completion B Bounds violation C Parent termination D All of the aboveANS: D5. In the Five-State Proces

14、s Model, the following represents a valid state transition: 在五狀態(tài)模型中,下列哪一項是有效的轉(zhuǎn)換:運行阻塞.A Running -> BlockedB New -> RunningC New -> BlockedD All of the aboveANS: A6. In a Process Model that implements two suspend states, a valid state transition is represented by:在兩個掛起態(tài)的進程執(zhí)行模型中,有效的轉(zhuǎn)換是:就緒掛起就緒,

15、進行 就緒掛起,就緒 就緒掛起.A Ready/Suspend -> ReadyB Running -> Ready/SuspendC Ready -> Ready/SuspendD All of the aboveANS: D7. The scheduling strategy where each process in the queue is given a certain amount oftime, in turn, to execute and then returned to the queue, unless blocked is referred to as

16、. 一種調(diào)度策略,每個在隊列中的進程給一定的時間執(zhí)行,然后返回隊列,除非被阻塞,這個策略叫輪轉(zhuǎn).A Prioritization B Round-Robin C LIFOD All of the aboveANS: B8. A Memory Table is an O/S control structure that is used by the O/S to: 存儲頁表是用來追蹤主存和和輔存的操作系統(tǒng)控制結(jié)構(gòu)A Manage I/O devicesB Manage processesC Provide information about system filesD None ofthe ab

17、oveANS: D (used to keep track of main "real" and secondary a virtual " memory)9. The Process Image element that contains the collection of attributes needed by theO/S to control a particular process is called the:操作系統(tǒng)控制一個特定的進程所需包含一系列進程屬性的映象元素叫進程控制塊A User DataB System StackC Process Co

18、ntrol BlockD None of the aboveANS: C10. The Process Image element that contains the modifiable part of the user space is called the:進程控制元素中包含可修改部分的用戶空間叫用戶數(shù)據(jù)A User ProgramB System StackC Process Control BlockD None of the aboveANS: D (User Data)11. The processor execution mode that user programs typi

19、cally execute in is referred to as:執(zhí)行用戶程序的處理器執(zhí)行方式叫用戶模式.A User modeB System modeC Kernel modeD None of the aboveANS: A12. One step in the procedure for creating a new process involves:創(chuàng)建一個新進程包括的步驟:初始化進程控制塊,分配進程空間,確實惟一的進程標志號.A Initializing the process control blockB Allocating space for the processC A

20、ssigning a unique identifierD All of the aboveANS: D13. A process switch may occur when the system encounters an interrupt condition, such as that generated by a: 當遇到以下哪些情況下進程會發(fā)生轉(zhuǎn)換:內(nèi)存缺頁,系統(tǒng)調(diào)用,陷阱.A Memory faultB Supervisor callC TrapD All of the aboveANS: D14. In the Process Based O/S:在基于操作系統(tǒng)的進程中:主要的內(nèi)

21、核函數(shù)是獨立組織的.A Major kernel functions are organized as separate functions B The User Process Image includes a kernel stackC O/S code and data are contained in the shared address space D None of the aboveANS: A15. In a typical UNIX system, the element of the process image that contains the processor sta

22、tus information is the:在一個典型的UNIX系統(tǒng)中,進程映像元素中包含進程身份的信息是寄存器上下文A System-level contextB Register contextC User-level contextD All of the aboveANS: BFill-In-The-Blank Questions:1. The listing of a sequence of instructions that execute for a particular process is called a .一個進程的指令序列叫指令追蹤.ANS: trace2. The

23、behavior of a processor can be characterized by examining the interleaving of the process for the processes currently running on the system.ANS: traces一 處理器行為可以通過檢測當前運行進程追蹤的交換來描述3. The portion of the operating system that selects the next process to run is called the.選擇下一進程的操作系統(tǒng)部分叫調(diào)度器.ANS: dispatche

24、r4. When the O/S creates a process at the explicit request of an existing process, the action is referred to as.當操作系統(tǒng)在現(xiàn)有進程的明確要求下創(chuàng)建了一個進程,這種行為叫子進程創(chuàng)建ANS: process spawning5. A process that cannot execute until some event occurs is said to be in the state.一個進程直到某些事件發(fā)生才能執(zhí)行,我們說進程處于阻塞態(tài).ANS: blocked6. In a s

25、ystem that implements two suspend states, a process that has been swapped out of main memory and into secondary memory and that is also awaiting an event is in the/state.一個兩掛起態(tài)的系統(tǒng),一個進程從主存轉(zhuǎn)移到輔存并且等待一個事件的完成時,處于阻塞掛起態(tài)ANS: Blocked/Suspend7. The scheduling strategy where each process in the queue is given

26、a certain amount oftime, in turn, to execute and then returned to the queue, unless blocked is referred to as.一種調(diào)度策略,隊列中的每一進程在不被阻塞的情況下給予一定的時間執(zhí)行,然后返回隊列,這種策略叫輪轉(zhuǎn).ANS: round-robin8. The O/S control structure that the O/S uses to manage system processes is called the.操作系統(tǒng)用來控制進程的控制結(jié)構(gòu)叫進程控制表ANS: process tab

27、le9. The User Data, User Program, System Stack and Process Control Block elements collectively make up what is referred to as the.用戶數(shù)據(jù),用戶程序,系統(tǒng)棧,進程控制塊是進程映象中的典型石ANS: process image10. The Process Identification, Processor State Information and the Process Control Information are the general categories

28、that collectively make up what is referred to as the.進程標識,處理器狀態(tài)信息,進程控制信息是進程控制塊中的典型元素。ANS: process control block11. The processor typically maintains the current operating mode (i.e., user or kernel) in the .處理器在程序狀態(tài)字中記錄了當前的操作模式。ANS: program status word (PSW)12. The first step in creating a new process is to assign

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論