wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Threads & Concurrency Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is a thread primarily composed of?

a)

A CPU and a memory unit

b)

A program counter, a stack, and a set of registers

c)

A process and a scheduler

d)

A kernel and a user interface

2.

Which of the following is a benefit of multithreading?

a)

Increased memory usage

b)

Improved responsiveness

c)

Higher process creation cost

d)

Reduced scalability

3.

What does concurrency allow in a single-core system?

a)

Blocking of all tasks during execution

b)

Increased memory allocation

c)

Only one task to be executed at a time

d)

Simultaneous execution of multiple tasks

4.

What is the main difference between concurrency and parallelism?

a)

Concurrency is only for single-core systems, while parallelism is for multi-core systems

b)

Concurrency is a type of parallelism

c)

Concurrency requires more resources than parallelism

d)

Concurrency allows multiple tasks to progress, while parallelism executes tasks simultaneously

5.

What is data parallelism?

a)

Running multiple threads on a single core

b)

Blocking threads during execution

c)

Distributing subsets of the same data across multiple cores

d)

Distributing unique operations across cores

6.

Which of the following is true about user threads?

a)

They require kernel mode privileges for switching

b)

They are managed by the kernel

c)

They can run on any operating system

d)

They cannot execute system calls

7.

What happens when a user thread executes a system call?

a)

Only that thread is blocked

b)

All threads within the process are blocked

c)

Only kernel threads are blocked

d)

No threads are affected

8.

What is a key advantage of kernel threads?

a)

They are easier to manage than user threads

b)

They can be scheduled on multiple processors

c)

They are faster than user threads

d)

They do not require kernel mode privileges

9.

In the many-to-one threading model, what happens when one thread blocks?

a)

No threads are affected

b)

Only kernel threads are blocked

c)

All threads in the process are blocked

d)

Only that thread is blocked

10.

What is the one-to-one threading model characterized by?

a)

No threads being created

b)

Each user-level thread mapping to a kernel thread

c)

Multiple user-level threads mapped to a single kernel thread

d)

Only one thread per process

11.

What does the many-to-many threading model allow?

a)

Only one user thread per kernel thread

b)

No kernel threads to be created

c)

Only one thread to run at a time

d)

Multiple user threads mapped to multiple kernel threads

12.

What is a threading issue related to signal handling?

a)

How to terminate a thread

b)

Which thread receives a signal in a multithreaded process

c)

How to switch between user and kernel threads

d)

How to create new threads

13.

What is thread-local storage used for?

a)

To block threads during execution

b)

To manage kernel threads

c)

To create data private to a thread

d)

To share data between threads

14.

Which operating systems support kernel threads?

a)

Only Android

b)

Windows, Linux, Mac OS X, iOS, Android

c)

Only Linux

d)

Only Windows

15.

What is a disadvantage of kernel threads?

a)

They are easier to manage than user threads

b)

They do not block other threads

c)

They require a mode switch for thread control transfer

d)

They can be scheduled on multiple processors