synchronized methods meaning in English
同步方法:同步方法是指明某个方法在某个时刻只能由一个线程访问。
Examples
- Synchronized method , which provides a synchronized wrapper around the underlying collection
方法,该方法对基础集合提供同步的包装。 - Threads that make blocking calls in a synchronized method often make such tasks impossible
造成阻塞调用的线程常常会令同步任务失败。 - Decomposing a synchronized method into such hybrid code can greatly improve the performance
将同步方法分解为这种混合代码可以明显改善性能。 - One thing you might have noticed about the previous examples is all of the synchronized methods
从前面的例子中也许你已经意识到了一件事,就是所有修改的同步化。 - To reduce contention in the jvm and operating system , use synchronized methods only when feasible
为了减少jvm和操作系统中的争用,应该只在可行的情况下才使用同步方法。