• Do not include synchronized methods into a loop structure.

    不要将同步方法放到循环结构中。

    youdao

  • To reduce contention in the JVM and operating system, use synchronized methods only when feasible.

    为了减少JVM和操作系统中的争用,应该只在可行的情况下才使用同步方法。

    youdao

  • Beware that the way the generated proxy creates a Call object depends on whether you have chose to use synchronized methods or not.

    请注意,生成的代理创建Call对象的方法取决于您是否选择了使用同步方法。

    youdao

  • In this case, the object is a class called JLAsink that contains two synchronized methods, one for setting a piece of data and one for retrieving it.

    本例中,该对象就是一个名为JLAsink的类,该类包含两个同步的方法,一个用于设置数据块,一个用于检索该数据块。

    youdao

  • In this installment of the 5 things series, I introduce some of the subtler aspects of multithreaded programming with synchronized methods, volatile variables, and atomic classes.

    在这期的5件事系列中,我将通过同步方法、volatile变量和原子类介绍多线程编程的一些更隐晦的方面。

    youdao

  • As described below, the locks associated with Class objects are used in static synchronized methods.

    正如下所述,在静态同步方法中用的就是类对象的锁。

    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

  • 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

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

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

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