Synchronized block performs 100x faster than Unsynchronized one

Like everyone, in the books and blogs, I have heard a lot about how expensive high context switches can be till I personally experienced it recently. The below part is again quite interesting because synchronized code performs must faster than the unsynchronized code (120 times…