Loading…
Loading…
Sixteen questions on Part 5 of the modern Java concurrency course: passing context, ThreadLocal's mutability, leaks and inheritance problems, the ScopedValue API, rebinding, and inheritance of bindings into StructuredTaskScope subtasks.
Review quiz for Part 5 (Scoped Values) of the modern Java concurrency course, articles 38 to 41: from Passing Context in Java: Parameter Pollution and Why Thread-Locals Were Used to Scoped Values With Structured Concurrency: Inheritance, Use Cases and Migrating From ThreadLocal.
ScopedValue questions were run on Java 25, where the API is final. Questions using StructuredTaskScope use the Java 27 preview API, which Java 28 makes final, and were checked against that API's behaviour. Aim for at least 12 out of 16 before moving on to Part 6.
Quiz path: step 5. Take the quizzes in this order, after reading each article.
Previous quiz: Structured Concurrency in Java (Java Concurrency Part 4 Review)
Next quiz: Reactive Java and Virtual Threads (Java Concurrency Part 6 Review)
16 questions · pass at 70%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.