32/64位的原子性 [英] atomicity in 32/64 bit

查看:212
本文介绍了32/64位的原子性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题在于何时将64位加载/存储操作视为原子操作.

the question is about when does a 64bit load/store operations are considered to be atomic.

  • 如果我有64位处理器,但我使用的是32位OS.我会拥有64位原子性吗?
  • 如果我使用的是64位操作系统,但正在运行32位的应用程序(使用WoW64),我会拥有64位的原子性吗?

推荐答案

该应用程序必须在64位OS上并以本机64位模式运行,以毫无疑问地获得x64的优势.如果您在32位操作系统(带有32位应用程序)上以32位模式运行,则将获得32位原子性.如果您在64位CPU上的64位OS上运行64位模式,则将获得64位原子性.链中的所有组件(应用程序,操作系统,CPU)必须运行64位才能获得64位.

The application must be running on a 64bit OS and in native 64bit mode to gain the advantages of x64, unsurprisingly. If you're running in 32bit mode, either on a 32bit OS (with a 32bit app), you will get 32bit atomicity. If you're running 64bit mode on a 64bit OS on a 64bit CPU, you will get 64bit atomicity. All of the components in the chain (app, OS, CPU) must be running 64bit to get 64bit.

这篇关于32/64位的原子性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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