自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

LYRICS

My Life is filled with Vitality!

  • 博客(2)
  • 资源 (1)
  • 收藏
  • 关注

原创 内存一致模型——顺序一致模型

内存一致模型——顺序一致模型顺序一致模型,是最常见的内存一致模型,定义如下: 【如果一个多处理器系统是顺序一致的】,那么,无论程序怎么运行,结果都与各处理器各自轮流运行后的结果相同,且各处理器内部的执行顺序由程序决定。 从定义中, 可以得出,顺序一致模型有如下要求: - 保证单一处理器内部的执行顺序 - 保证多处理器操作同一块内存时的先后顺序如图所示:总线结构保证在相同时间内对指定内存块的访问

2016-12-21 18:01:53 913

原创 多线程——内存访问顺序 (序)

一直很好奇atomic是怎么实现的,最近查了一些资料,想开始记录一些东西。 首先开始的就是看源码了,找到的源码中有各种宏定义,看起来有些费力,不过看懂了一些之后,后面的宏就顺眼多了,不多说。 接下来,就找到了一些memory order的问题,之前没深究,总以为这可能是字节序吧,从字面上来看很相近,但是往深了看之后,发现,这不是字节序(byte order, endian)。这里的memory

2016-12-21 14:13:35 962

windows编程(第6版)

Petzold的经典著作 This book focuses exclusively on writing Metro style applications. Plenty of other books already exist for writing desktop applications, including the 5th edition of Programming Windows. For writing Metro style applications, a new object-oriented API has been introduced called the Windows Runtime or WinRT (not to be confused with the version of Windows 8 that runs on ARM processors, called Windows RT). Internally, the Windows Runtime is based on COM (Component Object Model) with interfaces exposed through metadata files with the extension .winmd located in the /Windows/System32/WinMetadata directory. From the application programmer’s perspective, the Windows Runtime resembles Silverlight, although internally it is not a managed API. For Silverlight programmers, perhaps the most immediate difference involves namespace names: the Silverlight namespaces beginning with System.Windows have been replaced with namespaces beginning with Windows.UI.Xaml.

2012-06-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除