wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

OS - Assessment 05

Total questions: 20

Worksheet time: 15mins

Name
Class
Date
1.

This is a programming paradigm that allows multiple processes or threads to execute simultaneously, improving performance and efficiency. ----- PROGRAMMING

(a)  

2.

Which of the ff are challenges that concurrent programming introduces?

a)

synchronization

b)

communication between concurrent processes

c)

delay

d)

unsynch

3.

This means an instance of a program.

(a)  

4.

This means a lightweight process

(a)  

5.

Apart from processes, which is another basic unit of execution?

(a)  

6.

How does processes communicate?

a)

Thru inter-process communication mechanisms

b)

Thru synchronization mechanisms

7.

How does threads communicate?

a)

Thru inter-process communication mechanisms

b)

Thru synchronization mechanisms

8.

These might happen because of a deadlock.

a)

A program might crash

b)

A program might freeze

c)

A program might run smoothly

9.

A cause of deadlock which means one or more resources are acquired in an exclusive mode.

a)

Mutual Exclusion

b)

Hold and Wait

c)

No Pre-emption

d)

Circular Wait

10.

A cause of deadlock which means at least one resource in exclusive mode and wait for at least another resource that has been acquired by another resource in exclusive mode.

a)

Mutual Exclusion

b)

Hold and Wait

c)

No Pre-emption

d)

Circular Wait

11.

A cause of deadlock which means that processes do not release the resources allotted to them voluntarily w/o utilizing the resources

a)

Mutual Exclusion

b)

Hold and Wait

c)

No Pre-emption

d)

Circular Wait

12.

A cause of deadlock which means that a closed chain or circular relationship exists among the processes involved in a deadlock.

a)

Mutual Exclusion

b)

Hold and Wait

c)

No Pre-emption

d)

Circular Wait

13.

Which of the ff are concurrency mechanisms?

a)

Mutual Exclusion

b)

Hold and Wait

c)

No Pre-emption

d)

Circular Wait

14.

IPC stands for Inter-Process ----------.

(a)  

15.

Which of the ff are Inter-Process Communication Problems?

a)

Starvation

b)

Deadlock

c)

Data Inconsistency

d)

Shared Buffer Problem

16.

Which Inter-Process Communication Problems has sections that might cause problems called critical sections?

a)

Starvation

b)

Deadlock

c)

Data Inconsistency

d)

Shared Buffer Problem

17.

Which Inter-Process Communication Problems can cause race conditions?

a)

Starvation

b)

Deadlock

c)

Data Inconsistency

d)

Shared Buffer Problem

18.

Which Inter-Process Communication Problems uses the sample of Rich Dad and Poor Student, where they share a bank account?

a)

Starvation

b)

Deadlock

c)

Data Inconsistency

d)

Shared Buffer Problem

19.

Which Inter-Process Communication Problems uses the sample of two pirates that neither is willing to give up the half of the treasure map they have?

a)

Starvation

b)

Deadlock

c)

Data Inconsistency

d)

Shared Buffer Problem

20.

Which of the ff are the basic units of execution?

a)

Process

b)

Threads

c)

all of the above

d)

Locks