{"id":5573,"date":"2025-01-08T11:48:08","date_gmt":"2025-01-08T03:48:08","guid":{"rendered":"http:\/\/www.wangkaixuan.tech\/?p=5573"},"modified":"2025-01-08T13:52:07","modified_gmt":"2025-01-08T05:52:07","slug":"linux%e6%97%b6%e9%92%9f%e7%b3%bb%e5%88%97-02-%e6%97%b6%e9%92%9f%e3%80%81%e5%ae%9a%e6%97%b6%e5%99%a8%e3%80%81%e8%ae%a1%e6%95%b0%e5%99%a8","status":"publish","type":"post","link":"http:\/\/www.wangkaixuan.tech\/?p=5573","title":{"rendered":"Linux\u65f6\u949f\u7cfb\u5217-02-\u65f6\u949f\u3001\u5b9a\u65f6\u5668\u3001\u8ba1\u6570\u5668"},"content":{"rendered":"\n<p><strong>\u65f6\u949f<\/strong>\uff0c\u5373Clock\uff0c\u4e00\u822c\u5305\u62ec\u4e24\u4e2a\u542b\u4e49\uff1a<\/p>\n\n\n\n<p>\u4e00\u4e2a\u542b\u4e49\u6307\u7684\u662f\u5728\u786c\u4ef6\u5c42\u9762\u6309\u7167\u56fa\u5b9a\u9891\u7387\u4ea7\u751f\u7684\u65f6\u949f\u6ef4\u7b54\uff08Clock Tick\uff09\uff0c\u5b83\u4e00\u822c\u7531\u77f3\u82f1\u6676\u632f\u9a71\u52a8\uff0c\u662f\u673a\u5668\u4e0a\u5404\u4e2a\u786c\u4ef6\u6700\u7ec8\u534f\u8c03\u8fd0\u884c\u8d77\u6765\u7684\u52a8\u529b\u6e90\uff0c\u8d77\u5230\u5f15\u64ce\u7684\u4f5c\u7528\uff0c\u53ef\u4ee5\u8bf4\u4e00\u5207\u8ba1\u7b97\u673a\u786c\u4ef6\u90fd\u662f\u57fa\u4e8e\u65f6\u949f\u6ef4\u7b54\u8fd0\u884c\u8d77\u6765\u7684\u3002<\/p>\n\n\n\n<p>\u53e6\u4e00\u4e2a\u542b\u4e49\u6307\u7684\u662f\u8868\u793a\u65e5\u671f\u65f6\u95f4\u7684\u65f6\u949f\uff08Date Time Clock\uff09\uff0c\u8ddfReal Time Clock\u3001Wall Clock\u7684\u542b\u4e49\u5dee\u4e0d\u591a\u3002<\/p>\n\n\n\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u5982\u679c\u6ca1\u6709\u7279\u6b8a\u8bf4\u660e\uff0c\u6211\u4eec\u63d0\u5230Clock\u7684\u65f6\u5019\u6307\u7684\u5c31\u662f\u5b83\u7684\u7b2c\u4e00\u4e2a\u542b\u4e49\uff0c\u8bf7\u6ce8\u610f\u533a\u5206\u3002<\/p>\n\n\n\n<p><strong>\u5b9a\u65f6\u5668<\/strong>\uff0c\u5373Timer\uff0c\u5b83\u57fa\u4e8eClock\u8ba1\u65f6\uff0c\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u89e6\u53d1\u4e00\u6b21\u3002Timer\u57fa\u4e8eClock\u5b9e\u73b0\uff0c\u7c92\u5ea6\u6bd4Clock\u7c97\u3002<\/p>\n\n\n\n<p><strong>\u8ba1\u6570\u5668<\/strong>\uff0c\u5373Counter\uff0c\u5b83\u7531Clock\u89e6\u53d1\u66f4\u65b0\uff0c\u4e00\u822cClock\u6bcf\u6ef4\u7b54\u4e00\u6b21\uff0cCounter\u7684\u6570\u503c\u4f1a\u52a01\u3002<\/p>\n\n\n\n<p>\u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u63d0\u5230\u4e86\u4e00\u4e9b\u6982\u5ff5\uff0c\u4e0b\u9762\u6309\u7167\u4e0a\u8ff0\u4e09\u4e2a\u7ef4\u5ea6\u7ed9\u5b83\u4eec\u8fdb\u884c\u4e86\u533a\u5206\uff0c\u4f9b\u53c2\u8003\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u6982\u5ff5<\/td><td>\u7c7b\u522b<\/td><td>\u8bf4\u660e<\/td><\/tr><tr><td>Hardware Clock<\/td><td>Clock(Date Time)<\/td><td>\u4e00\u822c\u7531RTC\u786c\u4ef6\u9a71\u52a8<\/td><\/tr><tr><td>System Clock<\/td><td>Clock(Date Time)<\/td><td>\u4e00\u822c\u7531TSC\u9a71\u52a8<\/td><\/tr><tr><td>Linux Clock Source<\/td><td>Clock(Tick)<\/td><td>\u9a71\u52a8Linux\u5185\u6838\u505a\u5b9a\u65f6\u4efb\u52a1\u7684\u65f6\u949f\u6e90<\/td><\/tr><tr><td>TSC\uff08Time Stamp Counter\uff09<\/td><td>Counter<\/td><td>\u672c\u8d28\u4e0a\u662f\u4e00\u4e2a\u57fa\u4e8eCPU\u65f6\u949f\u4fe1\u53f7\u7684\u8ba1\u6570\u5668<\/td><\/tr><tr><td>HPET\uff08High Precision Event Timer\uff09 <\/td><td>Timer<\/td><td>linux\u53ef\u9009\u65f6\u949f\u6e90\u4e4b\u4e00\uff0c\u57fa\u4e8e\u5185\u7f6e\u6676\u632f\u4ea7\u751f\u65f6\u949f\u4fe1\u53f7\uff0c\u9a71\u52a8Linux\u5185\u6838\u505a\u5b9a\u65f6\u4efb\u52a1\u3002<\/td><\/tr><tr><td>ACPI_PM\uff08ACPI Power Management Timer\uff09<\/td><td>Timer<\/td><td>linux\u53ef\u9009\u65f6\u949f\u6e90\u4e4b\u4e00\uff0c\u57fa\u4e8e\u5185\u7f6e\u6676\u632f\u4ea7\u751f\u65f6\u949f\u4fe1\u53f7\uff0c\u9a71\u52a8Linux\u5185\u6838\u505a\u5b9a\u65f6\u4efb\u52a1\u3002<\/td><\/tr><tr><td>PIT\uff08Programmable Interval Timer\uff09<\/td><td>Timer<\/td><td>linux\u53ef\u9009\u65f6\u949f\u6e90\u4e4b\u4e00\uff0c\u57fa\u4e8e\u5185\u7f6e\u6676\u632f\u4ea7\u751f\u65f6\u949f\u4fe1\u53f7\uff0c\u9a71\u52a8Linux\u5185\u6838\u505a\u5b9a\u65f6\u4efb\u52a1\u3002<\/td><\/tr><tr><td> RTC\uff08Real Time Clock\uff09<\/td><td>Clock(Date Time)\/Clock(Tick)<\/td><td>RTC\u5728\u786c\u4ef6\u5c42\u9762\u6307\u7684\u662f\u5e26\u7535\u6c60\u548c\u6676\u632f\u7684\uff0c\u7528\u4e8e\u7ef4\u6301\u7cfb\u7edf\u65f6\u95f4\u7684\u4e1c\u897f\uff0c\u6240\u4ee5\u662fClock(Date Time)\uff1b\u5728\u7cfb\u7edf\u5c42\u9762\uff0c\u5b83\u53ef\u4ee5\u4f5c\u4e3aLinux\u7cfb\u7edf\u7684\u65f6\u949f\u6e90\uff0c\u6240\u4ee5\u662fClock(Tick)\u3002<\/td><\/tr><tr><td>\u6676\u632f<\/td><td>Clock(Tick)<\/td><td>\u9a71\u52a8\u8ba1\u7b97\u673a\u786c\u4ef6\u534f\u8c03\u5de5\u4f5c\u7684\u6e90\u52a8\u529b\uff08\u5f15\u64ce\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65f6\u949f\uff0c\u5373Clock\uff0c\u4e00\u822c\u5305\u62ec\u4e24\u4e2a\u542b\u4e49\uff1a \u4e00\u4e2a\u542b\u4e49\u6307\u7684\u662f\u5728\u786c\u4ef6\u5c42\u9762\u6309\u7167\u56fa\u5b9a\u9891\u7387\u4ea7\u751f\u7684\u65f6\u949f\u6ef4\u7b54\uff08Clock Tick\uff09\uff0c\u5b83\u4e00\u822c\u7531\u77f3\u82f1\u6676\u632f\u9a71\u52a8\uff0c\u662f\u673a\u5668\u4e0a\u5404\u4e2a\u786c\u4ef6\u6700\u7ec8\u534f&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"http:\/\/www.wangkaixuan.tech\/?p=5573\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-5573","post","type-post","status-publish","format-standard","hentry","category-05-01-"],"_links":{"self":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/posts\/5573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5573"}],"version-history":[{"count":0,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/posts\/5573\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5573"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}