Synchronized block will execute all code at the same time.