
Session 7

Quiz
•
Computers
•
University
•
Medium

Rafael Wampfler
Used 74+ times
FREE Resource
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
7 questions
Session 11

Quiz
•
University
10 questions
Network and its types

Quiz
•
University
10 questions
THREAD

Quiz
•
University
10 questions
OS(UNIT-I) QUIZ

Quiz
•
University
10 questions
Gr 2

Quiz
•
2nd Grade - University
5 questions
Quiz1

Quiz
•
University
10 questions
Physical Security

Quiz
•
1st Grade - University
10 questions
java quiz on Encapsulation and Abstraction

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University