https://gptshubham595.medium.com/understanding-concurrency-with-synchronize-volatile-and-atomic-4cd6ec158af3