Deck 4: Processor Management

Full screen (f)
exit full mode
Question
From HOLD, the job moves to WAITING when it's ready to run but is waiting for the CPU.
Use Space or
up arrow
down arrow
to flip the card.
Question
It is possible to minimize response time by running only interactive jobs and letting the batch jobs wait until the interactive load ceases.
Question
A single processor can be shared by several jobs, or several processes, but if, and only if, the operating system has a scheduling policy, as well as a scheduling algorithm, to determine when to stop working on one job and proceed to another.
Question
The Process Scheduler often uses a timing mechanism and periodically interrupts running processes when a predetermined slice of time has expired.
Question
A process is an inactive unit, such as a file stored on a disk.
Question
The Processor Manager is a composite of two submanagers: one in charge of job scheduling and the other in charge of program scheduling.
Question
The transition from one job or process status to another is initiated by either the Job Scheduler or the Process Scheduler.
Question
Shortest job next (SJN) is a nonpreemptive scheduling algorithm (also known as shortest job first, or SJF) that handles jobs based on the length of their CPU cycle time.
Question
A program is an active entity that requires a set of resources, including a processor and special registers, to perform its function.
Question
First-come, first-served (FCFS) is a preemptive scheduling algorithm that handles jobs according to their arrival time.
Question
The processor is also known as the CPU.
Question
If one job monopolizes the system, the extent of its overall effect on system performance depends on the scheduling policy and whether the job is CPU-bound or I/O-bound.
Question
When using priority scheduling, priorities are assigned to jobs by the owner of the job (the user).
Question
CPU-bound jobs (such as printing a series of documents) have many brief CPU cycles and long I/O cycles.
Question
The shortest remaining time (SRT) algorithm is often used in interactive systems.
Question
The process state contains all of the data about the job needed by the operating system to manage the processing of the job.
Question
Each job is uniquely identified by the user's identification and a pointer connecting it to its descriptor.
Question
As a job moves through the system it is always in one of five states (or at least three); these are called the job status or the process status.
Question
After a job has been placed on the READY queue by the Job Scheduler, the Process Scheduler takes over.
Question
Most computer programs alternate between CPU cycles and I/O cycles.
Question
The transition from ____ is initiated by the Process Scheduler or the Job Scheduler.

A) WAITING to READY
B) RUNNING to WAITING
C) RUNNING to FINISHED
D) HOLD to READY
Question
First-come, first-served (FCFS) is a very simple algorithm to implement because it ____.

A) uses a FIFO queue
B) uses a LIFO queue
C) uses a circular queue
D) uses a directed graph
Question
When the job is accepted by the system, it's put on ____ and placed in a queue.

A) HOLD
B) RUNNING
C) WAITING
D) READY
Question
____ contains information used mainly for billing purposes and performance measurement.

A) Accounting
B) Process State
C) Process Identification
D) Process Status
Question
A ____ is a portion of a process that can run independently.

A) thread
B) program
C) miniprocess
D) subprocess
Question
The Process Scheduler assigns the CPU to execute the processes of those jobs placed on the ____ queue by the Job Scheduler.

A) WAITING
B) NEXT
C) PROCESS
D) READY
Question
The control program that handles the interruption sequence of events is called the interrupt scheduler.
Question
Assume that four jobs A-D require the CPU cycles listed below. Using the SJN algorithm, the ____ job is run first. Job: A B C D
CPU cycle: 5 2 6 4

A) A
B) B
C) C
D) D
Question
The first-come, first-served (FCFS) algorithm is fine for most ____ systems.

A) multiuser
B) user initied
C) interactive
D) batch
Question
An I/O request is called a(n) ____ wait in multiprogramming environments.

A) forced
B) natural
C) scheduled
D) indirect
Question
Queues use ____ to track jobs the same way customs officials use passports to track international visitors.

A) jobs
B) processes
C) PCBs
D) record identifiers
Question
____ holds pertinent information, including the address where the job is stored and, in the case of virtual memory, the mapping between virtual and physical memory locations.

A) Main memory
B) Register content
C) Process priority
D) The process state
Question
The ____ is also called the high-level scheduler.

A) Process Scheduler
B) Job Scheduler
C) Program Scheduler
D) Thread Scheduler
Question
Multiple-level queues isn't really a separate scheduling algorithm but works in conjunction with several other schemes.
Question
In a highly interactive environment there is a third layer of the Processor Manager called the ____ scheduler.

A) Managing
B) Subprocess
C) middle-level
D) Program
Question
The Job Scheduler seeks to ___ , when scheduling jobs.

