• It's thread-safe and has a smaller footprint.

    它线程安全,而且更节省资源。

    youdao

  • Using a thread-safe wrapper for the data repository.

    为数据存储库使用线程安全的包装器。

    youdao

  • Listing 1 shows a non-thread-safe number range class.

    清单1显示了一个非线程安全的数值范围类。

    youdao

  • Additionally, the Andoid UI toolkit is not thread-safe.

    此外,Andoid的UI组件包并不是线程安全的。

    youdao

  • Listing 3 shows you how to use this thread-safe version.

    清单3说明如何使用此线程安全版本。

    youdao

  • One advantage of immutable classes is that they are thread-safe.

    (不可变类的一个优点就是它们是线程安全的)。

    youdao

  • IBinder methods must, therefore, be implemented to be thread-safe.

    因此ibinder方法必须实现为线程安全的。

    youdao

  • Objects that you put on the session should be thread-safe and serializable.

    放到会话中的对象应该是线程安全的和可序列化的。

    youdao

  • Any read-only tree operation is thread-safe as long as there isn't any thread modifying it.

    所有只读的树操作都是线程安全的,只要没有线程修改它。

    youdao

  • Batch application developers write code that is thread-safe and executes on a single thread.

    批处理应用程序开发人员可以编写线程安全的、且在单个线程中执行的代码。

    youdao

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

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

    youdao

  • Swing components must be accessed in the EDT, unless you call methods documented as thread-safe.

    Swing组件必须在EDT中进行访问,除非您调用文档化为线程安全的方法。

    youdao

  • Under the new memory model, this "fix" to double-checked locking renders the idiom thread-safe.

    在新的内存模型中,对双重检查锁定的这个“修复”使 idiom 线程安全。

    youdao

  • The DataMapRepository class presented previously and its base class LinkedHashMap are not thread-safe.

    之前介绍过的datamaprepository类及其基类LinkedHashMap都不是线程安全的。

    youdao

  • Consider a thread-safe container class - a data structure that guarantees thread safety to its clients.

    可以考虑使用一个线程安全容器类—一个保证用户操作线程安全的数据结构。

    youdao

  • They all output the same value illustrating that this is a thread-safe generic way to create singletons.

    所有线程都返回相同的值,这说明这是一个线程安全的使用泛型来实现的单态模式。

    youdao

  • It may be easier to manage the use of a non-thread-safe class than to try and make the class thread-safe.

    管理非线程安全类的使用比试图使类成为线程安全的要更容易些。

    youdao

  • In this article, you'll learn how to build a thread-safe data repository for keeping auto-saved form data.

    在本文中,您将学习如何构建线程安全的数据存储库来自动保存表单数据。

    youdao

  • Any access to the data repository is made through a thread-safe wrapper class named RepositoryWrapper.

    对数据存储库的所有访问都是通过一个名为RepositoryWrapper的线程安全类实现的。

    youdao

  • In its simplest mode it ACTS as a thread-safe queue in which consumers are blocked while the queue is empty.

    它最简单的使用模式便是作为一个线程安全的队列,并且在队列为空时阻塞消费者。

    youdao

  • While the JLS gives us tools with which we can make our programs thread-safe, thread-safety does not come free.

    虽然JLS给了我们可以使我们的程序线程安全的工具,但线程安全也不是天上掉下来的馅饼。

    youdao

  • Concurrent Collections make concurrent programming easier by providing thread-safe, well-tuned data structures.

    并发Collections提供了线程安全、经过良好调优的数据结构,简化了并发编程。

    youdao

  • There is no straightforward way to make the code in Listing 1 thread-safe, making this idiom an accident waiting to happen.

    没有直观的途径来使清单1中的代码是线程安全的,这使这种语言风格成为了一种等待时机发生的事故。

    youdao

  • There is no straightforward way to make the code in Listing 1 thread-safe, making this idiom an accident waiting to happen.

    没有什么简单的办法可用来把清单1中的代码变成线程安全的,这使得这一惯用技法变成了一个在等待时机发生的事故。

    youdao

  • You may have occasionally pondered whether to synchronize an entire method call or only the thread-safe subset of that method.

    您可能偶尔会思考是否要同步化这个方法调用,还是只同步化该方法的线程安全子集。

    youdao

  • Sometimes, it is very difficult to make a class thread-safe without compromising its functionality, ease of use, or performance.

    有时,要在不影响类的功能、易用性或性能的情况下使类成为线程安全的是很困难的。

    youdao

  • Because these methods might be called from any number of threads at the same time, they too must be implemented to be thread-safe.

    因为这些方法可能会从很多线程同时调用,它们也必须实现为线程安全的。

    youdao

  • Many people are betting on functional programming, with its emphasis on immutable objects and their inherently thread-safe properties.

    很多人现在都投身于函数式编程的世界,由于它们具有不可变的对象,以及与生俱来的线程安全属性。

    youdao

  • In some situations, the methods you implement might be called from more than one thread, and therefore must be written to be thread-safe.

    在某些场合,方法可能会从不止一个线程中被调用,因此这些方法必须是写成线程安全的。

    youdao

  • In some situations, the methods you implement might be called from more than one thread, and therefore must be written to be thread-safe.

    在某些场合,方法可能会从不止一个线程中被调用,因此这些方法必须是写成线程安全的。

    youdao

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

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

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