Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz Plat

Total questions: 22

Worksheet time: 4mins

Name
Class
Date
1.

A unique value that identifies a thread when it calls a server

a)

Thread context

b)

Alert status

c)

Thread ID

d)

Thread State.

2.

These resources can be used by only one process at a time and are not depleted by usage.

a)

Consumable resources

b)

Deadlock

c)

Reusable resources

d)

Hold and wait

3.

provides programmers with an application programming interface (API) for creating and managing threads.

a)

Thread State

b)

Thread

c)

Thread Synchronization

d)

Thread Library

4.

This happens whenever a thread completes its entire execution. Its register settings and stacks are deallocated.

a)

Finish

b)

Block

c)

Spawn

d)

Unblocked

5.

A closed chain of threads exists, such that each thread holds at least one resource needed by the next thread in the chain.

a)

Mutual exclusion

b)

Hold and wait:

c)

No preemption

d)

Circular wait

6.

can be defined as permanent blocking of a set of processes that either compete for system resources or communicate with each other.

a)

Deadlock

b)

Hold and wait

c)

circular wait

d)

Thread

7.

pertains to the ability of an operating system (OS) to support multiple, concurrent paths of execution within a single process. T

a)

resource allocation graph

b)

Multithreading

c)

Kernel-Level Threads

d)

Thread

8.

The benefit of multithreading is greater when dealing with multiprocessor architecture, where threads can run in parallel on different processing cores.

a)

Responsiveness

b)

Economical

c)

Scalability

d)

Resource Sharing :

9.

This strategy does not limit resource access or restricts process executions. Requested resources are granted to processes whenever possible. Then, the operating system periodically executes an algorithm that detects the presence of a circular wait condition.

a)

Deadlock Detection

b)

Deadlock Avoidance

c)

Deadlock Prevention

d)

Deadlock

10.

The thread's execution priority at any given moment

a)

Thread ID

b)

Dynamic priority

c)

Alert status

d)

Base priority

11.

– Each thread of execution is a unique process with its own address space and resources.

a)

Multiple processes: Multiple threads per processes (M:M)

b)

One process: Multiple threads (1:M)

c)

One process: One thread (1:1)

d)

Multiple processes: One thread per process (M:1)

12.

the key states for a thread are Running, Ready, and Blocked. If a process is swapped out, noted that all of its threads are automatically swapped out because they all share the address space of the process

a)

Thread State

b)

Thread

c)

Thread Library

d)

Thread Synchronization

13.

Resources cannot be preempted. This means that a resource can only be released voluntarily by the thread holding it after that thread has completed its task.

a)

Mutual exclusion

b)

Hold and wait

c)

Circular wait

d)

No preemption

14.

This happens when a thread needs to wait for a particular event. In this operation, all the necessary information are automatically saved for the thread's execution resumption

a)

Spawn

b)

Block

c)

Finish

d)

Unblocked

15.

A thread is a fundamental element of CPU utilization. Which of the following is NOT a typical thread attribute?

a)

Thread execution state

b)

Saved thread context

c)

Execution stack

d)

Virtual Memory Paging File

16.

Which operation resumes a blocked thread and moves it to the ready queue?

a)

Spawn

b)

Unblock

c)

Finish

d)

Block

17.

The ability of an OS to support multiple concurrent paths of execution within a process is called:

a)

Multithreading

b)

Multiprocessing

c)

Multiprogramming

d)

Multitasking

18.

Which benefit of multithreading refers to threads sharing memory and resources of a process?

a)

Responsiveness

b)

Economical

c)

Scalability

d)

Resource Sharing

19.

Which benefit of multithreading is maximized on multiprocessor systems?

a)

Scalability

b)

Responsiveness

c)

Economical

d)

Resource Sharing

20.

If a thread is waiting for an event, which state is it in?

a)

Terminated

b)

Blocked

c)

Ready

d)

Running

21.

Which thread management approach is invisible to the kernel?

a)

User-level threads

b)

Kernel-level threads

c)

Multithreaded processes

d)

Combined approach

22.

Which of the following is an example of a multithreaded application?

a)

A typewriter

b)

BIOS firmware

c)

A single-task calculator

d)

A photo viewer creating thumbnails