Shared Flashcard Set

Details

OpSys - Ch 5
Chapter 5 for Quiz
78
Other
Undergraduate 4
02/06/2013

Additional Other Flashcards

 


 

Cards

Term
______ is when you monitor a real system and record a sequence of actual events
Definition
trace tape
Term
Kernel maintains a per-CPU _______ for all the runnable tasks
Definition
runqueue
Term
It is called _____ when there is no time left, it is not run-able until all other tasks use their slices
Definition
expired
Term
It is called _____ when tasks are run-able as long as there is time left in its time slice
Definition
active
Term
In windows scheduling, if no run-able thread, then the dispatcher will execute the ________
Definition
idle thread
Term
Multicore processor may complicate scheduling due to ________
Definition
memory stall
Term
The solution to processor affinity is:
Definition
soft affinity
hard affinity
Term
______ is a migrating process that is expensive to invalidate and repopulate cache
Definition
process affinity
Term
_____ is when each processor is self-scheduling
Definition
symmetric multiprocessing
Term
_______ is when only one processor makes scheduling decisions I/O processing, an dother system activity
Definition
asymmetric multiprocessing
Term
Since CPU scheduling is -more complex when multiple CPUs are available, we assume processors are _____________ in functionality
Definition
homogeneous/identical
Term
_____ schedules threads using SCS scheduling
Definition
PTHREAD_SCOPE_SYSTEM
Term
_____ schedules threads using PCS scheduling
Definition
PTHREAD_SCOPE_PROCESS
Term
_______ is the API in Pthread scheduling
Definition
ptbread_attr_set/getscope
Term
_____ is the scheduling competition within the process
Definition
Process-contention scope
Term
______ is the competition among all the threads in the system
Definition
System-contention scope
Term
_______ is when each process gets a small amount of CPU time
Definition
time quantum, q
Term
_______ will gradually increase the priority of processes that wait in the system for a long time
Definition
Aging
Term
_____ is a problem with priority scheduling algorithms because low priority processes may never execute
Definition
Starvation
Term
The preemptive version of shortest-job-first-scheduling is called:
Definition
shortest-remaining time first
Term
______ is all other processes waiting until the running CPU-bound process is done
Definition
Convoy effect
Term
For interactive systems, minimize _____ in response time to optimize different values
Definition
variance
Term
Under some circumstances, like in _______, the system optimizes _____ or _____ value
Definition
real time systems
minimum
maximum
Term
In most cases, systems optimize ______ values
Definition
average
Term
_____ is the time it takes from when a request was submitted until the first response is produced
Definition
response time
Term
_____ is the total time spent waiting in the ready queue
Definition
Waiting time
Term
_____ is the time to execute a particular process
Definition
Turnaround time
Term
_____ is the number of processes that complete execution per time unit
Definition
Throughput
Term
_____ is the percentage of CPU being busy
Definition
CPU utililzation
Term
______ is the time it takes for the dispatcher to stop one process and start another running
Definition
Dispatch latency
Term
True/False The kernel is preemptive
Definition
False, the kernel is nonpremptive
Term
Another word for nonpreemptive is _______
Definition
cooperative
Term
CPU scheduling decisions may take place when a process:
switches from running to waiting state (wait for I/O)
switches from running to ready state (when an interrupt occurs)
switches from waiting to ready (at completion of I/O)
terminates
Scheduling under condition ______ and _____ is non preemptive (non-rescheduling)
Definition
1
4
Term
Process execution alternates between _______ and ______
Definition
CPU burst
I/O burst
Term
What is the difference between fork and clone?
Definition
With clone, the call allows the child process to share parts of its execution context with the calling process.
Main use of clone is to implement threads.
Term
Process execution consists of a _____ of ________ and ______
Definition
cycle
CPU execution
I/O wait
Term
Maximum CPU utilization is obtained with ________
Definition
multiprogramming
Term
CPU scheduler selects another process when current one is in _____
Definition
I/O Burst
Term
CPU scheduler selects from among the processes in _______, and allocates CPU to one of them
Definition
ready queue
Term
CPU scheduling decisions may take place when a process:
Definition
switches from running to waiting state (wait for I/O)
switches from running to ready state (when an interrupt occurs)
switches from waiting to ready (at completion of I/O)
terminates
Term
Once the CPU has been allocated to a process, the process keeps it until it ______ or ______
Definition
terminates
switching to the waiting state
Term
Preemptive scheduling needs ______ such as a timer
Definition
hardware support
Term
Kernel states will be inconsistent if _______ when updating shared data
Definition
preempted
Term
What are the solutions for using preemption since it affects the OS kernel design?
Definition
Waiting for either the system call to complete or the I/O block
Disable kernel preemption when updating shared data
Term
The dispatcher module gives the control of the CPU to the process selected by the short-term scheduler by:
Definition
switching context
switching to user mode
jumping to the proper location in the user program to restart that program
Term
Turnaround time happens from the time of _____ to the time of ______
Definition
submission
completion
Term
Generally you maximize ______ and ____, and minimize _____, _____, and _____ for optimization
Definition
CPU utilization
throughput
turnaround time
waiting time
response time
Term
The scheduling algorithms are:
Definition
FCFS (First Come First Served) Scheduling
SJF (Shortest Job First) Scheduling
Priority Scheduling
Round-robin Scheduling
Multilevel queue scheduling
Multilevel feedback queue scheduling
Term
True/False FCFS Scheduling is preemptive
Definition
False
Term
How is SJF provably optimal?
Definition
It gives minimum average waiting time for a set of given processes
Moving a short process before a long one decreases the overall waiting time
Term
True/False SJF Scheduling is preemptive
Definition
BOTH. SJF is preemptive or nonpreemptive
Term
True/False Priority scheduling is preemptive
Definition
BOTH. Priority scheduling is preemptive or nonpreemptive
Term
What happens in Round Robin when the q, time quantum, is too large?
Definition
Then you do FIFO
Term
What happens in Round Robin when the q, time quantum, is too small?
Definition
Then you context switch, which is high overhead
Term
A timer interrupts every _____ to schedule the next process
Definition
quantum
Term
If there are n processes, each process gets ____ of the CPU time
Definition
1/n
Term
No process waits more than _____ time units
Definition
(n-1)q
Term
With multi level queue, the ready queue is partitioned into _______
Definition
separate queues
Foreground (interactive) and background (batch) processes
Term
With multilevel queue, processes are _____ assigned to a given queue
Definition
prematurely
Term
With multilevel queue, each queue has its own ________
Definition
scheduling algorithm
Term
Multilevel queue is ______, where schedung must be done through the queues
Definition
queue scheduling
Term
With fixed priority scheduling there is the possibility of ____
Definition
starvation
Term
_______ is when each queue gets a certain amount of CPU time which it can schedule amongst its processes
Definition
time slice
Term
With multilevel queues a process can _____ between various queues
Definition
move
Term
Aging is implemented when
Definition
a process can move between various queues
Term
MLFQ schedules are defined by these parameters:
Definition
Minnie Pounded Ninjas Said Minature Mickey Mouse Socks
number of queues
scheduling algorithms for each queue
method used to determine when to assign a process a higher priority
method used to determine when to demote a process
method used to determine which queue a process will enter when that process needs service
Term
MLFQ (Multilevel Feedback Queue) is the ______ CPU-scheduling algorithm
Definition
most general
Term
CPU scheduling is _______ when multiple CPUs are available
Definition
more complex
Term
Which multiple-processor scheduling is used by common operating systems?
Definition
symmetric multiprocessing
Term
Multicore processor has multiple processor cores on the _____
Definition
same chip
Term
You ______ when you access memory, a process spends a significant amount of time waiting for data to become available
Definition
memory stall
Term
The solution to multithreaded CPU core is to:
Definition
share the exec unit, but duplicate architecture states like registers, for each CPU thread
Term
_____ may undo good scheduling efforts in the host or guests
Definition
virtualization
Term
____ schedules multiple guests onto CPUs
Definition
Host kernel
Term
Each ____ does its own scheduling not knowing it is running on a virtual processor
Definition
guest
Term
Processor affinity is?
Definition
Trying to keep a process running on the same processor
Term
Soft affinity is?
Definition
The OS tries to keep a process running on the same processor, no guarantees
Term
Hard affinity is?
Definition
A process says, "I am not allowed to go to other processors"
Supporting users have an ad free experience!