{"id":169,"date":"2017-06-06T20:46:26","date_gmt":"2017-06-06T12:46:26","guid":{"rendered":"http:\/\/zouyang1230.com\/blog\/?p=169"},"modified":"2020-11-15T11:16:32","modified_gmt":"2020-11-15T03:16:32","slug":"%e8%bf%9b%e7%a8%8b-%e5%b9%b6%e5%8f%91-%e4%b8%8a%e4%b8%8b%e6%96%87-%e7%ba%bf%e7%a8%8b-%e8%b6%85%e7%ba%bf%e7%a8%8b-%e7%a8%8b%e5%ba%8f-%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"http:\/\/www.imzouyang.com\/blog\/archives\/169.html","title":{"rendered":"\u300a\u6df1\u5165\u7406\u89e3\u8ba1\u7b97\u673a\u7cfb\u7edf\u300b\u4e4b\u8fdb\u7a0b \u5e76\u53d1 \u4e0a\u4e0b\u6587 \u7ebf\u7a0b \u8d85\u7ebf\u7a0b \u7a0b\u5e8f \u5e94\u7528\u7a0b\u5e8f"},"content":{"rendered":"<p>1\u3001<strong>\u8fdb\u7a0b<\/strong><br \/>\n\u662f\u8ba1\u7b97\u673a\u79d1\u5b66\u4e2d\u6700\u91cd\u8981\u548c\u6700\u6210\u529f\u7684\u6982\u5ff5\u4e4b\u4e00\u3002<br \/>\n\u50cfhello world\u8fd9\u6837\u7684\u7a0b\u5e8f\u5728\u8ba1\u7b97\u673a\u4e2d\u8fd0\u884c\u65f6\uff0c\u64cd\u4f5c\u7cfb\u7edf\u4f1a\u63d0\u4f9b\u4e00\u79cd\u5047\u8c61\uff0c\u5c31\u597d\u50cf\u7cfb\u7edf\u4e0a\u53ea\u6709\u8fd9\u4e2a\u7a0b\u5e8f\u5728\u8fd0\u884c\uff0c\u770b\u4e0a\u53bb\u53ea\u6709\u8fd9\u4e2a\u7a0b\u5e8f\u5728\u4f7f\u7528\u5904\u7406\u5668\u3001\u4e3b\u5b58\u548cI\/O\u8bbe\u5907\u3002\u5904\u7406\u5668\u770b\u4e0a\u53bb\u5c31\u50cf\u5728\u4e0d\u95f4\u65ad\u5730\u4e00\u6761\u63a5\u4e00\u6761\u5730\u6267\u884c\u7a0b\u5e8f\u4e2d\u7684\u6307\u4ee4\uff0c\u5373\u8be5\u7a0b\u5e8f\u7684\u4ee3\u7801\u548c\u6570\u636e\u662f\u7cfb\u7edf\u5b58\u50a8\u5668\u4e2d\u552f\u4e00\u7684\u5bf9\u8c61\u3002\u8fd9\u4e9b\u5047\u8c61\u662f\u901a\u8fc7\u8fdb\u7a0b\u7684\u6982\u5ff5\u6765\u5b9e\u73b0\u7684\u3002\u8fdb\u7a0b\u662f\u64cd\u4f5c\u7cfb\u7edf\u5bf9\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\u7684\u4e00\u79cd<strong>\u62bd\u8c61<\/strong>\u3002<br \/>\n\u5728\u4e00\u4e2a\u7cfb\u7edf\u4e0a\u53ef\u4ee5\u540c\u65f6\u8fd0\u884c\u591a\u4e2a\u8fdb\u7a0b\u3002\u800c\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u597d\u50cf\u5728\u72ec\u5360\u5730\u4f7f\u7528\u786c\u4ef6\u3002<\/p>\n<p>2\u3001\u800c<strong>\u5e76\u53d1\u8fd0\u884c<\/strong>\uff0c\u5219\u662f\u8bf4\u4e00\u4e2a\u8fdb\u7a0b\u7684\u6307\u4ee4\u548c\u53e6\u4e00\u4e2a\u8fdb\u7a0b\u7684\u6307\u4ee4\u662f<strong>\u4ea4\u9519\u6267\u884c<\/strong>\u7684\u3002\u5728\u5927\u591a\u6570\u7cfb\u7edf\u4e2d\uff0c\u9700\u8981\u8fd0\u884c\u7684\u8fdb\u7a0b\u6570\u662f\u591a\u4e8e\u53ef\u4ee5\u8fd0\u884c\u5b83\u4eec\u7684CPU\u4e2a\u6570\u7684\u3002\u4f20\u7edf\u7cfb\u7edf\u5728\u4e00\u4e2a\u65f6\u523b\u53ea\u80fd\u6267\u884c\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u4efb\u4f55\u65f6\u523b\u5355\u6838\u5904\u7406\u5668\u7cfb\u7edf\u90fd\u53ea\u80fd\u6267\u884c\u4e00\u4e2a\u8fdb\u7a0b\u7684\u4ee3\u7801\uff0c\u800c\u5148\u8fdb\u7684\u591a\u6838\u5904\u7406\u5668\u540c\u65f6\u80fd\u591f\u6267\u884c\u591a\u4e2a\u7a0b\u5e8f\u3002<\/p>\n<p>3\u3001<strong>\u4e0a\u4e0b\u6587<\/strong>\u6982\u5ff5\uff1a\u65e0\u8bba\u662f\u5728\u5355\u6838\u8fd8\u662f\u591a\u6838\u7cfb\u7edf\u4e2d\uff0c\u4e00\u4e2acpu\u770b\u4e0a\u53bb\u90fd\u50cf\u662f\u5728\u5e76\u53d1\u7684\u6267\u884c\u591a\u4e2a\u8fdb\u7a0b,\u8fd9\u662f\u901a\u8fc7\u5904\u7406\u5668\u5728\u8fdb\u7a0b\u95f4\u7684\u5207\u6362\u6765\u5b9e\u73b0\u7684\u3002\u64cd\u4f5c\u7cfb\u7edf\u5b9e\u73b0\u8fd9\u79cd\u4ea4\u9519\u6267\u884c\u7684\u673a\u5236\u79f0\u4e3a<strong>\u4e0a\u4e0b\u6587\u5207\u6362<\/strong>\u3002<br \/>\n\u64cd\u4f5c\u7cfb\u7edf\u4fdd\u6301\u8ddf\u8e2a\u8fdb\u7a0b\u8fd0\u884c\u6240\u9700\u7684\u6240\u6709\u4fe1\u606f\u72b6\u6001\uff0c\u8fd9\u79cd\u72b6\u6001\u5c31\u662f<strong>\u4e0a\u4e0b\u6587<\/strong>\u3002\u4e0a\u4e0b\u6587\u5305\u62ec\u8bb8\u591a\u4fe1\u606f\uff0c\u4f8b\u5982PC\u548c\u5bc4\u5b58\u5668\u6587\u4ef6\u7684\u5f53\u524d\u503c\uff0c\u4ee5\u53ca\u4e3b\u5b58\u7684\u5185\u5bb9\u3002<\/p>\n<p>4\u3001<strong>\u7ebf\u7a0b<\/strong>\uff1a\u4e00\u4e2a\u8fdb\u7a0b\u53ef\u4ee5\u7531\u591a\u4e2a\u7ebf\u7a0b\u7ec4\u6210\uff0c\u6bcf\u4e2a\u7ebf\u7a0b\u90fd\u8fd0\u884c\u5728\u8fdb\u7a0b\u7684\u4e0a\u4e0b\u6587\u4e2d\uff0c\u5e76\u5171\u4eab\u540c\u6837\u7684\u4ee3\u7801\u548c\u5168\u5c40\u6570\u636e\u3002\u591a\u7ebf\u7a0b\u4e4b\u95f4\u6bd4\u591a\u8fdb\u7a0b\u4e4b\u95f4\u66f4\u5bb9\u6613\u5171\u4eab\u6570\u636e\u3002\u7ebf\u7a0b\u6709\u65f6\u88ab\u79f0\u4e3a\u8f7b\u91cf\u7ea7\u8fdb\u7a0b(Lightweight Process\uff0cLWP\uff09\uff0c\u662f\u7a0b\u5e8f\u6267\u884c\u6d41\u7684\u6700\u5c0f\u5355\u5143\u3002<\/p>\n<p>5\u3001<strong>\u8d85\u7ebf\u7a0b<\/strong>\uff1a\u6709\u65f6\u79f0\u4e3a<strong>\u540c\u65f6\u591a\u7ebf\u7a0b<\/strong>\u3002\u662f\u4e00\u9879\u5141\u8bb8\u4e00\u4e2aCPU\u6267\u884c\u591a\u4e2a\u63a7\u5236\u6d41\u7684\u6280\u672f\u3002\u5b83\u6d89\u53ca\u5230CPU\u67d0\u4e9b\u786c\u4ef6\u6709\u591a\u4e2a\u5907\u4efd\uff0c\u6bd4\u5982\u7a0b\u5e8f\u8ba1\u6570\u5668\u548c\u5bc4\u5b58\u5668\u6587\u4ef6\uff1b\u800c\u5176\u4ed6\u7684\u786c\u4ef6\u90e8\u5206\u53ea\u6709\u4e00\u4efd\uff0c\u6bd4\u5982\u6267\u884c\u6d6e\u70b9\u8fd0\u7b97\u7684\u5355\u5143\u3002\u5e38\u89c4\u7684\u5904\u7406\u5668\u9700\u8981\u5927\u7ea620000\u4e2a\u65f6\u949f\u5468\u671f\u505a\u4e0d\u540c\u7ebf\u7a0b\u95f4\u7684\u8f6c\u6362\uff0c\u800c\u8d85\u7ebf\u7a0b\u7684\u5904\u7406\u5668\u53ef\u4ee5\u518d\u5355\u4e2a\u5468\u671f\u7684\u57fa\u7840\u4e0a\u51b3\u5b9a\u8981\u6267\u884c\u54ea\u4e00\u4e2a\u7ebf\u7a0b\uff08\u6211\u4e2a\u4eba\u7684\u7406\u89e3\u662f\u56e0\u4e3a\u6709\u4e9b\u786c\u4ef6\u8bbe\u5907\u4e0d\u6b62\u4e00\u4efd\uff0c\u6240\u4ee5\u4e0d\u8981\u8fdb\u884c\u4fdd\u5b58\u4e0a\u4e0b\u6587\u548c\u6062\u590d\u4e0a\u4e0b\u6587\u7684\u64cd\u4f5c\uff0c\u53ea\u662f\u5728\u4e00\u4e2a\u672a\u4f7f\u7528\u7684\u786c\u4ef6\u8bbe\u5907\u4e0a\u6765\u6267\u884c\u4e00\u4e2a\u65b0\u7684\u7ebf\u7a0b\uff09\u3002\u8fd9\u6837\u4f7f\u5f97CPU\u53ef\u4ee5\u66f4\u597d\u5730\u5229\u7528\u5b83\u7684\u5904\u7406\u8d44\u6e90\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u4e00\u4e2a\u7ebf\u7a0b\u5fc5\u987b\u7b49\u5230\u67d0\u4e9b\u6570\u636e\u88ab\u88c5\u8f7d\u5230\u9ad8\u901f\u7f13\u5b58\u5f20\uff0c\u90a3\u4e48CPU\u5c31\u53ef\u4ee5\u7ee7\u7eed\u53bb\u6267\u884c\u53e6\u5916\u4e00\u4e2a\u7ebf\u7a0b\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0cIntel Core i7\u5904\u7406\u5668\u53ef\u4ee5\u8ba9\u4e00\u4e2a\u6838\u6267\u884c\u4e24\u4e2a\u7ebf\u7a0b\uff0c\u6240\u4ee5\u4e00\u4e2a4\u6838\u7684\u7cfb\u7edf\u5b9e\u9645\u4e0a\u53ef\u4ee5\u5e76\u884c\u7684\u6267\u884c8\u4e2a\u7ebf\u7a0b\u3002<\/p>\n<p>6\u3001<strong>\u7a0b\u5e8f<\/strong>\uff1a\u4e00\u4e2a\u8fdb\u7a0b\u5c31\u662f\u4e00\u4e2a\u7a0b\u5e8f\u3002<\/p>\n<p>7\u3001<strong>\u5e94\u7528\u7a0b\u5e8f<\/strong>\uff1a\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff08application\uff09\u901a\u5e38\u7531\u591a\u4e2a\u7a0b\u5e8f\u7ec4\u6210\u3002<\/p>\n<p>\u8865\u5145\u7406\u89e3\uff1a\u300a\u6f2b\u753b\u7b97\u6cd5\u300b<br \/>\n\u8fdb\u7a0b\uff1a\u5c31\u662f\u5e94\u7528\u7a0b\u5e8f\u7684\u542f\u52a8\u5b9e\u4f8b\u3002\u6bd4\u5982\u6211\u4eec\u8fd0\u884c\u4e00\u4e2a\u6e38\u620f\uff0c\u6253\u5f00\u4e00\u4e2a\u8f6f\u4ef6\uff0c\u5c31\u662f\u5f00\u542f\u4e86\u4e00\u4e2a\u8fdb\u7a0b\u3002<br \/>\n\u7ebf\u7a0b\uff1a\u4ece\u5c5e\u4e8e\u8fdb\u7a0b\uff0c\u662f\u7a0b\u5e8f\u7684\u5b9e\u9645\u6267\u884c\u8005\u3002\u4e00\u4e2a\u8fdb\u7a0b\u81f3\u5c11\u5305\u542b\u4e00\u4e2a\u4e3b\u7ebf\u7a0b\uff0c\u4e5f\u53ef\u4ee5\u6709\u66f4\u591a\u7684\u5b50\u7ebf\u7a0b\u3002\u7ebf\u7a0b\u62e5\u6709\u81ea\u5df1\u7684\u6808\u7a7a\u95f4\u3002<br \/>\n\u5bf9\u64cd\u4f5c\u7cfb\u7edf\u6765\u8bf4\uff0c\u7ebf\u7a0b\u662f\u6700\u5c0f\u7684\u6267\u884c\u5355\u5143\uff0c\u8fdb\u7a0b\u662f\u6700\u5c0f\u7684\u8d44\u6e90\u7ba1\u7406\u5355\u5143\u3002<br \/>\n\u534f\u7a0b\uff1a\u82f1\u6587 Coroutines\uff0c\u662f\u4e00\u79cd\u6bd4\u7ebf\u7a0b\u66f4\u52a0\u8f7b\u91cf\u7ea7\u7684\u5b58\u5728\u3002\u6b63\u5982\u4e00\u4e2a\u8fdb\u7a0b\u53ef\u4ee5\u62e5\u6709\u591a\u4e2a\u7ebf\u7a0b\u4e00\u6837\uff0c\u4e00\u4e2a\u7ebf\u7a0b\u4e5f\u53ef\u4ee5\u62e5\u6709\u591a\u4e2a\u534f\u7a0b\u3002\u534f\u7a0b\u4e0d\u662f\u88ab\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u6240\u7ba1\u7406\uff0c\u800c\u5b8c\u5168\u662f\u7531\u7a0b\u5e8f\u6240\u63a7\u5236\uff08\u4e5f\u5c31\u662f\u5728\u7528\u6237\u6001\u6267\u884c\uff09\u3002\u534f\u7a0b\u7684\u6682\u505c\u5b8c\u5168\u7531\u7a0b\u5e8f\u63a7\u5236\uff0c\u7ebf\u7a0b\u7684\u963b\u585e\u72b6\u6001\u662f\u7531\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u6765\u8fdb\u884c\u5207\u6362\u3002\u8fd9\u6837\u5e26\u6765\u7684\u597d\u5904\u5c31\u662f\u6027\u80fd\u5f97\u5230\u4e86\u5f88\u5927\u7684\u63d0\u5347\uff0c\u4e0d\u4f1a\u50cf\u7ebf\u7a0b\u5207\u6362\u90a3\u6837\u6d88\u8017\u8d44\u6e90\u3002\u6709\u54ea\u4e9b\u7f16\u7a0b\u8bed\u8a00\u5e94\u7528\u5230\u4e86\u534f\u7a0b\u5462\uff1f\u5982\uff1aLua\u3001Python\u3001Go\u3001Java\u2026\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u8fdb\u7a0b \u662f\u8ba1\u7b97\u673a\u79d1\u5b66\u4e2d\u6700\u91cd\u8981\u548c\u6700\u6210\u529f\u7684\u6982\u5ff5\u4e4b\u4e00\u3002 \u50cfhello world\u8fd9\u6837\u7684\u7a0b\u5e8f\u5728\u8ba1\u7b97\u673a\u4e2d\u8fd0\u884c\u65f6\uff0c\u64cd\u4f5c\u7cfb &hellip; <a href=\"http:\/\/www.imzouyang.com\/blog\/archives\/169.html\" class=\"read-more\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text sr-only\">\u300a\u6df1\u5165\u7406\u89e3\u8ba1\u7b97\u673a\u7cfb\u7edf\u300b\u4e4b\u8fdb\u7a0b \u5e76\u53d1 \u4e0a\u4e0b\u6587 \u7ebf\u7a0b \u8d85\u7ebf\u7a0b \u7a0b\u5e8f \u5e94\u7528\u7a0b\u5e8f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":[],"categories":[30,7],"tags":[],"_links":{"self":[{"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/posts\/169"}],"collection":[{"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":2,"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":2299,"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/posts\/169\/revisions\/2299"}],"wp:attachment":[{"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.imzouyang.com\/blog\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}