What are the possible ways to make code thread-safe without using the synchronized keyword?
synchronized