Session 4

Session 4

University

4 Qs

quiz-placeholder

Similar activities

Woche 11

Woche 11

University

7 Qs

OS Lec 3

OS Lec 3

University

6 Qs

Data Modeling

Data Modeling

University

8 Qs

Internet and mobile programming 4

Internet and mobile programming 4

University

6 Qs

JAVA STAR LABS

JAVA STAR LABS

University

7 Qs

Threads

Threads

University

6 Qs

Thread class, Lifecycle

Thread class, Lifecycle

University

8 Qs

Threads

Threads

University

8 Qs

Session 4

Session 4

Assessment

Quiz

Computers

University

Medium

Created by

Rafael Wampfler

Used 26+ times

FREE Resource

4 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Notify always notifies the thread that...

has been waiting the longest time

has been waiting the shortest time

This is arbitrary/we don't know precisely

has the ID closest to the notifying thread (ascending order)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a thread leaves a synchronized block, waiting threads will be notified.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

No bad interleavings happen if multiple threads use this increment method (x will have the correct value in the end)

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a given pipeline, latency

Can increase as instances go through

Can decrease as instances go through

Can increase or decrease as instances go through

Always stays constant