Locks In Synchronized Methods 同步方法中的锁
Do not include synchronized methods into a loop structure.
不要将同步方法放到循环结构中。
To reduce contention in the JVM and operating system, use synchronized methods only when feasible.
为了减少JVM和操作系统中的争用,应该只在可行的情况下才使用同步方法。
Beware that the way the generated proxy creates a Call object depends on whether you have chose to use synchronized methods or not.
请注意,生成的代理创建Call对象的方法取决于您是否选择了使用同步方法。
应用推荐