Chapter 4_IPC_Synchronization

Chapter 4_IPC_Synchronization

University

10 Qs

quiz-placeholder

Similar activities

Computer Architecture Unit 3

Computer Architecture Unit 3

University

15 Qs

BCA

BCA

University

10 Qs

Assessment 08

Assessment 08

University

15 Qs

CID421 Introduction to 3D CAD SOLIDWORK

CID421 Introduction to 3D CAD SOLIDWORK

University

12 Qs

Video Watermaking

Video Watermaking

University

11 Qs

GIS Unit-1

GIS Unit-1

University

15 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Chapter 4_IPC_Synchronization

Chapter 4_IPC_Synchronization

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

afizan azman

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of process synchronization?

To execute all processes at the same time


To avoid deadlock in the system

To coordinate processes accessing shared resources

To speed up CPU execution

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a race condition?

When two processes compete for CPU time


When multiple processes access shared data and the final result depends on which finishes last

When processes execute one after another

When a process runs faster than expected

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the critical-section problem?

A problem caused by too many threads


A situation where processes need to access shared data one at a time

An issue caused by faulty synchronization hardware

A memory management problem

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a requirement for solving the critical-section problem?

Mutual exclusion

Progress

Infinite waiting

Bounded waiting

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a process do when it enters a critical section using a lock?

It acquires exclusive access to a shared variable

It releases all resources

It pauses until the next process arrives


It waits for user input

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the TestAndSet mechanism, what happens if the lock is already set (locked)?

The process continues into the critical section


The process must wait until the lock is released

The process deletes the lock variable

The process resets the system

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between preemptive and non-preemptive kernels?

Preemptive kernels allow interruption during kernel mode; non-preemptive do not

Non-preemptive kernels are faster

Both allow multiple processes in kernel mode simultaneously

Non-preemptive kernels have race conditions

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?