缓存一致性和竞争条件 [英] Cache Coherence and race condition

查看:61
本文介绍了缓存一致性和竞争条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,我们使用一致性协议在多处理器系统中应用缓存一致性.目的是两个客户端绝不能看到相同共享数据的不同值.那我们为什么要担心竞态条件呢?

As i understand we use coherence protocols to apply cache coherence in multiprocessor systems. The intention is that two clients must never see different values of the same shared data. Then why should we worry about race condition?

推荐答案

即使您不使用缓存,竞争条件也可能发生,因此拥有完全一致的缓存并不能消除担心它们的需要.

Race conditions can occur even if you don't use caches, so having perfectly coherent caches doesn't eliminate the need to worry about them.

这篇关于缓存一致性和竞争条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