Address thread safety issues

synchronize

Use synchronization to resolve security issues

Locked before

locked

The results

There must be two numbers

But we don’t know which number comes first and which number comes last