Search Header Logo

Session 8a

Authored by Rafael Wampfler

Computers

University

Used 11+ times

Session 8a
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a memory location is not thread-local and not synchronized, it needs to be...

Mutable (can change content)

Immutable (can't change content)

There's no problem, we can do whatever we want

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Thread-local memory needs synchronization.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The compiler will never reorder memory accesses.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which instructions will and won't be reordered depends on the hardware.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

One of the main functions of the Java Memory Model is to...

improve the speed of memory accesses

increase the storage capacity of a computer

restrict allowable outcomes of programs

expand allowable outcomes of programs

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

If there is a cycle in our state space diagram...

We are using a while loop

There is a livelock

Our program always terminates

Our code suffers from starvation

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?

Discover more resources for Computers