wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Understanding OS Scheduling

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the primary purpose of scheduling in an operating system?

a)

To ensure all processes run simultaneously.

b)

To manage the execution of processes and allocate CPU time efficiently.

c)

To store data permanently in memory.

d)

To increase the speed of hardware components.

2.

Name two types of scheduling algorithms.

a)

First-Come, First-Served (FCFS) and Round Robin (RR)

b)

Weighted Round Robin (WRR) and Shortest Remaining Time First (SRTF)

c)

Multi-Level Queue (MLQ) and Fair Share (FS)

d)

Shortest Job First (SJF) and Priority Scheduling (PS)

3.

What is the difference between preemptive and non-preemptive scheduling?

a)

Preemptive scheduling is used for batch processing; non-preemptive scheduling is for real-time systems.

b)

Preemptive scheduling allows processes to run indefinitely; non-preemptive scheduling interrupts them.

c)

Preemptive scheduling interrupts processes; non-preemptive scheduling does not.

d)

Preemptive scheduling is less efficient; non-preemptive scheduling is more efficient.

4.

Explain the concept of context switching in scheduling.

a)

Context switching is the method of increasing CPU speed by running multiple threads simultaneously.

b)

Context switching refers to the process of merging multiple processes into a single thread for efficiency.

c)

Context switching is the process of saving and restoring the state of a process or thread to allow multiple processes to share the CPU.

d)

Context switching is the technique of allocating more memory to a single process to enhance performance.

5.

What is a time quantum in the context of round-robin scheduling?

a)

A time quantum is the maximum number of processes that can be scheduled at once.

b)

A time quantum is the variable time period that changes with each process execution.

c)

A time quantum is the fixed time interval allocated to each process in round-robin scheduling.

d)

A time quantum is the total time a process can run before being terminated.

6.

How does priority scheduling work?

a)

Priority scheduling is based on the arrival time of processes.

b)

Priority scheduling assigns CPU time equally to all processes.

c)

Priority scheduling uses a round-robin approach for process allocation.

d)

Priority scheduling allocates CPU to processes based on their priority levels.

7.

What are the advantages of using multilevel queue scheduling?

a)

Advantages include improved responsiveness for high-priority tasks, better resource allocation, reduced wait times, and the ability to handle diverse process types effectively.

b)

Increased complexity in scheduling algorithms

c)

Limited flexibility in process management

d)

Higher overhead for low-priority tasks

8.

Define the term 'throughput' in relation to scheduling.

a)

Throughput refers to the maximum capacity of a system in scheduling.

b)

Throughput is the total time taken to complete a task in scheduling.

c)

Throughput is the number of tasks completed in a given time period in scheduling.

d)

Throughput is the average duration of tasks scheduled over time.

9.

What is the role of the ready queue in process scheduling?

a)

The ready queue holds processes that are currently running on the CPU.

b)

The ready queue prioritizes processes based on their memory usage.

c)

The ready queue stores completed processes for future execution.

d)

The ready queue manages processes waiting for CPU time in process scheduling.

10.

How can starvation occur in scheduling algorithms?

a)

Starvation is when all processes are given equal time slices in a scheduling algorithm.

b)

Starvation happens when all processes are executed in a round-robin manner without priority.

c)

Starvation occurs when processes are terminated before completion due to resource limits.

d)

Starvation occurs when lower-priority processes are indefinitely delayed due to higher-priority processes continuously executing.