A) Run all CPU intensive jobs first.
B) Run all I/O intensive jobs first.
C) Balance CPU and I/O intensive jobs.
D) Run the quickest jobs first.
Question
In round robin scheduling, if processing isn't finished when time expires, the job is preempted and put at the end of the READY queue and its information is saved in its PCB.
Question
Aging is used to ensure that jobs in lower-level queues will eventually complete their execution.
Question
The transition from ____ is initiated by the Job Scheduler according to some predefined policy.

A) READY to RUNNING
B) RUNNING to WAITING
C) RUNNING back to READY
D) HOLD to READY
Question
Context switching is required by all preemptive algorithms.
Question
Assume that jobs A-D arrive in the ready queue in quick succession and have the CPU cycle requirements listed below. Using the SRT algorithm, the average turnaround time is ____. Arrival time: 0 1 2 3
Job: A B C D
CPU cycle: 6 3 1 4

A) 2.5
B) 6.25
C) 7.75
D) 9.0
Question
When selecting the proper time quantum it should be long enough to allow ____ percent of the CPU cycles to run to completion.

A) 20
B) 60
C) 80
D) 100
Question
Assume that four jobs A-D require the CPU cycles listed below. Using the SJN algorithm, the average turnaround time is ____. Job: A B C D
CPU cycle: 5 2 6 4

A) 5.5
B) 6.8
C) 9.0
D) 11.1
Question
____ jobs are treated like all the others once they are in the system.

A) Low-priority
B) High-priority
C) Variable-priority
D) Moving-priority
Question
Assume jobs A-D arrive in quick succession in the READY queue. Using round robin scheduling, the turnaround time for job C is ____. Arrival time: 0 1 2 3
Job: A B C D
CPU cycle: 8 4 9 5

A) 7
B) 20
C) 22
D) 24
Question
____ allows for faster turnaround of CPU-bound jobs.

A) No movement between queues
B) Movement between queues
C) Variable time quantum per queue
D) Aging
Question
When the operating system detects a nonrecoverable error, the following step ____, is performed first by the interrupt handler.

A) state of the interrupted process is saved
B) type of interrupt is described and stored
C) interrupt is processed
D) processor resumes operation
Question
Some systems increase the priority of jobs that have been in the system for an unusually long time to expedite their exit, which is known as ____.

A) lagging
B) aging
C) bumping
D) accelerated priority
Question
Internal interrupts, or ____ interrupts, also occur as a direct result of the arithmetic operation or job instruction currently being processed.

A) I/O
B) illegal job instruction
C) illegal operation
D) synchronous
Question
No movement between queues is a very simple policy that rewards those who have ____ jobs.

A) high-priority
B) low-priority
C) CPU-bound
D) I/O-bound
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 4: Processor Management
1
From HOLD, the job moves to WAITING when it's ready to run but is waiting for the CPU.
False
2
It is possible to minimize response time by running only interactive jobs and letting the batch jobs wait until the interactive load ceases.
True
3
A single processor can be shared by several jobs, or several processes, but if, and only if, the operating system has a scheduling policy, as well as a scheduling algorithm, to determine when to stop working on one job and proceed to another.
True
4
The Process Scheduler often uses a timing mechanism and periodically interrupts running processes when a predetermined slice of time has expired.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
A process is an inactive unit, such as a file stored on a disk.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
The Processor Manager is a composite of two submanagers: one in charge of job scheduling and the other in charge of program scheduling.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
The transition from one job or process status to another is initiated by either the Job Scheduler or the Process Scheduler.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
Shortest job next (SJN) is a nonpreemptive scheduling algorithm (also known as shortest job first, or SJF) that handles jobs based on the length of their CPU cycle time.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
A program is an active entity that requires a set of resources, including a processor and special registers, to perform its function.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
First-come, first-served (FCFS) is a preemptive scheduling algorithm that handles jobs according to their arrival time.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
The processor is also known as the CPU.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
If one job monopolizes the system, the extent of its overall effect on system performance depends on the scheduling policy and whether the job is CPU-bound or I/O-bound.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
When using priority scheduling, priorities are assigned to jobs by the owner of the job (the user).
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
CPU-bound jobs (such as printing a series of documents) have many brief CPU cycles and long I/O cycles.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
The shortest remaining time (SRT) algorithm is often used in interactive systems.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
The process state contains all of the data about the job needed by the operating system to manage the processing of the job.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
Each job is uniquely identified by the user's identification and a pointer connecting it to its descriptor.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
As a job moves through the system it is always in one of five states (or at least three); these are called the job status or the process status.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
After a job has been placed on the READY queue by the Job Scheduler, the Process Scheduler takes over.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Most computer programs alternate between CPU cycles and I/O cycles.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
The transition from ____ is initiated by the Process Scheduler or the Job Scheduler.

A) WAITING to READY
B) RUNNING to WAITING
C) RUNNING to FINISHED
D) HOLD to READY
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
First-come, first-served (FCFS) is a very simple algorithm to implement because it ____.

