https://kodejava.org/how-do-i-create-a-thread-synchronized-block/
How do I create a thread synchronized block?