field is
static Printer getInstance()
call round: 0 / 3
shared static field
instance = null
๐ญ instances created0
๐ lock acquisitions0
๐ lockfree
Two threads, one instant
Press โถ Both call getInstance() โ T1 and T2 call it at the same moment.
โธ
Run each mode once. The scoreboard fills in and the winner becomes obvious: one instance, zero locks, still lazy.