
P2L2 - part 3

Quiz
•
Computers
•
University
•
Medium

Blair Bass
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Operating System Process Management

Quiz
•
University
20 questions
Threading in Operating Systems Quiz

Quiz
•
University
25 questions
Technical quiz(Medium-Level)

Quiz
•
University
15 questions
UTS Sistem Operasi

Quiz
•
University
16 questions
OPERATING SYSTEM (All 4 modules)

Quiz
•
University
18 questions
week 1 course 1

Quiz
•
University
20 questions
OS quiz

Quiz
•
University
15 questions
MultiThreading Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University