Question 1 of 20
JavaScript Shared Memory — Quiz
Check your understanding of SharedArrayBuffer, Atomics, atomic operations, and shared-memory coordination.
Knowledge check
JavaScript Shared Memory — Quiz
Check your understanding of SharedArrayBuffer, Atomics, atomic operations, and shared-memory coordination.
- Skip a hard question and review it before your results.
- Questions and answer options can shuffle between attempts.
You can retake this quiz whenever you like.
Question 2 of 20
What can a TypedArray do with a SharedArrayBuffer?
Question 3 of 20
What does Atomics.add return?
Question 4 of 20
Why use Atomics.exchange?
Question 5 of 20
What does compareExchange test?
Question 6 of 20
What is Atomics.load for?
Question 7 of 20
What does an Atomics bitwise operation change?
Question 8 of 20
What does Atomics.sub return?
Question 9 of 20
What does Atomics.isLockFree report?
Question 10 of 20
What can Atomics.wait do?
Question 11 of 20
What does Atomics.notify do?
Question 12 of 20
Which views are intended for Atomics operations?
Question 13 of 20
What is growable SharedArrayBuffer?
Question 14 of 20
Can a SharedArrayBuffer become detached?
Question 15 of 20
Why use Atomics for a shared counter?
Question 16 of 20
Why is the return value of Atomics.sub useful?
Question 17 of 20
What is Atomics.pause intended to do?
Question 18 of 20
What does Atomics.pause return?
Question 19 of 20
Why should a lesson feature-detect Atomics.pause?
Question 20 of 20
Which statement is correct about Atomics.pause versus Atomics.wait?
Quiz results
Review
-
What makes SharedArrayBuffer different from ArrayBuffer?Hint used
-
What can a TypedArray do with a SharedArrayBuffer?Hint used
-
What does Atomics.add return?Hint used
-
Why use Atomics.exchange?Hint used
-
What does compareExchange test?Hint used
-
What is Atomics.load for?Hint used
-
What does an Atomics bitwise operation change?Hint used
-
What does Atomics.sub return?Hint used
-
What does Atomics.isLockFree report?Hint used
-
What can Atomics.wait do?Hint used
-
What does Atomics.notify do?Hint used
-
Which views are intended for Atomics operations?Hint used
-
What is growable SharedArrayBuffer?Hint used
-
Can a SharedArrayBuffer become detached?Hint used
-
Why use Atomics for a shared counter?Hint used
-
Why is the return value of Atomics.sub useful?Hint used
-
What is Atomics.pause intended to do?Hint used
-
What does Atomics.pause return?Hint used
-
Why should a lesson feature-detect Atomics.pause?Hint used
-
Which statement is correct about Atomics.pause versus Atomics.wait?Hint used