
W12 Mittwoch
Authored by Hansjörg Schraubenzieher
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
OPTIMISTIC implementation of ADD() method. Are bad interleavings possible?
No, code is correct.
Yes, because curr and pred are being unlocked in wrong order.
Yes, because of an error in the code logic.
Yes, because pred.next is set before entry.next.
Yes, because list is traversed without locks.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are advantages of lazy vs. optimistic synchronization?
Lazy sync. requires no lock acquisitions.
add()/remove() require less lock acquisitions
add()/remove() require less list traversals
remove() is in O(1)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A stack with these push() and pop() operations is non-blocking.
True
False
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Wait-Free implies Starvation-Free
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Lock-Free implies starvation-free.
True
False
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Wait-Free implies Lock-Free
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Lock-free implies deadlock-free.
True
False
Access all questions and much more by creating a free account
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
Already have an account?