WGU D686 EXAM QUESTIONS WITH COMPLETE
SOLUTIONS!!
A thread represents a Answer - fundamental unit of CPU utilization within a
process,
A thread has essential components such as Answer - a thread ID, program
counter, register set, and stack.
Threads within the same process share Answer - code, data, and operating
system resources like files and signals.
If a process has multiple threads, it can do Answer - multiple tasks at once.
This has several benefits: it keeps applications responsive, allows easy resource
sharing, saves memory and time, and takes advantage of multiple processors to
run tasks faster
In multithreading models, the diverse approaches to managing threads within
OS distinguish between Answer - user-level threads (threads that operate
exclusively in user mode) and kernel-level threads (threads that operate in
kernel mode)
There are three primary threading models: Answer - the many-to-one
one-to-one
many-to-many
,Each threading model influences Answer - concurrency and system
performance differently
an operating system is a Answer - resource allocator
A control program manages the Answer - execution of user programs to
prevent errors and improper use of the computer, especially with the operation
and control of I/O devices
CPU hardware has a wire called the _____________ that the CPU senses after
executing every instruction Answer - interrupt-request line
When the CPU detects that a controller has asserted a signal on the interrupt-
request line, it reads the interrupt number and jumps to the
_________________ by using that interrupt number as an index into the
interrupt vector Answer - interrupt-handler routine
Most CPUs have two Answer - interrupt request lines
The ____________ interrupt, is reserved for events such as unrecoverable
memory errors Answer - nonmaskable
The second interrupt line is _________, it can be turned off by the CPU before
the execution of critical instruction sequences that must not be interrupted
Answer - maskable
The maskable interrupt is used by device controllers to request service
, the purpose of a _______________________ is to reduce the need for a single
interrupt handler to search all possible sources of interrupts to determine
which one needs service Answer - vectored interrupt mechanism
A mechanism by which each element in an interrupt vector points to the head
of a list of interrupt handlers, which are called individually until one is found to
service the interrupt request Answer - interrupt chaining
A typical instruction-execution cycle, as executed on a system with a von
Neumann architecture, first fetches Answer - an instruction from memory and
stores that instruction in the instruction register.
storage that is slow enough and large enough that it is used only for special
purposes is called Answer - tertiary storage
User mode refers to the CPU operating mode that Answer - restricts certain
instructions from executing user processes
kernel mode refers to a CPU operating mode where Answer - all instructions
are accessible
At system boot time, the hardware starts in Answer - kernel mode
The operating system is loaded after kernel mode and then starts Answer -
user applications in user mode
Whenever a trap or interrupt occurs, the hardware switches from Answer -
user mode to kernel mode (that is, changes the state of the mode bit to 0)
SOLUTIONS!!
A thread represents a Answer - fundamental unit of CPU utilization within a
process,
A thread has essential components such as Answer - a thread ID, program
counter, register set, and stack.
Threads within the same process share Answer - code, data, and operating
system resources like files and signals.
If a process has multiple threads, it can do Answer - multiple tasks at once.
This has several benefits: it keeps applications responsive, allows easy resource
sharing, saves memory and time, and takes advantage of multiple processors to
run tasks faster
In multithreading models, the diverse approaches to managing threads within
OS distinguish between Answer - user-level threads (threads that operate
exclusively in user mode) and kernel-level threads (threads that operate in
kernel mode)
There are three primary threading models: Answer - the many-to-one
one-to-one
many-to-many
,Each threading model influences Answer - concurrency and system
performance differently
an operating system is a Answer - resource allocator
A control program manages the Answer - execution of user programs to
prevent errors and improper use of the computer, especially with the operation
and control of I/O devices
CPU hardware has a wire called the _____________ that the CPU senses after
executing every instruction Answer - interrupt-request line
When the CPU detects that a controller has asserted a signal on the interrupt-
request line, it reads the interrupt number and jumps to the
_________________ by using that interrupt number as an index into the
interrupt vector Answer - interrupt-handler routine
Most CPUs have two Answer - interrupt request lines
The ____________ interrupt, is reserved for events such as unrecoverable
memory errors Answer - nonmaskable
The second interrupt line is _________, it can be turned off by the CPU before
the execution of critical instruction sequences that must not be interrupted
Answer - maskable
The maskable interrupt is used by device controllers to request service
, the purpose of a _______________________ is to reduce the need for a single
interrupt handler to search all possible sources of interrupts to determine
which one needs service Answer - vectored interrupt mechanism
A mechanism by which each element in an interrupt vector points to the head
of a list of interrupt handlers, which are called individually until one is found to
service the interrupt request Answer - interrupt chaining
A typical instruction-execution cycle, as executed on a system with a von
Neumann architecture, first fetches Answer - an instruction from memory and
stores that instruction in the instruction register.
storage that is slow enough and large enough that it is used only for special
purposes is called Answer - tertiary storage
User mode refers to the CPU operating mode that Answer - restricts certain
instructions from executing user processes
kernel mode refers to a CPU operating mode where Answer - all instructions
are accessible
At system boot time, the hardware starts in Answer - kernel mode
The operating system is loaded after kernel mode and then starts Answer -
user applications in user mode
Whenever a trap or interrupt occurs, the hardware switches from Answer -
user mode to kernel mode (that is, changes the state of the mode bit to 0)