wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Operating system revision quiz1(semaphores)

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following is not an operating system?

a)

Linux

b)

Unix

c)

windows

d)

microsoft office

2.

Concurrent access to shared data may result in _

a)

data consistency

b)

data insecurity

c)

data inconsistency

d)

None

3.

A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called ____________

a)

data consistency

b)

race condition

c)

aging

d)

starvation

4.

Semaphore is a/an _______ to solve the critical section problem.

a)

hardware for a system

b)

special program for a system

c)

integer variable

d)

none of the mentioned

5.

What is atomic operations permissible on semaphores?

a)

wait

b)

stop

c)

hold

d)

none

6.

What are the two kinds of semaphores?

a)

mutex & counting

b)

binary & counting

c)

counting & decimal

d)

decimal & binary

7.

What is a mutex?

a)

is a binary mutex

b)

must be accessed from only one process

c)

can be accessed from multiple processes

d)

none of the mentioned

8.

A binary semaphore is a semaphore with integer values

(a)  

9.

The bounded buffer problem is also known as ____________

a)

Readers – Writers problem

b)

Dining – Philosophers problem

c)

Producer – Consumer problem

d)

none

10.

To ensure difficulties do not arise in the readers – writers problem _______ are given exclusive access to the shared object.

a)

readers

b)

writers

c)

readers and writers

d)

None