The array element access (unsynchronized) code has already been presented in Listing 2.
数组元素访问(不同步)代码已经在清单2中给出。
The purpose of using the unsynchronized StringBuilder was to provide a baseline measurement of performance.
之所以使用非同步的StringBuilder,是为了提供一个测量性能的基线。
This type of infinite loops can sometimes occur due to multithreaded access into a Shared unsynchronized data structure.
这种类型的无限循环有时是由于多线程访问共享的不同步的数据结构造成的。
One well-known source has cited that a synchronized method call is as much as 50 times slower than an unsynchronized method call.
一个著名的资料来源就曾经引证说一个同步的方法调用比一个非同步的方法调用慢50倍。
Synchronized means that all projects must propagate on the same intervals; unsynchronized means that projects choose their own timing.
同步化意味着所有的项目必须按照相同的间隔进行传播;不同步化意味着项目可以选择它们自己的计时方式。
The search index can become unsynchronized with the database after a recovery if transaction log files are played into the recovered database.
恢复后,如果将事务日志文件播放到恢复的数据库,搜索索引可能变得与数据库不同步。
A synchronized call to an empty method may be 20 times slower than an unsynchronized call to an empty method, but how often do we call empty methods?
对一个空方法的同步调用可能要比对一个空方法的非同步调用慢20倍,但我们多长时间才调用一次空方法呢?
The data in the table is the ratio of run time of the synchronized version to the unsynchronized version; it shows the performance penalty of synchronization.
表格中的数据是同步版本的运行时间相对于非同步版本的运行时间的比率;它显示了同步的性能损失。
Even when a program contains only a single thread running on a single processor, a synchronized method call is still slower than an unsynchronized method call.
即使一个程序只包括一个在单一处理器上运行的单线程,一个同步的方法调用仍要比非同步的方法调用慢。
In part one of this article we used a single threaded benchmark to compare the performance of the synchronized StringBuffer to the unsynchronized StringBuilder.
在本文的第一部分中,我们通过一个单一线程的基准,比较了同步的StringBuffer和非同步的StringBuilder之间的性能。
If you're using the same trace system for all your components, you'll be left to tie together multiple outputs from systems with potentially unsynchronized internal clocks.
如果对所有组件使用相同的跟踪系统,您将被迫协调系统的多个输出,从而可能面临内部时钟不同步的风险。
The difference between the behavior of the fork and the inclusive decision lies in the number of unsynchronized cycles that are triggered when the fork and the inclusive decision execute.
fork和inclusivedecision之间的行为差异在于,在执行fork和inclusive decision时所触发的未同步循环的数目不同。
In each case, I ran a simple program that measured the run time of a loop calling a method 10,000,000 times, calling both a synchronized and an unsynchronized version, and compared the results.
在每一个实例下,我运行一个简单的程序,测定循环调用一个方法10,000,000次所需的运行时间,我调用了同步和非同步两个版本,并比较了结果。
In each case, I ran a simple program that measured the run time of a loop calling a method 10,000,000 times, calling both a synchronized and an unsynchronized version, and compared the results.
在每一个实例下,我运行一个简单的程序,测定循环调用一个方法10,000,000次所需的运行时间,我调用了同步和非同步两个版本,并比较了结果。
应用推荐