
Session 7
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Rafael Wampfler
Used 74+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the "immutability" approach in terms of managing parallel programs?
Only using one thread
Not having data that changes
Different threads only access different data
Only using Atomics
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is mutual exclusion?
Different threads only access different data
Having all shared ressources as read only
Only one thread can access a shared ressource at a time
Not using both locks and synchronized blocks in the same programm
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a thread calls .lock() on a ReentrantLock it already has?
We get a runtime error
The program doesn't compile
It increments the count of the lock by 1 and moves on
The thread waits forever
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a thread locks the same Java ReentrantLock twice, you have to unlock twice as well.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is coarse-grained locking and what are its advantages?
Using one lock for many objects; Simpler to implement
Using one lock for each object; More simultaneous access possible
Using many locks for one object; Safer than just one lock
Using one lock for many objects; More simultaneous access possible
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You can't have bad interleavings on a machine with only one processor.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bad interleavings and Data Races are the same.
True
False
Similar Resources on Wayground
10 questions
Data Centers y Servicios de Virtualización
Quiz
•
University
10 questions
Cloud Computing Quiz
Quiz
•
University
11 questions
Day #03 | Quiz
Quiz
•
University
10 questions
PYTHON_CHAPTER 6
Quiz
•
University
10 questions
Digital Logic
Quiz
•
12th Grade - University
10 questions
Technology, IT and ICT
Quiz
•
5th Grade - University
10 questions
ECM3434 Business Analysis 1 - Business process modelling
Quiz
•
University
10 questions
Augmented Reality
Quiz
•
University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
10 questions
Identifying equations
Quiz
•
KG - University
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
HS2C2 AB QUIZIZZ
Quiz
•
1st Grade - Professio...
14 questions
Homonyms Quiz
Quiz
•
KG - University
16 questions
Parts of a Parabola
Quiz
•
8th Grade - University
10 questions
A Brief History of Geologic Time
Interactive video
•
11th Grade - University
15 questions
Black Friday/Cyber Monday
Quiz
•
9th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
