Free Online Flashcard Deck

4 CPU Scheduling Free Online FlashCards

Study 4 CPU Scheduling with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What does CPU scheduling decide?

Back

CPU scheduling chooses which ready thread runs on a processor next.

02
Front

How is turnaround time defined?

Back

Turnaround time is the time from a job’s arrival to its completion: completion time−arrival time\text{completion time} - \text{arrival time}.

03
Front

Why run another ready thread when one blocks for I/O?

Back

When a thread blocks for I/O, running another ready thread can keep the processor productive instead of idle.

04
Front

What is the convoy effect in FCFS scheduling?

Back

The convoy effect occurs when a long job at the front of the FCFS queue delays many shorter jobs.

05
Front

When can SJF reduce average turnaround time?

Back

When all jobs are available and their burst lengths are known, SJF can reduce average turnaround time by running the shortest job first.

06
Front

How does SRTF choose which job to run?

Back

SRTF is preemptive SJF: when a job becomes ready, the scheduler runs whichever has the shortest remaining expected CPU time.

07
Front

How does Round Robin share the CPU?

Back

Round Robin gives each ready thread a time quantum; if it has not finished, it moves to the back of the ready queue.

08
Front

How does aging reduce starvation?

Back

Aging gradually raises the priority of tasks that have waited a long time, reducing the risk that low-priority tasks starve.

09
Front

How does an MLFQ adapt to task behavior?

Back

An MLFQ moves tasks among queues based on observed behavior; for example, I/O-waiting tasks may be favored while long CPU-burst tasks move to lower priority.

10
Front

Does high-priority scheduling guarantee every real-time deadline?

Back

A high-priority policy alone does not guarantee that every deadline will be met; real-time scheduling must account for timing requirements.

11
Front

What two concerns shape scheduling across multiple cores?

Back

A multicore scheduler balances runnable work across cores to improve utilization and may keep a task on the same core to preserve useful processor state.

12
Front

What makes a CPU scheduler preemptive?

Back

A preemptive OS can interrupt a running thread and switch to another, supporting time-sharing and responsiveness.