所有现代的CPU必须使用本地存储的缓存,将获取指令和数据的延迟降到最低。
All modern CPUs must utilize local memory cache to minimize latency of fetching instructions and data from memory.
由此造成的上下文切换相对于锁保护的少数几条指令来说,会造成相当大的延迟。
The resulting context switches can cause a significant delay relative to the few instructions protected by the lock.
在获取每条指令期间会出现某种延迟,可以通过预取指令并对其进行存储以用于后续的执行,从而避免延迟。
Fetching each instruction involves a certain latency that can be avoided by prefetching instructions and storing them for later execution.
应用推荐