Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Lesson 5 - CPU Scheduling

Total questions: 25

Worksheet time: 14mins

Name
Class
Date
1.

Process execution consists of a cycle of _________ and ________.

a)

CPU execution

b)

I/O wait

c)

RAM storage

2.

CPU burst is followed by I/O burst.

a)

True

b)

False

3.

In CPU Scheduling, CPU burst distribution is not the main concern.

a)

True

b)

False

4.

Selects from among the processes in ready queue, and allocates the CPU to one of them.

a)

Short-term scheduler

b)

Long-term scheduler

c)

CPU scheduler

5.

CPU scheduling decisions may take place when a process:

a)

Switches from running to waiting state

b)

Switches from running to ready state

c)

Switches from running to terminated

d)

Switches from waiting to ready

e)

Terminated

6.

Does not cut execution.

a)

Preemptive

b)

Nonpreemptive

7.

Cuts execution.

a)

Preemptive

b)

Nonpreemptive

8.

Gives control of the CPU to the process selected by the short-term scheduler.

a)

Dispatcher

b)

CPU controller

c)

Short-term CPU

9.

Dispatcher includes:

a)

switching context: saving and loading state

b)

switching to user mode

c)

Jumping to the proper location in the user program

d)

Jumping to the improper location in the user program

10.

What are the 5 scheduling criteria?

a)

CPU Utilization

b)

Throughput

c)

Turnaround time

d)

Waiting Time

e)

Response Time

11.

Keep the CPU as busy as possible.

a)

CPU Utilization

b)

Throughput

c)

Turnaround time

d)

Waiting Time

e)

Response Time

12.

# of processes that complete their execution per time unit.

a)

CPU Utilization

b)

Throughput

c)

Turnaround time

d)

Waiting Time

e)

Response Time

13.

Amount of time to execute a particular process.

a)

CPU Utilization

b)

Throughput

c)

Turnaround time

d)

Waiting Time

e)

Response Time

14.

Amount of time a process has been waiting in the ready queue.

a)

CPU Utilization

b)

Throughput

c)

Turnaround time

d)

Waiting Time

e)

Response Time

15.

Amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment)

a)

CPU Utilization

b)

Throughput

c)

Turnaround time

d)

Waiting Time

e)

Response Time

16.

Scheduling Algorithm Optimization Criteria

a)

Max CPU utilization

b)

Max throughput

c)

Min turnaround time

d)

Min waiting time

e)

Min response time

17.

Short process behind long process (applies to SJF, short process first)

a)

Convoy effect

b)

Convey effect

c)

Conveyor effect

18.

Associate with each process the length of its next CPU burst.

a)

First-Come, First-Served Scheduling

b)

Shortest-Job-First Scheduling

c)

Shortest-Remaining-Time-First Scheduling

d)

Priority Scheduling

e)

Round Robin

19.

A priority number (integer) is associated with each process.

a)

First-Come, First-Served Scheduling

b)

Shortest-Job-First Scheduling

c)

Shortest-Remaining-Time-First Scheduling

d)

Priority Scheduling

e)

Round Robin

20.

The CPU is allocated to the process with the highest priority.

(smallest integer = highest priority)

a)

True

b)

False

21.

SJF is priority scheduling where priority is the inverse of predicted next CPU burst time.

a)

True

b)

False

22.

Low priority processes may never execute.

a)

Starvation

b)

Aging

23.

As time progresses increase the priority of the process.

a)

Starvation

b)

Aging

24.

Each process gets a small unit of CPU time, usually 10-100 milliseconds.

After this time has elapsed, the process is preempted and added to the end of the ready queue.

a)

First-Come, First-Served Scheduling

b)

Shortest-Job-First Scheduling

c)

Shortest-Remaining-Time-First Scheduling

d)

Priority Scheduling

e)

Round Robin

25.

A small unit of CPU time (10-100).

a)

Quantum time

b)

Time slice

c)

Millisecond