Week 11
Quiz
•
Computers
•
University
•
Hard
Hansjörg Schraubenzieher
Used 9+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Consider this Reader/Writer Lock implementation. Select all that hold.
Prioritizes readers.
Prioritizes writers.
Would also work when replacing notifyAll() with notify().
2.
MULTIPLE SELECT QUESTION
3 mins • 1 pt
Fill in the blank for the while(......) condition in acquire_read(), s.t:
- the lock works correctly
- AS FAIR AS POSSIBLE (given the available variables)
- it's not completely inefficient
writers>0 || readers>0
writers>0 || writersWaiting>0
writers>0 || (writersWaiting>0 && writersWait<=0)
writers>0 || (writersWaiting>0 && writersWait>0)
writers>0 || writersWait<=0
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Fill in the blank for the while(.....) condition in acquire_write() method, s.t:
- the lock works correctly
- lock is AS FAIR AS POSSIBLE (given available variables)
writers>0 || readers>0
writers>0 || writersWait>0
writers>0 || readers>0 || readersWaiting>0
writers>0 || readers>0 || writersWait>0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Implementing the methods this way corresponds to:
optimistic locking
fine-grained locking
lazy locking
coarse-grained locking
5.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
This is the add() method of a concurrent linked list. What holds (multiple can be correct) given multiple threads can access add() concurrently?
No bad interleavings possible.
Bad interleavings possible.
Implementation uses fine-grained locking
Implementation uses coarse-grained locking.
6.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
This is the add() method of a concurrent linked list. What holds (multiple can be correct)?
No bad interleavings possible (correct implementation).
Bad interleavings possible (incorrect implementation).
Uses hand-over-hand locking.
Uses optimistic locking.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Fine-grained Locking (using hand-
over-hand locking) on a linked list re-
quires us to validate if a node is still
reachable before deleting it.
True
False
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
13 questions
8 - Организация работы в AutoCAD
Quiz
•
University
13 questions
JavaScript Variables
Quiz
•
3rd Grade - University
10 questions
Listen in Python
Quiz
•
University
10 questions
Arquitetura IPv6
Quiz
•
1st Grade - University
15 questions
Gli indirizzi IP
Quiz
•
9th Grade - Professio...
10 questions
MS Excel - Day 04
Quiz
•
University
14 questions
LA7.C7: Turtle Graphics
Quiz
•
9th Grade - University
10 questions
CompTIA Core 2 20221023
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
