For example, on a single-CPU system that supports hyperthreading, by default the database server permits two threads to run concurrently on one physical processor.
防止两个线程同时访问相同的资源。
Prevents two threads from accessing the same resource at the same time.
两个线程写同一个变量可以在代码中发现。
Two threads writing to the same variable can be tracked down at a code level.
与跳转相关的两个线程构成了Reddit的首页。
Two threads related to the jump made the front page of Reddit.
例如,考虑这样一个例子:两个线程尝试更新两个变量。
For instance, consider the case where two threads try to update two variables.
举个例子,假设两个线程的TID分别为123与456。
For example, suppose there are two threads with TLDs 123 and 456.
当两个线程/内核访问同一个数据时,不能停下来互相等待.
When two threads/cores access the same data they can't stop and wait for each other.
到目前为止,我们仅用到两个线程:主线程和一个子线程。
So far, we have been using only two threads: the main thread and one child thread..
Java中的死锁状态至少需要多于两个线程以及资源的时候才会产生。
Java deadlock situation arises with at least two threads and two or more resources.
如果两个线程同时在incr()中执行,则其中一个更新可能会丢失。
If two threads execute in incr() simultaneously, one of the updates could be lost.
类似的,我们看下面代码,两个线程只从同一个变量sp中读取内容.
Similarly, consider two threads just reading from the same variable sp.
举个例子来说,两个线程不能将信息同时发送给一台打印机。
For example, two processes can't simultaneously send information to a printer.
这里创建了两个线程并将用于第二个线程的变量名改为handle2和num2。
We make two threads and change the variable names used with the second thread to handle2 and num2.
就算仅仅只有两个线程同时执行这三个操作,也会存在很多可能的interleaving。
Even when we only consider three operations and two threads, there are still a lot of possible interleavings.
量)Parallelism(并行性)如果至少有两个线程正在同时执行,则会出现此情况。
Parallelism: A condition that arises when at least two threads are executing simultaneously.
注意:当RV以较高优先级运行时,仅涉及两个线程:显示线程和音频线程。
NOTE: When RV runs with higher priorities, this is referring to only two of its threads: the display thread and the audio thread..
图1说明了具有两个线程的线程池,其中有一个线程被阻止,正在等待外部资源。
Figure 1 illustrates a thread pool with twothreads, one of which is blocked waiting for an external resource.
English
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt