{"id":1003,"date":"2013-09-09T12:57:26","date_gmt":"2013-09-09T04:57:26","guid":{"rendered":"http:\/\/www.dogeye.net\/?p=1003"},"modified":"2013-09-09T12:57:26","modified_gmt":"2013-09-09T04:57:26","slug":"linux%e6%98%af%e4%bb%8e%e4%bb%80%e4%b9%88%e6%97%b6%e5%80%99%e5%bc%80%e5%a7%8b%e6%94%af%e6%8c%81%e7%ba%bf%e7%a8%8b%e7%9a%84","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=1003","title":{"rendered":"Linux\u662f\u4ece\u4ec0\u4e48\u65f6\u5019\u5f00\u59cb\u652f\u6301\u7ebf\u7a0b\u7684."},"content":{"rendered":"<p>\u51e0\u5929\u524d\u548c\u540c\u4e8b\u5403\u996d\uff0c\u8c08\u8bba\u5230\u4e00\u4e2a\u95ee\u9898\uff1alinux\u4ece\u4ec0\u4e48\u65f6\u5019\u5f00\u59cb\u652f\u6301\u7ebf\u7a0b\u3002\u4ed6\u8bf4linux\u4e2d\u7684\u7ebf\u7a0b\u51fa\u73b0\u7684\u5f88\u665a\uff0c\u76f4\u52302.2.x\u624d\u6709\u3002<\/p>\n<p>\u6211\u89c9\u5f97\u4e0d\u5bf9\u554a\uff0c\u600e\u4e48\u4f1a\u90a3\u4e48\u665a\u3002\u7136\u540e\u5b83\u7528\u624b\u673a\u641c\u7d22\u4e86\u4e00\u4e0b\uff0clinux\u5bf9POSIX\u7ebf\u7a0b\u5e93\u7684\u652f\u6301\u786e\u5b9e\u5f88\u665a\uff0c\u76f4\u52302.6.x\u624d\u6709\u3002<\/p>\n<p>\u4f46\u6211\u89c9\u5f97POSIX\u7ebf\u7a0b\u5e93\u53ea\u4e0d\u8fc7\u662f\u7528\u6237\u7a7a\u95f4\u7528\u6765\u521b\u5efa\u7ebf\u7a0b\u7684\u63a5\u53e3\uff0c\u5e76\u4e0d\u80fd\u8bc1\u660e\u90a3\u4e48\u665alinux\u624d\u652f\u6301\u7ebf\u7a0b\u3002<\/p>\n<p>\u540e\u6765\u7528PC\u7684\u65f6\u5019\u641c\u7d22\u4e86\u4e00\u4e0b\uff0c\u5728The Linux Document Project\u7684\u5b98\u65b9\u7f51\u7ad9\u627e\u5230\u4e86\u7b54\u6848\uff1a<\/p>\n<p><a href=\"http:\/\/www.tldp.org\/FAQ\/Threads-FAQ\/Support.html\">http:\/\/www.tldp.org\/FAQ\/Threads-FAQ\/Support.html<\/a><\/p>\n<p style=\"color: rgb(0, 0, 0); font-family: Simsun; font-size: medium; line-height: normal;\"><font size=\"+3\">Does Linux support threads?<\/font><\/p>\n<p>Yes. As of 1.3.56, Linux has supported kernel-space multithreading. There also have been user-space thread libraries around as early as 1.0.9. There is on-going effort to refine and make the kernel more reentrant. With the introduction of 2.1.x, the memory space is being revised so that the kernel can access the user memory more quickly.<\/p>\n<p>\u95ee\uff1a Linux\u652f\u6301\u7ebf\u7a0b\u5417\uff1f<\/p>\n<p>\u7b54\uff1a \u662f\u7684\uff0c\u81ea\u4ece1.3.56\u5f00\u59cb\uff0cLinux\u5c31\u5f00\u59cb\u652f\u6301\u5185\u6838\u7a7a\u95f4\u4e2d\u7684\u591a\u7ebf\u7a0b\u4e86\u3002\u65e9\u52301.0.9\uff0c\u5c31\u5df2\u7ecf\u6709\u4e86\u7528\u6237\u7a7a\u95f4\u7684\u7ebf\u7a0b\u5e93\u3002<\/p>\n<p>\/\/\/\/\/<\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a\u6bd4\u8f83\u6df7\u6dc6\u7684\u6982\u5ff5\uff1a\u5185\u6838\u7ebf\u7a0b\uff0c \u5185\u6838\u6001\u652f\u6301\u591a\u7ebf\u7a0b\u3002<\/p>\n<p>\u5185\u6838\u6001\u652f\u6301\u591a\u7ebf\u6301\u6307\u7684\u662f\u5728\u5185\u6838\u7a7a\u95f4\u652f\u6301\u7ebf\u7a0b\u7684\u8c03\u5ea6\uff0c\u521b\u5efa\uff0c\u9500\u6bc1\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>\u5185\u6838\u7ebf\u7a0b\u5219\u662f\u53e6\u5916\u4e00\u4e2a\u6982\u5ff5\uff0c\u5b83\u548c\u4e00\u822ctask\u7684\u6700\u5927\u533a\u522b\u662f\uff0c\u63cf\u8ff0\u5185\u6838\u7ebf\u7a0b\u7684task_struct\u7ed3\u6784\u4f53\u4e2d\u7684\u5185\u5b58\u63cf\u8ff0\u7b26mm_struct\u662fNULL\u3002\u5177\u4f53\u53c2\u8003\u7ecf\u5178\u4e66\uff1alinux kernel development. \u6211\u53e6\u4e00\u7bc7\u8d34\u5b50\u4e5f\u6709\u5199\u5230:&nbsp;<a href=\"http:\/\/ykyi.net\/2012\/06\/%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\/\">http:\/\/ykyi.net\/2012\/06\/%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\/<\/a>&nbsp;\u662f\u4eceUnderstand the linux kernel\u6284\u4e0b\u6765\u7684\u3002<\/p>\n<ul style=\"color: rgb(0, 0, 0); font-family: Simsun; font-size: medium; line-height: normal;\"><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u51e0\u5929\u524d\u548c\u540c\u4e8b\u5403\u996d\uff0c\u8c08\u8bba\u5230\u4e00\u4e2a\u95ee\u9898\uff1alinux\u4ece\u4ec0\u4e48\u65f6\u5019\u5f00\u59cb\u652f\u6301\u7ebf\u7a0b\u3002\u4ed6\u8bf4linux\u4e2d\u7684\u7ebf\u7a0b\u51fa\u73b0\u7684\u5f88\u665a\uff0c\u76f4\u52302.2.x\u624d\u6709\u3002 \u6211\u89c9\u5f97\u4e0d\u5bf9\u554a\uff0c\u600e\u4e48\u4f1a\u90a3\u4e48\u665a\u3002\u7136\u540e\u5b83\u7528\u624b\u673a\u641c\u7d22\u4e86\u4e00\u4e0b\uff0clinux\u5bf9POSIX\u7ebf\u7a0b\u5e93\u7684\u652f\u6301\u786e\u5b9e\u5f88\u665a\uff0c\u76f4\u52302.6.x\u624d\u6709\u3002 \u4f46\u6211\u89c9\u5f97POSIX\u7ebf\u7a0b\u5e93\u53ea\u4e0d\u8fc7\u662f\u7528\u6237\u7a7a\u95f4\u7528\u6765\u521b\u5efa\u7ebf\u7a0b\u7684\u63a5\u53e3\uff0c\u5e76\u4e0d\u80fd\u8bc1\u660e\u90a3\u4e48\u665alinux\u624d\u652f\u6301\u7ebf\u7a0b\u3002 \u540e\u6765\u7528PC\u7684\u65f6\u5019\u641c\u7d22\u4e86\u4e00\u4e0b\uff0c\u5728The Linux Document Project\u7684\u5b98\u65b9\u7f51\u7ad9\u627e\u5230\u4e86\u7b54\u6848\uff1a http:\/\/www.tldp.org\/FAQ\/Threads-FAQ\/Support.html Does Linux support threads? Yes. As of 1.3.56, Linux has supported kernel-space multithreading. There also have been user-space thread libraries around as early as 1.0.9. There is on-going effort to refine and make the kernel more reentrant. With the introduction of 2.1.x, the memory space is being &hellip; <a href=\"https:\/\/ykyi.net\/?p=1003\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux\u662f\u4ece\u4ec0\u4e48\u65f6\u5019\u5f00\u59cb\u652f\u6301\u7ebf\u7a0b\u7684.&#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":[44,45,51],"class_list":["post-1003","post","type-post","status-publish","format-standard","hentry","category-unix_linux","tag-kernel","tag-kernel-thread","tag-linux-2"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/1003","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=1003"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/1003\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}