This issue was addressed by tightening the scope of some synchronized method calls.
这种问题是从缩小同步化访问调用的范围来处理的。
For example, suppose an object provides a synchronized method that often takes a long time to return.
比如,假如有一个同步方法通常需要很长时间才返回。
You're doing all of the work in a synchronized method, which halts the main thread while it's running.
你正在做的所有的工作在一个同步的方法,停止了主线程的运行。
Methods that are not synchronized may still execute at any time, even if a synchronized method is in progress.
如果一个同步方法正在执行中,其他的非同步方法也可以在任何时候执行。
Synchronized methods and blocks allow a thread to lock an object on entry and unlock the object on exit (to the method or block).
同步的方法和代码块允许线程在入口处锁定对象并在出口处解锁(针对方法或代码块)。
One well-known source has cited that a synchronized method call is as much as 50 times slower than an unsynchronized method call.
一个著名的资料来源就曾经引证说一个同步的方法调用比一个非同步的方法调用慢50倍。
This main research content is synchronized method and control strategies for grid side converter in direct drive wind power.
本文主要研究内容是直驱风力发电网侧变流器的同步方法与控制策略。
A lock is acquired on entry to a synchronized method or block, and released on exit, even if the exit occurs due to an exception.
当进入一个同步方法或同步块的时候必须获得该锁,而退出的时候(即使是异常退出)必须释放这个锁。
It is not effective to add a new static synchronized method in a subclass that attempts to protect static fields declared in a superclass.
通过在子类中增加一个静态同步方法来试图保护父类中的静态成员变量是无效的。
If you chose to use synchronized methods (the default), the proxy creates a single call object upon instatiation, then uses it for every method.
如果您选择了使用同步方法(缺省值),代理将根据实例化创建一个单独的call对象,然后为每个方法使用该对象。
With the exception of enumerators, all regular expression classes are thread safe or can be converted into thread-safe objects by a synchronized method.
除枚举数之外,所有正则表达式类都是线程安全的或者可以通过同步方法转换成线程安全对象。
It compares the cost of a synchronized method call to an equivalent unsynchronized one in several different cases and on several different platforms and JVMs.
它列举了一些不同的实例,不同的平台和不同的jvm下一个同步的方法调用相对于一个非同步的方法调用的损失。
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.
即使一个程序只包括一个在单一处理器上运行的单线程,一个同步的方法调用仍要比非同步的方法调用慢。
When a thread invokes a synchronized method, it automatically acquires the intrinsic lock for that method's object and releases it when the method returns.
当一个线程调用一个同步方法时,它自动请求此方法的内部锁,并在方法返回时释放。
As more advanced JVMs have emerged, the cost of synchronization has decreased, but there is still a performance penalty for entering and leaving a synchronized method or block.
随着更高级的JVM的出现,同步的代价降低了,但出入synchronized方法或块仍然有性能损失。
At a later point in time, the reader thread invokes the read operation on the channel (this is also a synchronized method, so the reader thread must acquire the monitor lock before proceeding).
稍后,阅读器线程调用通道上的read操作(这也是一个同步的方法,所以阅读器线程在继续处理之前必须得到监视器锁)。
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次所需的运行时间,我调用了同步和非同步两个版本,并比较了结果。
Thus, you cannot use the form GET method if you want your content to be synchronized properly.
因此,如果想要内容被适当地同步,那么便无法使用表单GET方法。
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倍,但我们多长时间才调用一次空方法呢?
Creating the synchronized block yielded 16 lines of bytecode, whereas synchronizing the method returned just 5.
创建同步代码块产生了16行的字节码,而创建同步方法仅产生了5行。
In WebSphere Process Server V7, the method to claim a task USES a query table and combines the query and claim methods previously used to eliminate the need for the synchronized block.
在WebSphereProcessServerv 7中,声明任务的方法是用一个查询表,并结合早期用于消除同步块需求的查询和声明方法。
Configuration of a WSRR Subscription object also specifies the method to use to ensure that the local copy of the resource is periodically synchronized with the Service Registry copy.
WSRRSubscription对象的配置还指定了用于确保定期将资源的本地副本与ServiceRegistry副本进行同步的方法。
If one thread invokes this method frequently, other threads that also need frequent synchronized access to the same object will often be blocked.
如果一个线程频繁调用这个方法,其他的线程也需要频繁的同步访问同一个对象,这就会造成阻塞。
However, because the method is synchronized, you pay the cost of synchronization for every invocation of the method, even though it is only required on the first invocation.
尽管如此,由于该方法是synchronized的,需要为该方法的每一次调用付出同步的代价,即使只有第一次调用需要同步。
Even if there are other statements between the synchronized blocks or method calls, the compiler can still perform lock coarsening.
即使在synchronized块或方法调用之间有其他语句,编译器仍然能够执行锁粗化。
Thread 1 exits the synchronized block and returns instance from the getInstance() method.
线程1退出synchronized块并从getInstance()方法返回实例。
An on line calculation method of transmission line parameters using synchronized phasor measurement is proposed.
提出一种基于同步相量测量的输电线路参数在线求解方法。
This method can satisfy demand of larger user size for approximately synchronized CDMA (AS-CDMA) system.
这种方法能满足近似同步cd MA (AS -CDMA)系统对大用户量的需求。
This method can satisfy demand of larger user size for approximately synchronized CDMA (AS-CDMA) system.
这种方法能满足近似同步cd MA (AS -CDMA)系统对大用户量的需求。
应用推荐