操作系统第3章Process Description and Control_第1页
操作系统第3章Process Description and Control_第2页
操作系统第3章Process Description and Control_第3页
操作系统第3章Process Description and Control_第4页
操作系统第3章Process Description and Control_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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.操作系统的主要任务是控制进程的执行。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.当一个进程派生出另一进程时,产生进程的进程是子进程,被产生的进程是父进程。ANS: F (opposite is true)5. T / F - Round-Robin processing refers to a method of thread prioritization for scheduling.轮转是一种线程优先级调度方法。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.两状态处理模型和五状态处理模型主要区别是后者将运行态分割成就绪和阻塞态。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. 一种解决主存空间有限的方法是交换,这种交换包括将一个进程的全部或部分从主 存转移到辅存。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.为了定义操作系统控制进程和资源所需要的控制结构,操作系统在初始化的时候必须拥有对设备数据的控制权。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.没有特权的处理器执行模式通常被

8、叫做内核模式。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.主进程表中每个进程有一个入口,除非进程产生了子进程,这种情况下表中会有多个到父进程的入口。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.陷阱,一种系统中断,是涉及当前进程中的错误或异常条件。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.采用无进程内核方法来定义操作系统和用户进程的区别:操作系统代码是作为独立的整体在特权模式下运行。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 系统采用两种运行态来表示进程是运行在用户模式还是内核模式。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:基本的两状态进程模型定义了一个进程与处理器关系可能的两种状态:进行态和非运行态.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: 导致进程终止的条件有:正常结束,越界,父进程终止.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: 在五状态模型中,下列哪一项是有效的转换:运行阻塞.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:在两个挂起态的进程执行模型中,有效的转换是:就绪挂起就绪,

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、. 一种调度策略,每个在队列中的进程给一定的时间执行,然后返回队列,除非被阻塞,这个策略叫轮转.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: 存储页表是用来追踪主存和和辅存的操作系统控制结构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:操作系统控制一个特定的进程所需包含一系列进程属性的映象元素叫进程控制块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:进程控制元素中包含可修改部分的用户空间叫用户数据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:执行用户程序的处理器执行方式叫用户模式.A User modeB System modeC Kernel modeD None of the aboveANS: A12. One step in the procedure for creating a new process involves:创建一个新进程包括的步骤:初始化进程控制块,分配进程空间,确实惟一的进程标志号.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: 当遇到以下哪些情况下进程会发生转换:内存缺页,系统调用,陷阱.A Memory faultB Supervisor callC TrapD All of the aboveANS: D14. In the Process Based O/S:在基于操作系统的进程中:主要的内

21、核函数是独立组织的.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系统中,进程映像元素中包含进程身份的信息是寄存器上下文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.选择下一进程的操作系统部分叫调度器.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.当操作系统在现有进程的明确要求下创建了一个进程,这种行为叫子进程创建ANS: process spawning5. A process that cannot execute until some event occurs is said to be in the state.一个进程直到某些事件发生才能执行,我们说进程处于阻塞态.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.一个两挂起态的系统,一个进程从主存转移到辅存并且等待一个事件的完成时,处于阻塞挂起态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.一种调度策略,队列中的每一进程在不被阻塞的情况下给予一定的时间执行,然后返回队列,这种策略叫轮转.ANS: round-robin8. The O/S control structure that the O/S uses to manage system processes is called the.操作系统用来控制进程的控制结构叫进程控制表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.用户数据,用户程序,系统栈,进程控制块是进程映象中的典型石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.进程标识,处理器状态信息,进程控制信息是进程控制块中的典型元素。ANS: process control block11. The processor typically maintains the current operating mode (i.e., user or kernel) in the .处理器在程序状态字中记录了当前的操作模式。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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论