100% found this document useful (1 vote)
3K views7 pages

07f ch4 Testbank

The document contains a chapter summary with true/false and multiple choice questions about threads, symmetric multiprocessing (SMP) systems, and microkernels. Some key points covered include: - A thread is the basic unit of CPU utilization and threads within a process share resources through shared memory. - SMP systems have multiple CPUs that can access a shared main memory and require cache coherency protocols. - Microkernels move most functions out of the kernel into user-space for flexibility, extensibility, and reliability. Processes mainly communicate via message passing.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
3K views7 pages

07f ch4 Testbank

The document contains a chapter summary with true/false and multiple choice questions about threads, symmetric multiprocessing (SMP) systems, and microkernels. Some key points covered include: - A thread is the basic unit of CPU utilization and threads within a process share resources through shared memory. - SMP systems have multiple CPUs that can access a shared main memory and require cache coherency protocols. - Microkernels move most functions out of the kernel into user-space for flexibility, extensibility, and reliability. Processes mainly communicate via message passing.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Operating Systems, 5th ed.

Chapter 4 Threads, SMP, and Microkernels True / False Questions:

Chapter 4

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. 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 4. T / F The concept of thread synchronization is required in multithreaded systems because threads of a single process share the processs process control block (PCB). ANS: F (because they share the same address space) 5. T / F In a pure User-Level Thread (ULT) facility, all of the work of thread management is done by the application, but the kernel is aware of the existence of threads. ANS: F (kernel is not aware of the threads existence) 6. T / F In the field of distributed operating system design, the One-to-Many (Thread-to-Process) relationship is particularly interesting because it involves the concept of thread migration. ANS: T 7. T / F One disadvantage to the master/slave shared-memory multiprocessor architecture is that the failure of the master brings down the whole system. ANS: T 8. T / F In a symmetric multiprocessing (SMP) system, each processor has access only to a private main memory area. ANS: F (also have access to a shared main memory)

Page 1 of 7

Operating Systems, 5th ed.

Chapter 4

9. T / F An SMP O/S manages processor and other resources so that the user may view the system in the same fashion as a multiprogramming uniprocessor system. ANS: T 10. T / F The primary advantage of the basic microkernel design over layered kernel designs involves increased performance. ANS: F (performance is a disadvantage) 11. T / F The philosophy underlying the microkernel is that only absolutely essential core operating system functions should be in the kernel. ANS: T 12. T / F The basic form of communication between processes or threads in a microkernel O/S is messages. ANS: T 13. T / F Linux makes no distinction between a process and a thread. ANS: T 14. T / F Windows 2000 is an object-oriented O/S, but only processes (not threads) are implemented as objects in the WIN2K O/S. ANS: F (threads are also implemented as objects) 15. T / F In the Solaris O/S, a User-Level Thread (ULT) in the active state is assigned to a Light-Weight Process (LWP) and executes while the underlying kernel thread executes. ANS: T

Page 2 of 7

Operating Systems, 5th ed.

Chapter 4

Multiple Choice Questions: 1. The concept of a process in an operating system embodies two primary characteristics, one of which is: a. b. c. d. Multithreading Resource ownership Symmetric multiprocessing None of the above

ANS: B 2. An example of a system that implements a single process with multiple threads is: a. b. c. d. WIN 2000 Solaris Java All of the above

ANS: C 3. Which of the following is true regarding the relationship between processes 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 processes 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. b. c. d. Unblock operation Spawn operation Block operation None of the above

ANS: C

Page 3 of 7

Operating Systems, 5th ed.

Chapter 4

5. One of the disadvantages of User-Level Threads (ULTs) compared to KernelLevel Threads (KLTs) is: a. Scheduling is application specific b. When a ULT executes a system call, all threads in the process are blocked 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. b. c. d. 1:1 1:M M:N 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. b. c. d. Single Instruction Single Data (SISD) stream Single Instruction Multiple Data (SIMD) stream Multiple Instruction Single Data (MISD) stream None of the above

ANS: A 8. In a SMP system, each processor maintains a local cache and must alert all other processors that a change to cache has taken place. This is referred to as the: a. b. c. d. Interconnection mechanism problem Synchronization mechanism problem Cache coherency problem None of the above

ANS: C 9. Key issues involved in the design of multiprocessor operating systems include: a. Scheduling b. Synchronization

Page 4 of 7

Operating Systems, 5th ed. c. Reliability and fault tolerance d. All of the above ANS: D

Chapter 4

10. Early operating systems that were designed with little concern about structure are typically referred to as: a. b. c. d. Monolithic operating systems Layered operating systems Kernel operating systems All of the above

ANS: A 11. A benefit of the microkernel organization is: a. b. c. d. Extensibility Portability Flexibility All of the above

ANS: D 12. In a Solaris system, a User-Level Thread (ULT) that enters the active state is assigned to a: a. b. c. d. Kernel thread Heavy-Weight Process (HWP) Light-Weight Process (LWP) None of the above

ANS: C

Page 5 of 7

Operating Systems, 5th ed.

Chapter 4

Fill-In-The-Blank Questions: 1. In an operating system, the unit of dispatching is usually referred to as a ___________________, while the unit of resource ownership is usually referred to as a process or task. ANS: thread or lightweight process 2. An example of an operating system that supports a single user process and a single thread is _______________. ANS: MS-DOS 3. An example of an operating system that supports multiple user processes and multiple threads is _______________. ANS: WIN2K/Solaris/Linux/Mach/OS2 4. It is necessary to ___________________ the activities of various threads so they do not interfere with each other or corrupt data structures. ANS: synchronize 5. A process that cannot execute until some event occurs is said to be in the _______________ state. ANS: blocked 6. The Clouds O/S implements the concept of a thread as primarily an entity that can move among address spaces which represents the _______ Thread-toProcess relationship. ANS: One-to-Many 7. In a ________________ system, the kernel can execute on any processor, and typically each processor does self-scheduling from the pool of available processes or threads. ANS: symmetric multiprocessor 8. In most modern computer systems, processors generally have at least one level of __________________ that is private to the processor. ANS: cache memory

Page 6 of 7

Operating Systems, 5th ed.

Chapter 4

9. With multiple active processes in an SMP system having potential access to shared address space or shared I/O resources, care must be taken to provide effective _________________. ANS: synchronization 10. In the ________________ O/S architecture, functions are organized hierarchically and interaction only takes place between adjacent sections. ANS: layered 11. One advantage of the microkernel architecture is __________________, allowing the addition of new services as well as the provision of multiple services in the same functional area. ANS: extensibility 12. The basic form of communication between processes or threads in a microkernel O/S is __________________ . ANS: messages 13. In a Linux system, if the process has been terminated but, for some reason, still must have its task structure in the process table is in the _____________ state. ANS: zombie 14. In a Solaris system, a User-Level Thread (ULT) in the active state is assigned to a(n) ____________________, and executes while the underlying kernel thread executes. ANS: light-weight process (LWP) 15. In a Windows 2000 system, a process that has been selected to run next on a particular processor moves from the Ready state to the _____________ state. ANS: Standby

Page 7 of 7

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy