• 应该记得,在方法调用之间保留状态静态默认情况下应该线程安全的。

    You should also remember that static classes that preserve state between method calls should be made thread safe by default.

    youdao

  • 因为传递的xsl中预编译转换指令,所以传递其他方法甚至线程安全

    Because it precompiles the transformation instruction from the XSL it's handed, it is safe for handing off to other methods and even threads.

    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

  • TPL拥有一套从前线程线程具备的功能例如任务拥有一个安全Cancel方法

    The TPL also has a new set of features not seen in either threads or thread pools. For example, Tasks have a safe Cancel method.

    youdao

  • 调用EJBservlet方法容器会保留线程相关联上下文当前事务安全principal

    When EJB and servlet methods are invoked, the container keeps context, such as the current transaction and security principal, associated with the thread.

    youdao

  • 注意所有方法甚至需要同步get(),使成为线程安全类,从而确保没有任何更新信息丢失,所有线程看到计数器最新

    Note that all the methods, even get(), need to be synchronized for the class to be thread-safe, to ensure that no updates are lost, and that all threads see the most recent value of the counter.

    youdao

  • 安全方法所有线程使用一个优先级,不使用Thread .yield消耗整个CPU(因为它们不会被阻塞)的其他类型自旋循环

    The safest approach is to make all threads use a single priority value and eliminate the use of Thread.yield and other kinds of spin loops that will fully consume a CPU because they never block.

    youdao

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

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

    youdao

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

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

    youdao

  • CipherService多数开发者保护数据时梦寐以求的东西:简单无状态线程安全API能够一次方法调用对整个数据进行加密解密

    A CipherService is what most developers want when securing data: a simple, stateless, thread-safe API that can encrypt or decrypt data in its entirety in one method call.

    youdao

  • 清单9 中的整个方法完全线程安全的,因为列表处理中使用的整个中间状态保存参数的堆栈上。

    The entire method in Listing 9 is completely thread-safe.

    youdao

  • 有些保留方法调用一个方法调用的状态信息实践使这样的类成为线程安全困难的。

    Some classes retain state information from one method invocation to the next, and it is difficult to make such classes thread-safe in any practical way.

    youdao

  • 方法线程是否安全

    Is this method thread safe?

    youdao

  • 可能偶尔会思考是否同步化这个方法调用还是同步化方法线程安全子集

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

    youdao

  • 一旦实现方法调用之间保持状态重要该类使用者就会希望了解有关线程安全性能详细信息

    As soon as you implement a nontrivial class maintaining state between method calls, consumers of the class will want to know details about thread safety and performance.

    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

  • 并行vm上,会调用一个线程安全方法(使用c编写)。首先,VM请求GVL,然后处理这个方法,接着释放GVL。

    On my parallel VM, a non-thread safe method (written in c) is invoked, at first, VM acquires GVL, and process such a method, and releases GVL.

    youdao

  • 清单5中的LockPoolMap展示了线程安全getput方法同步分散在了充分降低用可能性。

    The LockPoolMap in Listing 5 exposes thread-safe get and put methods, but spreads the synchronization over a pool of locks, reducing contention substantially.

    youdao

  • 为了确保实现线程安全的,实现接口应该方法使用synchronized关键字或者方法内部使用同步锁。

    To ensure that your implementation is thread-safe, a class that implements this interface should use either the synchronized keyword on the methods or synchronized blocks within the methods.

    youdao

  • Authorized Callsbean(清单13)提供了一些线程安全方法用于管理这个经过授权调用集合

    The AuthorizedCalls bean (shown in Listing 13) provides thread-safe methods for managing the set of authorized calls.

    youdao

  • 这个方法线程安全的。

    This method is thread safe.

    youdao

  • 使用这个方法可以安全递增递减交换比较任何线程中的

    The methods of this class let you safely increment, decrement, exchange, and compare values from any thread.

    youdao

  • 实例方法相比静态方法或多或少拥有更高的线程安全

    Static class methods may support a different level of thread safety than those associated with an instance of that class.

    youdao

  • 如果这个方法使用外部东西不是线程安全然后并行线程安全的或不使用

    If this method USES something external that's not thread safe then either make it thread safe or don't use parallel.

    youdao

  • 安全方法就是引入机制(例如一个公共属性)来向目标线程发出信号目标线程请求中断

    The safest is to introduce a mechanism, such as a common property, that signals the target thread to request an interrupt.

    youdao

  • 与多线程执行这些线程怎么安全方法什么?

    How it relates to multiple threads of execution and how those threads are not safe to be called from the main method?

    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

  • 枚举数之外所有正则表达式都是线程安全或者可以通过同步方法转换线程安全对象

    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

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

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

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