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.
在多线程环境中,多个线程访问同一个堆。
Network delays are another reason to break things up into multiple threads.
网络延迟是将工作分解为多个线程另一个原因。
As mentioned earlier, you will need to follow multiple threads in the trace.
正如前面提到的,您将需要分析跟踪信息中的多个线程。
Doing so allows for multiple threads to search the list concurrently.
这么做就允许多个线程同时搜索链表。
In this way, you can have code on three machines running against multiple threads.
通过这种方式,您可以让代码在三台机器上针对多个线程运行。
But what happens if multiple threads intend to append data to the queue?
但是,如果多个线程都试图把数据添加到队列中,会发生什么?
In the next section, I expand on this test case and implement multiple threads.
在下一节中,我将详述这个测验用例并实现多个线程。
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.
在关闭文件后,您可以为将要分配给多个线程的存储腾出空间。
Those instances of a particular program can exist in multiple threads within a given process.
这些特定程序的实例可以存在于给定进程的多个线程中。
Figure 4 shows how multiple threads within a single CSLD task can be set up.
图4显示了如何在一个CSLD任务中设置多个线程。
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:告诉事务中的操作是否需要在流程中序列化,或者流程中的多个线程是否可以参与事务分支。
应用推荐