{"id":476,"date":"2012-06-05T13:45:13","date_gmt":"2012-06-05T05:45:13","guid":{"rendered":"http:\/\/ykyi.net\/?p=476"},"modified":"2012-06-05T13:45:13","modified_gmt":"2012-06-05T05:45:13","slug":"%e5%86%85%e6%a0%b8%e7%ba%bf%e7%a8%8b%e6%98%af%e4%bb%80%e4%b9%88%e4%b8%9c%e4%b8%9c-what-is-kernel-threads","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=476","title":{"rendered":"\u5185\u6838\u7ebf\u7a0b\u662f\u4ec0\u4e48\u4e1c\u4e1c What is Kernel threads"},"content":{"rendered":"<p>\u6709\u4e00\u4e9bUnix\u5185\u6838\uff0c\u6bd4\u5982Solaris\u548cSVR4.2\/MP\uff0c\u88ab\u7ec4\u7ec7\u6210\u4e00\u4e9b\u5185\u6838\u7ebf\u7a0b\u3002\u4e00\u4e2a\u5185\u6838\u7ebf\u7a0b\u662f\u4e00\u4e2a\u6267\u884c\u4e0a\u4e0b\u6587\u4e14\u53ef\u4ee5\u88ab\u8c03\u5ea6\uff1b\u8fd9\u6837\u7684\u5185\u6838\u7ebf\u7a0b\u53ef\u80fd\u4e0e\u4e00\u4e2a\u7528\u6237\u7a0b\u5e8f\u76f8\u5173\u8054\uff0c\u4e5f\u6709\u53ef\u4ee5\u53ea\u6267\u884c\u4e00\u4e9b\u5185\u6838\u51fd\u6570\u3002\u4e0a\u4e0b\u6587\u5207\u6362\u7684\u65f6\u5019\uff0c\u5207\u6362\u5185\u6838\u7ebf\u7a0b\u4e0a\u4e0b\u6587\u7684\u5f00\u9500\u8fdc\u6bd4\u5207\u6362\u7528\u6237\u8fdb\u7a0b\u4e0a\u4e0b\u6587\u7684\u5f00\u9500\u8981\u5c0f\u3002\u56e0\u4e3a\u5185\u6838\u7ebf\u7a0b\u901a\u5e38\u5171\u7528\u4e00\u4e2a\u5730\u5740\u7a7a\u95f4\u3002\u800c<strong>Linux\u7684\u5185\u6838\u7ebf\u7a0b<\/strong>\u5219\u6709\u4e0d\u540c\u3002Linux\u7684\u5185\u6838\u7ebf\u7a0b\u4ec5\u4ec5\u5468\u671f\u6027\u7684\u6267\u884c\u4e00\u4e2a\u5185\u6838\u51fd\u6570\u3002\u800c\u4e14\uff0cLinux\u5185\u6838\u8fdb\u7ebf\u7a0b\u5e76\u4e0d\u8868\u793a\u4e00\u4e2a\u57fa\u672c\u7684\u53ef\u6267\u884c\u4e0a\u4e0b\u6587\u3002 zausiu&#39;s blog. <a href=\"http:\/\/ykyi.net\">http:\/\/ykyi.net<\/a><\/p>\n<p>Some Unix Kernels, such as Solaris and SVR4.2\/MP, are organized as a set of kernel threads. A kernel thread is an execution context that can be independently scheduled; it may be aasociated with a user program, or it may run only some kernel functions. Context switches between kernel threads are usually much less expensive than context switches between ordinary processes, because the former usually operate on a common address space. Linux uses kernel threads in a very limited way to execute a few kernel functions periodically; however, they do not represent the basic execution context abstractions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u4e00\u4e9bUnix\u5185\u6838\uff0c\u6bd4\u5982Solaris\u548cSVR4.2\/MP\uff0c\u88ab\u7ec4\u7ec7\u6210\u4e00\u4e9b\u5185\u6838\u7ebf\u7a0b\u3002\u4e00\u4e2a\u5185\u6838\u7ebf\u7a0b\u662f\u4e00\u4e2a\u6267\u884c\u4e0a\u4e0b\u6587\u4e14\u53ef\u4ee5\u88ab\u8c03\u5ea6\uff1b\u8fd9\u6837\u7684\u5185\u6838\u7ebf\u7a0b\u53ef\u80fd\u4e0e\u4e00\u4e2a\u7528\u6237\u7a0b\u5e8f\u76f8\u5173\u8054\uff0c\u4e5f\u6709\u53ef\u4ee5\u53ea\u6267\u884c\u4e00\u4e9b\u5185\u6838\u51fd\u6570\u3002\u4e0a\u4e0b\u6587\u5207\u6362\u7684\u65f6\u5019\uff0c\u5207\u6362\u5185\u6838\u7ebf\u7a0b\u4e0a\u4e0b\u6587\u7684\u5f00\u9500\u8fdc\u6bd4\u5207\u6362\u7528\u6237\u8fdb\u7a0b\u4e0a\u4e0b\u6587\u7684\u5f00\u9500\u8981\u5c0f\u3002\u56e0\u4e3a\u5185\u6838\u7ebf\u7a0b\u901a\u5e38\u5171\u7528\u4e00\u4e2a\u5730\u5740\u7a7a\u95f4\u3002\u800cLinux\u7684\u5185\u6838\u7ebf\u7a0b\u5219\u6709\u4e0d\u540c\u3002Linux\u7684\u5185\u6838\u7ebf\u7a0b\u4ec5\u4ec5\u5468\u671f\u6027\u7684\u6267\u884c\u4e00\u4e2a\u5185\u6838\u51fd\u6570\u3002\u800c\u4e14\uff0cLinux\u5185\u6838\u8fdb\u7ebf\u7a0b\u5e76\u4e0d\u8868\u793a\u4e00\u4e2a\u57fa\u672c\u7684\u53ef\u6267\u884c\u4e0a\u4e0b\u6587\u3002 zausiu&#39;s blog. http:\/\/ykyi.net Some Unix Kernels, such as Solaris and SVR4.2\/MP, are organized as a set of kernel threads. A kernel thread is an execution context that can be independently scheduled; it may be aasociated with a user program, or it may run only some kernel functions. Context switches between kernel threads are usually &hellip; <a href=\"https:\/\/ykyi.net\/?p=476\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;\u5185\u6838\u7ebf\u7a0b\u662f\u4ec0\u4e48\u4e1c\u4e1c What is Kernel threads&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[51,52],"class_list":["post-476","post","type-post","status-publish","format-standard","hentry","category-unix_linux","tag-linux-2","tag-linux-kernel"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=476"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}