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

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

    youdao

  • Also, each Home instance is cached once found, so that subsequent lookups will obtain it from the cache, and this cache access is protected with a synchronized block.

    而且一旦找到缓存的主机实例随后查找都可以缓存获取这种缓存访问受到同步块的保护。

    youdao

  • Then, one thread enters the synchronized block to initialize instance, while the other is blocked.

    然后线程进入synchronized初始化instance一个线程则阻断。

    youdao

  • Note that when the second thread enters the synchronized block, it does not check to see if instance is non-null.

    注意第二线程进入synchronized时,没有检查instance是否非null

    youdao

  • Note that when the second thread enters the synchronized block, it does not check to see if instance is non-null.

    注意第二线程进入synchronized时,没有检查instance是否非null

    youdao

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

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

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