
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
9 questions
Ch06-Synchronization Tools_part01

Quiz
•
University
9 questions
System Analysis and Design - Phase III. A - Introduction

Quiz
•
University
10 questions
Unit 24 - Java Basics

Quiz
•
University
10 questions
SE A-OS-Deadlock

Quiz
•
University
10 questions
Java Arrays

Quiz
•
University
11 questions
PGdP Nebenläufigkeit

Quiz
•
University
11 questions
OPESSYS: Module 3 Quiz Game

Quiz
•
University
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade