Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JoVmf2fWvcpoXndcDSwRf7
5 lines
218 B
Plaintext
5 lines
218 B
Plaintext
# Two threads call the same singleton; a latch forces the interleaving
|
|
|
|
UnsafeGreeter (state in a field) : alice's call returned "Hello, bob"
|
|
SafeGreeter (state in a local) : alice's call returned "Hello, alice"
|