Search Header Logo

W12 Mittwoch

Authored by Hansjörg Schraubenzieher

Computers

University

Used 1+ times

W12 Mittwoch
AI

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

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?