Unit 2: Processes and Process scheduling Flashcards
What is a process?
An executing program.
What are the three process states?
Running, Ready, and Blocked.
In processing, “running” is when………..
the CPU is actually being used.
In processing, “ready” is……….
runable, but has no CPU access.
In processing, “ blocked” is………..
waiting for an external event to occur.
What are the two process conditions?
Processor Bound and I/O Bound.
What is preemptive scheduling?
processes give up CPU based on clock interrupt.
What is Non-preemptive scheduling?
Processes voluntarily give up the CPU (run til done).
In scheduling, the amount of useful work accomplished per unit time is called ………..
Throughput
In scheduling, the fraction of time the device is busy is called …………
Utilization
What is Turnaround time?
The length of time between when the job arrives in the system and when it finally finishes.
•(exit time - arrival time)
What is wait time?
The amount of time the job is ready.
• ( turnaround time - execution time )
What is response time?
The length of time between when the job arrives in the system and when it starts to produce output.
• ( first execution time - arrival time )
What are the three levels of scheduling
Admission, Memory, and CPU.
Is FIFO preemptive or non-preemptive?
Non-preemptive
Is the shortest first algorithm preemptive or non-preemptive?
Non-preemptive
Is the shortest remaining algorithm preemptive or non-preemptive?
Preemptive
A scheduler that runs the first on the queue until it blocks, then runs the next, and so on is called ……….
FCFS
Whenever the CPU chooses the process with the shortest execution time to run first, it is called ……….
SJF
The scheduler that runs the process with the shortest remaining time first is called …………
SRTN
The preemptive version of the SJF is known as ………
SRTN
The scheduler that is like FCFS, but after a length of time, quantum, if the current process is not completed it is moved to the end of the queue after the next process has started is called …
Round Robin
The scheduler that always runs the process with the highest priority first, and can be either preemptive or non-preemptive, is called ….
Priority Scheduling
A process being allowed to run even though it has the lowest priority is called …
Priority Inversion