This afternoon, a colleague wrote a smart test and found that ReentrantLock is more than twice as fast as synchronized (more than 500 threads performing 60,000 iterations), degrades more slowly and has less GC impact.
In both 1.6 and 1.7 jvms. (In 1.5, synchronized performed much worse)
Sync seems to be great for areas of low competition, but Lock is removing its doors for higher usage.
marathon
source share