• 因为根据设计线程安全的,创建之后可以把它存在一个公共静态最终变量中,或者包装实例模式以供以后访问

    Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.

    youdao

  • 我们没有定义任何引起线程安全问题变量

    We don't declare any variables that might cause thread-safety issues.

    youdao

  • 注意readdir不是线程安全的,因为返回结构存储函数中的一个静态变量

    Note that readdir is not thread-safe, because the returned structure is a static variable stored in the function library.

    youdao

  • 第一条件的限制使volatile变量不能用作线程安全计数器

    The first condition disqualifies volatile variables from being used as thread-safe counters.

    youdao

  • 线程安全程序中,只有线程能够修改这个变量而其他线程可以读取volatile声明变量最新

    In a thread-safe program, only one writing thread can modify the variable; other threads can read the up-to-date value by declaring the variable volatile.

    youdao

  • 静态局部变量指针不是线程安全的?

    Local static pointer variable is not thread safe?

    youdao

  • 不要使用不稳定变量锁定对象而不是保证决定性线程安全访问

    Do not use volatile variables. Lock your object or fields instead to guarantee deterministic and thread-safe Access.

    youdao

  • 所有全局变量线程安全的。如果允许一个以上线程访问全局变量,应该采用互斥之类机制

    If some objects can be accessed by more than one thread, make sure member variables are protected by synchronization mechanisms.

    youdao

  • 所有全局变量线程安全的。如果允许一个以上线程访问全局变量,应该采用互斥之类机制

    If some objects can be accessed by more than one thread, make sure member variables are protected by synchronization mechanisms.

    youdao

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

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

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