Effective Concurrency: Eliminate False Sharing

This month’s Effective Concurrency column, “Eliminate False Sharing”, is now live on DDJ’s website.

People keep writing asking me about my previous mentions of false sharing, even debating whether it’s really a problem. So this month I decided to treat it in depth, including:

A compelling and realistic example where just changing a couple of lines to remove [...]

OpenSolaris和Solaris的区别

[...]

VC2008关于_vsnprintf 的重定义问题

在使用VS2008打开一个2005的firebird工程,进行编译时,发生一个关于_vsnprintf 的错误

c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(358) : error C3163: “_vsnprintf”: 属性与以前的声明不一致
        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(350) : 参见“_vsnprintf”的声明

同样的_snprintf 也有类似问题.

是因为VC9 CRT重定义了该函数

解决的方法是:

#if _MSC_VER < 1500
#define snprintf _snprintf
#define [...]

You Know When Your UI Needs Help When…

Seen at a gas station:

You know your UI has usability issues when people tape multiple signs on your gas pump to help people get through the intricate and error-prone process of purchasing fuel.

Why does the upper note exist? The trouble is that there’s a Debit button but not a Credit button, and so since Credit [...]