Session 6

Session 6

Assessment

Flashcard

Computers

University

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

7 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the equivalent to .start() in the ForkJoin framework?

Back

.fork()

2.

FLASHCARD QUESTION

Front

The costs of a task graph are on the edges.

Back

False

3.

FLASHCARD QUESTION

Front

What is "Span" in the context of runtime?

Back

The longest dependence-chain

4.

FLASHCARD QUESTION

Front

Perfect linear speed-up means...

Back

Doubling processors halves running time

5.

FLASHCARD QUESTION

Front

What is the difference between a RecursiveTask and a RecursiveAction?

Back

RecursiveTask returns a value, RecursiveAction doesn't

6.

FLASHCARD QUESTION

Front

What is the equivalent to starting the first thread/first run call in the ForkJoin framework? Options: Create a ForkJoinPool and call invoke, .fork() the first Task, Create a ExecutorService and call .invoke on the first task, Create ForkJoinPool(first Task) and call .start()

Back

Create a ForkJoinPool and call invoke

7.

FLASHCARD QUESTION

Front

What is the difference between .fork() and invoke()?

Back

invoke waits for the result, fork doesn't