{"id":2224,"date":"2018-08-01T12:28:23","date_gmt":"2018-08-01T04:28:23","guid":{"rendered":"https:\/\/www.aoisnow.net\/blog\/?p=2224"},"modified":"2018-08-01T12:28:23","modified_gmt":"2018-08-01T04:28:23","slug":"tont-42753-%e7%a1%ac%e4%bb%b6%e5%90%91%e4%b8%8b%e5%85%bc%e5%ae%b9%e6%80%a7%e7%9a%84%e5%b0%8f%e6%95%85%e4%ba%8b","status":"publish","type":"post","link":"https:\/\/www.aoisnow.net\/blog\/archives\/2224","title":{"rendered":"TONT 42753 \u786c\u4ef6\u5411\u4e0b\u517c\u5bb9\u6027\u7684\u5c0f\u6545\u4e8b"},"content":{"rendered":"<p>\u9519\u7684\u4e0d\u662f\u6211\uff0c\u9519\u7684\u662f\u4e16\u754c\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/20030828-00\/?p=42753\" target=\"_blank\" rel=\"noopener\">https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/20030828-00\/?p=42753<\/a><\/p>\n<p>Backwards compatibility applies not only to software. It also applies to hardware. And when hardware goes bad, the software usually takes the blame.<\/p>\n<p>\u5411\u4e0b\u517c\u5bb9\u4e0d\u4ec5\u9002\u7528\u4e8e\u8f6f\u4ef6\uff0c\u5bf9\u786c\u4ef6\u4e5f\u9002\u7528\u3002\u5f53\u786c\u4ef6\u51fa\u95ee\u9898\u65f6\uff0c\u5219\u5e38\u5e38\u662f\u7531\u8f6f\u4ef6\u6765\u80cc\u9505\u3002<\/p>\n<p>The HLT instruction tells the CPU to shut itself down until the next hardware interrupt. This is a big win on laptops since it reduces power consumption and thereby saves your lap from third-degree burns.<\/p>\n<p>CPU\u6709\u4e00\u4e2aHLT\u6307\u4ee4\uff0c\u7528\u6765\u544a\u8bc9CPU\u5173\u6389\u81ea\u5df1\uff0c\u76f4\u81f3\u4e0b\u4e00\u4e2a\u786c\u4ef6\u4e2d\u65ad\u53d1\u751f\u3002\u8fd9\uff08\u5728\u5f53\u65f6\uff09\u5bf9\u7b14\u8bb0\u672c\u6765\u8bf4\u6709\u5f88\u5927\u7684\u76ca\u5904\uff0c\u53ef\u4ee5\u964d\u4f4e\u5176\u529f\u8017\uff0c\u4f7f\u4f60\u7684\u819d\u4e0a\u90e8\u5206\u514d\u4e8e\u4e09\u7ea7\u70eb\u4f24\u3002<\/p>\n<p>We (well, specifically, Jeff) had this implemented and working in Windows 95 but discovered to our dismay that there were many laptops (some from a major manufacturer) which would lock up unrecoverably if you issued a HLT instruction.<\/p>\n<p>\u6211\u4eec\uff08\u66f4\u786e\u5207\u5730\u8bf4\uff0c\u662fJeff\uff09\u5c06\u8fd9\u4e2a\u529f\u80fd\u690d\u5165\u4e86Windows 95\uff0c\u4f46\u968f\u540e\u5374\u5782\u5934\u4e27\u6c14\u5730\u53d1\u73b0\uff0c\u5f53HLT\u6307\u4ee4\u4e0b\u8fbe\u65f6\uff0c\u6709\u597d\u591a\u7684\u7b14\u8bb0\u672c\uff08\u6709\u4e9b\u8fd8\u662f\u5927\u724c\u5b50\uff09\u5c31\u8fdb\u5165\u4e86\u65e0\u6cd5\u6062\u590d\u7684\u6b7b\u9501\u72b6\u6001\u3002<\/p>\n<p>So we had to back it out.<\/p>\n<p>\u6240\u4ee5\u6211\u4eec\u53ea\u597d\u53c8\u628a\u8fd9\u4e2a\u529f\u80fd\u53bb\u6389\u4e86\u3002<\/p>\n<p>Then the aftermarket HLT programs came out and people wrote, &#8220;Stupid Microsoft. Why did they leave this feature out of Windows.&#8221; I had to sit quietly while people accused Microsoft of being stupid and\/or lazy and\/or selfish.<\/p>\n<p>\u540e\u6765\u53c8\u6709\u4e9b\u7b2c\u4e09\u65b9\u5e94\u7528\u5b9e\u73b0\u4e86\u8fd9\u4e2a\u529f\u80fd\uff0c\u7528\u6237\u4eec\u5c31\u5f00\u59cb\u62b1\u6028\uff0c\u300e\u5fae\u8f6f\u8fd9\u4e2a\u50bb\u00d7\uff0c\u8fd9\u4e48\u597d\u7528\u7684\u529f\u80fd\u600e\u4e48\u4e0d\u52a0\u5230Windows\u91cc\u9762\u53bb\u300f\u3002\u4e0d\u7ba1\u4eba\u4eec\u5982\u4f55\u5492\u9a82\u5fae\u8f6f\u662f\u50bb\u00d7\u3001\u61d2\u86cb\u6216\u81ea\u79c1\uff0c\u5f53\u65f6\u7684\u6211\u53ea\u80fd\u9759\u5750\u8046\u542c\u800c\u65e0\u6cd5\u505a\u51fa\u56de\u5e94\u3002<\/p>\n<p>But now the statute of limitations has expired so at least I can say something (though I&#8217;m still not going to name that major manufacturer, nice try).<\/p>\n<p>\u4e0d\u8fc7\u73b0\u5728\u5df2\u7ecf\u8fc7\u4e86\u5f53\u521d\u7684\u9650\u5236\u671f\uff0c\u6240\u4ee5\u6211\u53ef\u4ee5\u5bf9\u8fd9\u4e8b\u53d1\u8868\u70b9\u8bc4\u8bba\u4e86\uff08\u7136\u800c\u90a3\u51e0\u4e2a\u51fa\u95ee\u9898\u7684\u7b14\u8bb0\u672c\u7684\u724c\u5b50\u6211\u8fd8\u662f\u4e0d\u4f1a\u8bf4\u7684\uff0c\u522b\u60f3\u4e86\uff09\u3002<\/p>\n<p>My favorite bad hardware, though, was a system which would crash if the video card was put in an expansion slot too far away from the power supply. Manufacturers will do anything to save a nickel.<\/p>\n<p>\u7c7b\u4f3c\u8fd9\u6837\u7684\u60c5\u51b5\uff08\u8bd1\u6ce8\uff1a\u7c7b\u4f3c\u4e0a\u6587HLT\u6307\u4ee4\u8fd9\u6837\u3001\u7531\u4e8e\u786c\u4ef6\u5382\u5546\u7684\u8bbe\u8ba1\u7f3a\u9677\u5bfc\u81f4\u8f6f\u4ef6\u51fa\u73b0\u95ee\u9898\u7684\u60c5\u51b5\uff09\u6211\u6700\u559c\u6b22\u7684\u4e00\u4e2a\u4f8b\u5b50\u662f\uff0c\u67d0\u7cfb\u5217\u7684\u673a\u5668\u91cc\u5982\u679c\u663e\u5361\u5b89\u88c5\u5f97\u79bb\u7535\u6e90\u592a\u8fdc\uff0c\u673a\u5668\u5c31\u4f1a\u5d29\u6e83\uff08\u8bd1\u6ce8\uff1a\u5927\u6982\u662f\u4f9b\u7535\u4e0d\u8db3\u5bfc\u81f4\uff0c\u4f17\u6240\u5468\u77e5\u663e\u5361\u662f\u7528\u7535\u5927\u6237\uff09\u3002\u5382\u5546\u4eec\u4e3a\u4e86\u8282\u7ea6\u6bcf\u4e00\u5206\u6210\u672c\uff0c\u4ec0\u4e48\u90fd\u5e72\u5f97\u51fa\u6765\u3002<\/p>\n<p>And yet Windows 95 ran on almost all of this bad hardware. Why did we go to all this effort to accomodate bad hardware? Consider:<\/p>\n<p>\u7136\u800cWindows 95\u8fd8\u662f\u5f97\u5728\u8fd9\u4e9b\u6b8b\u6b21\u54c1\u786c\u4ef6\u4e0a\u8fd0\u884c\uff0c\u4e3a\u4ec0\u4e48\u6211\u4eec\u8981\u4e0b\u5927\u529b\u6c14\u5bb9\u5fcd\u8fd9\u4e9b\u786c\u4ef6\u5462\uff1f\u8003\u8651\u4e00\u4e0b\u8fd9\u4e9b\u95ee\u9898\uff1a<\/p>\n<ul>\n<li>You have a computer that works okay. \u4f60\u6709\u4e00\u53f0\u7535\u8111\u3002\u539f\u672c\u5de5\u4f5c\u7684\u597d\u597d\u7684\u3002<\/li>\n<li>You go to the store and buy Windows 95. \u4f60\u53bb\u5546\u5e97\u91cc\u4e70\u4e86\u4e00\u4efdWindows 95\u3002<\/li>\n<li>You take it home and install it. \u4f60\u628aWindows 95\u62ff\u56de\u5bb6\u88c5\u5728\u81ea\u5df1\u7684\u673a\u5668\u4e0a\u3002<\/li>\n<li>Your computer crashes. \u673a\u5668\u5d29\u4e86\u3002<\/li>\n<\/ul>\n<p>Whom do you blame? Hint: Not your computer manufacturer.<\/p>\n<p>\u73b0\u5728\u4f60\u60f3\u602a\u7f6a\u8c01\u5462\uff1f\u63d0\u793a\uff1a\u5927\u62b5\u4e0d\u4f1a\u662f\u5236\u9020\u8fd9\u53f0\u673a\u5668\u7684\u5382\u5bb6\u3002<\/p>\n<p>I have more hardware stories, but I have a meeting soon so I&#8217;ll have to stop here for today.<\/p>\n<p>\u6211\u8fd8\u6709\u66f4\u591a\u8ddf\u786c\u4ef6\u76f8\u5173\u7684\u5c0f\u6545\u4e8b\uff0c\u4f46\u7b49\u4e0b\u5c31\u8981\u5f00\u4f1a\u4e86\uff0c\u6240\u4ee5\u4eca\u5929\u5148\u5230\u8fd9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9519\u7684\u4e0d\u662f\u6211\uff0c\u9519\u7684\u662f\u4e16\u754c\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2224","post","type-post","status-publish","format-standard","hentry","category-tont_history"],"_links":{"self":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/2224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/comments?post=2224"}],"version-history":[{"count":0,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/2224\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/media?parent=2224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/categories?post=2224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/tags?post=2224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}