• Synchronized method or synchronized block?

    同步方法同步代码

    youdao

  • This issue was addressed by tightening the scope of some synchronized method calls.

    这种问题是从缩小同步化访问调用范围来处理

    youdao

  • For example, suppose an object provides a synchronized method that often takes a long time to return.

    比如假如有一个同步方法通常需要时间才返回。

    youdao

  • You're doing all of the work in a synchronized method, which halts the main thread while it's running.

    正在所有工作一个同步方法停止主线程运行

    youdao

  • Methods that are not synchronized may still execute at any time, even if a synchronized method is in progress.

    如果一个同步方法正在执行,其他的同步方法可以任何时候执行。

    youdao

  • Synchronized methods and blocks allow a thread to lock an object on entry and unlock the object on exit (to the method or block).

    同步方法代码允许线程入口处锁定对象出口处解锁(针对方法代码)。

    youdao

  • One well-known source has cited that a synchronized method call is as much as 50 times slower than an unsynchronized method call.

    著名的资料来源曾经引证同步方法调用个非同步的方法调用50

    youdao

  • This main research content is synchronized method and control strategies for grid side converter in direct drive wind power.

    本文主要研究内容风力电网变流器同步方法控制策略

    youdao

  • 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.

    进入一个同步方法同步的时候必须获得该退出的时候(即使异常退出)必须释放这个锁。

    youdao

  • It is not effective to add a new static synchronized method in a subclass that attempts to protect static fields declared in a superclass.

    通过子类中增加一个静态同步方法试图保护类中的静态成员变量无效的。

    youdao

  • 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对象然后每个方法使用该对象。

    youdao

  • With the exception of enumerators, all regular expression classes are thread safe or can be converted into thread-safe objects by a synchronized method.

    枚举数之外所有正则表达式都是线程安全或者可以通过同步方法转换线程安全对象

    youdao

  • 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同步方法调用相对于一个非同步的方法调用的损失

    youdao

  • 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.

    即使程序包括一个单一处理器上运行线程,一个同步方法调用同步的方法调用

    youdao

  • 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.

    线程调用一个同步方法自动请求此方法的内部方法返回释放

    youdao

  • 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方法仍然性能损失

    youdao

  • 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操作(也是一个同步方法所以阅读器线程在继续处理之前必须得到监视器)。

    youdao

  • 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所需运行时间,我调用了同步同步版本比较了结果。

    youdao

  • Thus, you cannot use the form GET method if you want your content to be synchronized properly.

    因此如果内容适当地同步,那么便无法使用表单GET方法

    youdao

  • 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我们多长时间才调用一次空方法呢?

    youdao

  • Creating the synchronized block yielded 16 lines of bytecode, whereas synchronizing the method returned just 5.

    创建同步代码产生16行的字节码创建同步方法产生了5行。

    youdao

  • 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中声明任务方法一个查询表结合早期用于消除同步需求查询声明方法

    youdao

  • 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副本进行同步方法

    youdao

  • What is the overhead of an "synchronized" async method?

    一个同步异步方法开销多少?

    youdao

  • If one thread invokes this method frequently, other threads that also need frequent synchronized access to the same object will often be blocked.

    如果一个线程频繁调用这个方法其他线程需要频繁同步访问同一个对象,这造成阻塞

    youdao

  • 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需要该方法每一次调用付出同步代价即使只有第一次调用需要同步。

    youdao

  • Even if there are other statements between the synchronized blocks or method calls, the compiler can still perform lock coarsening.

    即使synchronized方法调用之间其他语句编译仍然能够执行粗化

    youdao

  • Thread 1 exits the synchronized block and returns instance from the getInstance() method.

    线程1退出synchronizedgetInstance()方法返回实例

    youdao

  • Thread 1 exits the synchronized block and returns instance from the getInstance() method.

    线程1退出synchronizedgetInstance()方法返回实例

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定