Multiple threads of control can simultaneously try to push data to the queue or remove data, so you need a mutex object to manage the synchronization.
多个控制线程可以同时在队列中添加数据或删除数据,所以需要用互斥锁对象管理同步。
Multiple items processed by different threads might be processed using different policies.
可以使用不同的策略处理不同线程处理的多条目。
In multithreaded enviornments multiple threads access the same heap.
在多线程环境中,多个线程访问同一个堆。
Doing so allows for multiple threads to search the list concurrently.
这么做就允许多个线程同时搜索链表。
But what happens if multiple threads intend to append data to the queue?
但是,如果多个线程都试图把数据添加到队列中,会发生什么?
For better throughput, clients can submit redaction requests from multiple threads.
要实现更高的吞吐量,客户端可从多个线程提交编校请求。
When the files are closed, you make room for storage to be allocated for multiple threads.
在关闭文件后,您可以为将要分配给多个线程的存储腾出空间。
Specifically, thread safety is about properly coordinating access to mutable data that is accessed by multiple threads.
具体来说,线程安全是指适当地协调对被多个线程访问的可变数据的访问。
You will get better performance if you can use multiple threads at a time for injecting (or receiving) messages.
如果可以同时使用多个线程来注入(或接收)消息,您将获得更好的性能。
When analyzing a transaction trace, it is usually necessary to follow multiple threads, which adds some complexity to the trace analysis.
分析事务跟踪信息时,通常有必要分析多个线程,而这将增加跟踪分析的复杂性。
So the faster iteration makes up for the slower mutation and provides better concurrency because multiple threads can iterate the list simultaneously.
所以更快的迭代可以补偿较慢的变化过程,并提供更好的并发性,因为多个线程可以同时迭代列表。
In multithreaded applications, for example, if multiple threads access the same resource for reading and writing, thread synchronization problems can occur.
例如,在多线程应用程序中,如果多个线程访问相同的资源进行读写访问,则可能会出现线程同步问题。
Typically, the application server keeps a pool of endpoints, so the second option is likely to provide for greater reuse between multiple threads.
通常,应用服务器保持一个端点池,所以第二个选项或许是为了在多个线程之间提供更好的重用而提供的。
If the initialization is expensive, or the code is called simultaneously from multiple threads, the impact of this repeated creation may still be an issue.
如果初始化的代价高昂,或者从多个线程中同时调用该代码,则这一重复创建的影响仍然可能成为问题。
From the standpoint of multiple threads, it is entirely possible that two or more threads were simultaneously trying to push data into the stack.
从多个线程的角度来看,完全可能有两个或更多线程同时试图把数据压入堆栈。
Anytime you work with data that will be read or written by multiple threads, you must consider how to manage that data and coordinate changes.
任何时候要处理将由多个线程读写的数据时,您必须考虑如何管理该数据并协调更改。
The role of the join action is to synchronize multiple threads of parallel execution started by fork actions.
join动作的功能是要同步fork动作启动的多个并行执行的线程。
If a variable is declared as volatile, it means that it is expected to be modified by multiple threads.
如果一个变量被声明为volatile,这意味着它预计会由多个线程修改。
It purports to measure the performance costs of synchronization and ReentrantLock, techniques used to coordinate the action of multiple threads.
这个基准的目的是要度量同步和ReentrantLock的性能代价,它们是用于协调多个线程的行为的不同技术。
Developers must be aware that Struts will create a single instance of the Action and allow multiple threads to invoke execute .
开发人员必须清楚,Struts创建的是Action的单一实例,并允许多个线程调用它的execute 。
If method register is invoked simultaneously by multiple threads, it could result in a race condition leading to an incorrect _set value.
如果方法register同时由多个线程调用,那么它会产生一个竞争状态,导致出现错误的_ set值。
Now, we would have created a data race on the local variable sum, because multiple threads might want to update it simultaneously.
现在,我们在局部变量sum上创造了一场数据竞争,因为多个线程可能同时希望更新它。
When a MIDlet uses multiple threads to access a record store, it is the MIDlet's responsibility to coordinate this access; if it fails to do so, unintended consequences may result.
当MIDlet使用多个线程访问一个记录存储时,协调该访问是 MIDlet的责任;如果它不能这样做,可能出现无法意料的结果。
Thread of control: Tells if the operations in a transaction need to be serialized in the process, or if multiple threads in a process can participate in the transaction branch.
Threadofcontrol:告诉事务中的操作是否需要在流程中序列化,或者流程中的多个线程是否可以参与事务分支。
However, if I made that change and if I were using Scope from multiple threads, I might start to see NullReferenceExceptions thrown when attempting to construct new instances of Scope.
然而,如果进行上述更改并在多个线程中使用了Scope,则当我试图构造Scope的新实例时,我可能会开始看到抛出的NullReferenceException。
This means that while multiple processes and threads can read from the same database at the same time, only one is able to write.
这意味着当多个进程和线程可以在同一时间从同一数据库读取数据,但只有一个可以写入数据。
Output: Graphical view of threads, ability to load multiple thread dumps to show thread history.
输出:线程的图形视图、加载多个线程转储以显示线程历史记录的能力。
The POWER5 chip has two hardware instruction threads that are both capable of issuing multiple instructions per cycle, which causes a boost in performance.
POWER 5芯片有两个硬件指令线程,在每个周期都能够执行多个指令,这可以提高性能。
But today's computers typically have a large number of processes and threads running at the same time, and often have multiple processors executing different programs simultaneously.
但是,当今的计算机通常需要同时运行大量的进程和线程,经常还会有多个处理器确实在同时运行不同的程序。
The existence of multiple threads enables a process to break down work to be performed in parallel.
而多个线程的存在使得进程能够分解工作以便平行执行。
应用推荐