wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

OSS (QUIZ 3) - Process Management (Part 2)

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is process synchronization?

a)

Coordinating the execution of processes to ensure they run correctly when accessing shared resources

b)

Managing memory allocation for processes

c)

Scheduling CPU time for processes

d)

Handling process termination

2.

Which of the following is a common solution to the critical section problem?

a)

Virtual memory

b)

Semaphores

c)

Paging

d)

Process scheduling

3.

What does a semaphore use to manage access to shared resources?

a)

Floating-point values

b)

Boolean values

c)

Integer values

d)

String values

4.

What is the main purpose of concurrency in operating systems?

a)

To slow down process execution

b)

To enhance system efficiency by running multiple processes or threads simultaneously

c)

To reduce memory usage

d)

To terminate inactive processes

5.

Which of the following best describes a counting semaphore?

a)

Can only take values of 0 and 1

b)

Can take any integer value to manage multiple instances of a resource

c)

Stores process IDs

d)

Manages process states

6.

In which type of semaphore can the value only be 0 or 1?

a)

Counting semaphore

b)

Integer semaphore

c)

Binary semaphore (Mutex)

d)

Floating-point semaphore

7.

Which of the following is an example of multithreading in real-world applications?

a)

A single-threaded file transfer program

b)

A web browser loading multiple tabs simultaneously

c)

A word processor with autosave feature

d)

A computer running multiple virtual machines

8.

What is the main advantage of multiprocessing?

a)

Higher hardware costs

b)

Parallel execution of tasks using multiple CPUs or cores

c)

Reduced power consumption

d)

Simpler process management

9.

What does the 'wait' operation in a semaphore do?

a)

Increases the semaphore's value

b)

Decreases the semaphore's value if it's greater than zero

c)

Terminates the process

d)

Allocates memory to the process

10.

What is the critical section in process synchronization?

a)

A segment of code where a process accesses shared resources

b)

The main memory area allocated to a process

c)

The CPU time slice assigned to a process

d)

The state where a process waits for an event

11.

Process synchronization prevents race conditions and ensures data consistency.

a)

TRUE

b)

FALSE

12.

Concurrency refers to the simultaneous execution of a single process.

a)

TRUE

b)

FALSE

13.

A binary semaphore can take any integer value.

a)

TRUE

b)

FALSE

14.

Multithreading involves running multiple threads within a single process.

a)

TRUE

b)

FALSE

15.

Multiprocessing increases system performance by using multiple CPUs or cores.

a)

TRUE

b)

FALSE