Search Header Logo

OPERATING_SYSYTEMS2

Authored by Nithya shree

Computers

Professional Development

OPERATING_SYSYTEMS2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The two types of semaphores are-


Counting and decimal semaphore

Counting and binary semaphore

Counting and mutex

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The main purpose of thread synchronization is to:

Ensure that only one thread can access the resource at any given time

Make sure that threads run at the same speed

Prevent threads from executing

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Dining Philosophers Problem, deadlock can be avoided by:

Allowing only four philosophers to sit at the table at any time

Requiring philosophers to pick up both forks at the same time

Philosophers must request the waiter's permission to pick up forks

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


The Banker's algorithm is used for:

Detecting deadlocks

Preventing deadlocks

Memory allocation

Process scheduling

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A critical section is:

A section of code that can be executed by multiple threads simultaneously

A section of code that requires mutual exclusion in access

A section of memory allocated to the OS

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


In POSIX threads (pthreads), which function is used to initialize a mutex?

pthread_mutex_init

pthread_create

pthread_mutex_lock

pthread_join

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a Memory Management Unit (MMU) in a computer system?

To enhance the CPU speed

To manage disk storage

To translate virtual addresses to physical addresses

To monitor system performance

Access all questions and much more by creating a free account

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?