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

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

    youdao

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

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

    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

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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • A novel fault locating method for transmission network using synchronized voltage phasor is presented.

    提出一种利用同步电压相量进行输电网络故障定位的新方法。

    youdao

  • Based on the Global Positioning system (GPS) technology, this paper Presents a method of synchronized phasor measurement in Power systems.

    利用全球定位系统(GPS)技术可方便地实现电力系统的同步相量测量。

    youdao

  • To achieve inner-linked transmission chains in machine tools with electronic method instead of mechanical one, a novel computer-softwared synchronized electronic gearbox with zero SSE is presented.

    针对机床内联传动链的数控实现问题,提出一种以软件方式实现的无静差同步电子齿轮箱。

    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 a method only operates on independently synchronized objects, local variables, or non-volatile data members, such as those initialized during construction, then synchronization is not required.

    若方法只操作专属的对象、本地变量或无冲突的数据成员(如只在构造时期初始化的数据),那么同步就是不需要的。

    youdao

  • This paper offers a new method for strain-gage measurements in which a synchronized electrical pulse is used.

    本文提出了对电阻应变片采用脉冲加电来测量静态应变的方案。

    youdao

  • This method also specifies whether the synchronization domain for the context (if in a synchronized context) is exited before the wait and reacquired afterward.

    此方法还指定是否在等待之前退出上下文的同步域(如果处于同步上下文中的话)然后重新获取该同步域。

    youdao

  • This method also specifies whether the synchronization domain for the context (if in a synchronized context) is exited before the wait and reacquired afterward.

    此方法还指定是否在等待之前退出上下文的同步域(如果处于同步上下文中的话)然后重新获取该同步域。

    youdao

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

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

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