P2L2 - part 3

P2L2 - part 3

University

20 Qs

quiz-placeholder

Similar activities

Application Development Midterm Quiz

Application Development Midterm Quiz

University

15 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Round 1 ( RHA Learner Contest )

Round 1 ( RHA Learner Contest )

University

20 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Data Security Worksheet

Data Security Worksheet

10th Grade - University

15 Qs

WML & WAP

WML & WAP

University

20 Qs

ENGINEERING DATA ANALYSIS PRELIM

ENGINEERING DATA ANALYSIS PRELIM

University

15 Qs

HCI QUIZ #1 and #2

HCI QUIZ #1 and #2

University

15 Qs

P2L2 - part 3

P2L2 - part 3

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Blair Bass

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a common mistake when using mutex/condition variables?

Forgetting to lock or unlock a mutex

Using different mutexes to access a single resource

Signaling that reads can occur instead of signaling that writes can occur

Using signal instead of broadcast

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a spurious wake-up?

When a thread wakes up unnecessarily without being able to proceed

When a thread wakes up and proceeds as expected

When a thread wakes up and immediately goes back to sleep

When a thread wakes up and causes a deadlock

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a deadlock?

When two or more threads are waiting on each other to complete

When a thread wakes up unnecessarily without being able to proceed

When a thread wakes up and proceeds as expected

When a thread wakes up and immediately goes back to sleep

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the recommended solution to avoid deadlocks?

Unlock A before locking B

Get all locks up front and release them at the end

Maintain a lock order

Do nothing and hope the system never deadlocks

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between kernel level threads and user-level threads?

Kernel level threads are managed by the operating system, while user-level threads are managed by the user-level library

Kernel level threads are visible to the kernel, while user-level threads are not

Kernel level threads are more efficient than user-level threads

Kernel level threads can only be used for system-level services

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the one-to-one model of multithreading?

Each user level thread has a kernel level thread associated with it

All user level threads are mapped onto a single kernel level thread

Some user level threads have a one-to-many relationship with a kernel thread

Some user level threads have a many-to-one relationship with a kernel thread

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the many-to-one model of multithreading?

Each user level thread has a kernel level thread associated with it

All user level threads are mapped onto a single kernel level thread

Some user level threads have a one-to-many relationship with a kernel thread

Some user level threads have a many-to-one relationship with a kernel thread

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?