The physical processor takes care of synchronization issues between the two threads.
物理处理器将负责处理这两个线程之间的同步问题。
The problem is that the two threads interfered with each other, causing a wrong final answer.
问题在于,两个线程互相干扰,从而导致产生错误的最终答案。
The result is a race condition: it's a race between the two threads, and the outcome will be different based on who runs first.
它的结果是个竞争条件:这是两个线程之间的竞争,结果也会因谁先运行而不同。
However, having said all that, the same basic problem remains: Programmers still have to worry way too much about the issues of signaling and coordinating the two threads.
但是,已经说过,仍然存在相同的基本问题:程序员仍然需要过分担心两个线程之间的通信和协调问题。
The most significant difference in the two threads is the inspection required.
最大的不同是这两种螺纹的检查要求。
If the two threads appear, the expression was not evaluated because of a potential cross-thread dependency.
如果显示两条线,则是由于潜在的跨线程依赖项而未计算表达式。
The two threads running in parallel modify the elements num_proc1 and num_proc2 respectively, which are on different cache lines.
这两个并行运行的线程分别修改位于不同高速缓存线路上元素num_proc1和num_proc2。
The two threads running in parallel modify the elements num_proc1 and num_proc2 respectively, which are on different cache lines.
这两个并行运行的线程分别修改位于不同高速缓存线路上元素num_proc1和num_proc2。
应用推荐