wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Threads, Processes, and Programs

Total questions: 8

Worksheet time: 31mins

Name
Class
Date
1.

the switching of the CPU from one process or thread to another is called

a)

task switch

b)

context switch

c)

preemption

d)

process inheritance

2.

I will remember to calculate CPU utilization I use 1 - p^n where n is the number of processes and p is the percentage of time the processes wait

a)

yes

b)

no

3.

Cooperative multitasking

a)

the process yields the CPU voluntariuly

b)

the process yields the CPU involuntarily

c)

the OS makes the process to yeild

d)

the OS requests the process yield

4.

Preemptive multitaking

a)

The process yields the CPU coluntarily

b)

The OS forces the process to yield

c)

The OS requests the process yeild

d)

The process preempts the OS

5.

Scheduling algorithm goals

a)

Fairness

b)

Process enforcement

c)

Balance

d)

Performance

6.

An area of code or variables shared by threads is called

a)

Critical region

b)

Shared memory

c)

Shared fabric

d)

Scope

7.

I will know how to do FCFS, SJN, SJN with preemption, Priority and Priority with preemption

a)

True

b)

False

8.

Given 8GB of RAM, the OS taking 2GB of RAM and each user program taking 2GB we can run 3 user programs at once. With an 80% average I/O wait the CPU utilization is:

a)

48.8%

b)

72%

c)

20%

d)

25%