Chapter 4 – Threads, SMP, and Microkernels
True / Fal Questions:
1. T / F – The basic unit of dispatching in an operating system is usually referred to as a thread or lightweight process.操作系统的基本单位调度,通常称为一个轻量级线程或线程
ANS: T
2. T / F – An example of a system that implements a single process with multiple threads is MS-DOS.MS-DOS操作系统是一个单一进程具有多线程的例子.
ANS: F (Java)
3. T / F – In a multithreaded environment, a process is defined as the unit of resource allocation and a unit of protection.
ANS: T
ANS: F (becau they share the same address space)
在对称多处理系统(SMP)中,每个处理器进入到各自独立的内存领域.
F (还获得了内存共享)
Multiple Choice Questions:
1. The concept of a process in an operating system embodies two primary characteristics, one of which is:操作系统中进程的概念,体现了两个主要特点的,其中之一是
a. Multithreading
b. Resource ownership
c. Symmetric multiprocessing
d. None of the above
ANS: B
2. An example of a system that implements a single process with multiple threads is:
a. WIN 2000
b. Solaris
c. Java
d. All of the above
ANS: C
3. Which of the following is true regarding the relationship between process and threads:
a. It takes far less time to create a new thread in an existing process than to create a new process在现有的进程下创建线程要比建一个新进程下创建线程花的时间要少得多
b. It takes less time to terminate a process than a thread
c. It takes less time to switch between two different process than to switch between two threads within the same process
d. All of the above
ANS: A
4. The basic thread operation related to the change in thread state that occurs when a thread needs to wait for an event is referred to as the:
线程基本状态发生变化,需要等待一个事件时称为
a. Unblock operation
b. Spawn operation
c. Block operation 阻塞状态
d. None of the above
ANS: C
5. One of the disadvantages of Ur-Level Threads (ULTs) compared to Kernel-Level Threads (KLTs) is:
a. Scheduling is application specific
b. When a ULT executes a system call, all threads in the process are blocked 当一个ULT执行一个系统调用,进程中所有的线程都被阻塞
c. Thread switching does not require kernel mode privileges
d. All of the above
ANS: B
6. In the Linux O/S, multiple threads may be created and executed within a single process. This is an example of the following Thread-to-Process relationship:
a. 1:1
b. 1:M
c. M:N
d. None of the above
ANS: D (M:1)
7. The computer system category where a single processor executes a single instruction stream to operate on data stored in a single memory is called:
a. Single Instruction Single Data (SISD) stream 单指令单数据(SISD)流