
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
Q2 - Python
Quiz
•
University
10 questions
Day 10 - Networking & Security I - 1st Review of Day 9
Quiz
•
University
10 questions
Kuiz Microsoft Access
Quiz
•
University
10 questions
WORD ĐỀ 6
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
10 questions
Cybersecurity Fundamentals Week 2 Quiz
Quiz
•
KG - University
12 questions
R variable Data Type and Flow Control Quiz
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