A) uses a FIFO queue
B) uses a LIFO queue
C) uses a circular queue
D) uses a directed graph
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
When the job is accepted by the system, it's put on ____ and placed in a queue.

A) HOLD
B) RUNNING
C) WAITING
D) READY
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
____ contains information used mainly for billing purposes and performance measurement.

A) Accounting
B) Process State
C) Process Identification
D) Process Status
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
A ____ is a portion of a process that can run independently.

A) thread
B) program
C) miniprocess
D) subprocess
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
The Process Scheduler assigns the CPU to execute the processes of those jobs placed on the ____ queue by the Job Scheduler.

A) WAITING
B) NEXT
C) PROCESS
D) READY
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
The control program that handles the interruption sequence of events is called the interrupt scheduler.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
Assume that four jobs A-D require the CPU cycles listed below. Using the SJN algorithm, the ____ job is run first. Job: A B C D
CPU cycle: 5 2 6 4

A) A
B) B
C) C
D) D
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
The first-come, first-served (FCFS) algorithm is fine for most ____ systems.

A) multiuser
B) user initied
C) interactive
D) batch
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
An I/O request is called a(n) ____ wait in multiprogramming environments.

A) forced
B) natural
C) scheduled
D) indirect
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
Queues use ____ to track jobs the same way customs officials use passports to track international visitors.

A) jobs
B) processes
C) PCBs
D) record identifiers
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
____ holds pertinent information, including the address where the job is stored and, in the case of virtual memory, the mapping between virtual and physical memory locations.

A) Main memory
B) Register content
C) Process priority
D) The process state
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
The ____ is also called the high-level scheduler.

A) Process Scheduler
B) Job Scheduler
C) Program Scheduler
D) Thread Scheduler
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Multiple-level queues isn't really a separate scheduling algorithm but works in conjunction with several other schemes.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
In a highly interactive environment there is a third layer of the Processor Manager called the ____ scheduler.

A) Managing
B) Subprocess
C) middle-level
D) Program
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
The Job Scheduler seeks to ___ , when scheduling jobs.

A) Run all CPU intensive jobs first.
B) Run all I/O intensive jobs first.
C) Balance CPU and I/O intensive jobs.
D) Run the quickest jobs first.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
In round robin scheduling, if processing isn't finished when time expires, the job is preempted and put at the end of the READY queue and its information is saved in its PCB.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
Aging is used to ensure that jobs in lower-level queues will eventually complete their execution.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
The transition from ____ is initiated by the Job Scheduler according to some predefined policy.

A) READY to RUNNING
B) RUNNING to WAITING
C) RUNNING back to READY
D) HOLD to READY
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Context switching is required by all preemptive algorithms.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Assume that jobs A-D arrive in the ready queue in quick succession and have the CPU cycle requirements listed below. Using the SRT algorithm, the average turnaround time is ____. Arrival time: 0 1 2 3
Job: A B C D
CPU cycle: 6 3 1 4

A) 2.5
B) 6.25
C) 7.75
D) 9.0
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
When selecting the proper time quantum it should be long enough to allow ____ percent of the CPU cycles to run to completion.

A) 20
B) 60
C) 80
D) 100
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
Assume that four jobs A-D require the CPU cycles listed below. Using the SJN algorithm, the average turnaround time is ____. Job: A B C D
CPU cycle: 5 2 6 4

A) 5.5
B) 6.8
C) 9.0
D) 11.1
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
____ jobs are treated like all the others once they are in the system.

A) Low-priority
B) High-priority
C) Variable-priority
D) Moving-priority
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
Assume jobs A-D arrive in quick succession in the READY queue. Using round robin scheduling, the turnaround time for job C is ____. Arrival time: 0 1 2 3
Job: A B C D
CPU cycle: 8 4 9 5

A) 7
B) 20
C) 22
D) 24
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
____ allows for faster turnaround of CPU-bound jobs.

A) No movement between queues
B) Movement between queues
C) Variable time quantum per queue
D) Aging
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
When the operating system detects a nonrecoverable error, the following step ____, is performed first by the interrupt handler.

A) state of the interrupted process is saved
B) type of interrupt is described and stored
C) interrupt is processed
D) processor resumes operation
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
Some systems increase the priority of jobs that have been in the system for an unusually long time to expedite their exit, which is known as ____.

A) lagging
B) aging
C) bumping
D) accelerated priority
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
Internal interrupts, or ____ interrupts, also occur as a direct result of the arithmetic operation or job instruction currently being processed.

A) I/O
B) illegal job instruction
C) illegal operation
D) synchronous
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
No movement between queues is a very simple policy that rewards those who have ____ jobs.

A) high-priority
B) low-priority
C) CPU-bound
D) I/O-bound
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.