Thread-safe state on
JVM
AtomicRef ThreadLocal
Every thread has its own local copy
of the state which is not visible to
the others
Shared state safely updated by many
threads using optimistic concurrency (CAS)
Slide 4
Slide 4 text
Context propagation
on JVM
ThreadLocal
InheritableThreadLocal
DynamicVariable
Slide 5
Slide 5 text
No content
Slide 6
Slide 6 text
No content
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
No content
Slide 10
Slide 10 text
Scope
Lexical Dynamic
Depends on location in source
code
Depends on method call
graph