川A49567死就无路去,倒过来念也好不了多少。记得前两年有次武汉一公交司机猝死,公交线路是548。呵呵,纯属搞笑,另外对公交车超载严重表示抗议,对公交司机劳动强度过大表示密切关注。
|
||||||
|
川A49567死就无路去,倒过来念也好不了多少。记得前两年有次武汉一公交司机猝死,公交线路是548。呵呵,纯属搞笑,另外对公交车超载严重表示抗议,对公交司机劳动强度过大表示密切关注。 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:
From the article:
I hope you enjoy it. Finally, here are links to previous Effective Concurrency columns:
Posted in C# / .NET, C++, Concurrency, Hardware, Software Development 简单说,所谓OpenSolaris是一个Sun的开源项目,而Solaris是Sun公司的基于OpenSolaris推出的一个自己的产品。 Solaris和OpenSolaris的关系与Redhat和Fedora的关系是类似的。 Sun被Oracle收购以后,Oracle一贯是支持linux的,而opensolaris不是GPL发布的,所以不能利用很多linux上现成的驱动,对一些硬件的支持工作需要慢慢来,这个成本是很高的。 对于Oracle来说,要么选择放弃opensolaris,要么以GPL重新发布,要不然,白花花的银子用来扩展硬件支持,到头来在x86上抢linux的市场仿佛没什么太大的好处。 在使用VS2008打开一个2005的firebird工程,进行编译时,发生一个关于_vsnprintf 的错误 c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(358) : error C3163: “_vsnprintf”: 属性与以前的声明不一致 同样的_snprintf 也有类似问题. 是因为VC9 CRT重定义了该函数 解决的方法是: #if _MSC_VER < 1500 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 is the default, users need to remember to override the default before swiping the card. People will sometimes naturally forget the special step because there was originally no reminder that this needed to be done, and because most other pumps don’t work that way. One solution would be to print the information prominently near the card reader, thus standardizing the note and making it more visible. A better and simpler solution would be to do what most pumps do: Avoid the opportunity for forgetting to specify the right thing by having both buttons, Debit and Credit, and simply prompting the user to press one or the other after they swipe their card. But the trouble behind the lower note is even more blatant and, frankly, inexcusable: Is there any good reason not to conditionally print “ENTER PIN” or “ENTER ZIP,” instead of just always printing “ENTER DATA” which is not only unclear but also one of the classic geeky words to avoid in a consumer-oriented UI? Then again, I’m amazed that in this day and age I still see output like “1 item(s) purchased.” Apparently it’s still more important to write the programmer-friendly printf( “%d item(s)”, count ) than the user-friendly printf( “%d item%s”, count, (count==1 ? “” : “s”) ). |
||||||
|
Copyright © 2010 永远的风 - All Rights Reserved |
||||||
最近评论