
Session 10

Quiz
•
Computers
•
University
•
Medium

Rafael Wampfler
Used 13+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why are locks not enough in some situations?
They can't always guarantee mutual exclusion.
They don't allow threads to communicate about changes in the state.
We can only use one lock at a time.
They are too boring.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A semaphore and a barrier are functionally the same.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do we prevent processes from "overtaking" other processes in a reusable barrier? (without breaking it)
By taking "if (count==n)" out of the mutex
This is not possible with just semaphores
By using a two-phase barrier
By using fewer than n processes
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A Java ReentrantLock has a monitor associated with it.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a thread state in Java?
TERMINATED
TIMED_WAIT
BLOCKED
LOCKED
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a thread is in the WAITING state and receives a notify, it goes into which state?
RUNNABLE
BLOCKED
RUNNING
READY
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Only one thread at a time can own an object's monitor (in Java).
True
False
Similar Resources on Wayground
12 questions
javaquizvivek

Quiz
•
University
10 questions
Tutorium1

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
10 questions
OOPJ #1

Quiz
•
University
5 questions
Java GUI Quiz

Quiz
•
University
10 questions
FST Class 2023- Quiz 1

Quiz
•
University
12 questions
HTML, JAVASCRIPT,XML

Quiz
•
University
10 questions
Computer Languages

Quiz
•
KG - 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