• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 297,  comments - 15,  trackbacks - 0

            A kernel thread, sometimes called a LWP (Lightweight Process) is created and scheduled by the kernel. Kernel threads are often more expensive to create than user threads and the system calls to directly create kernel threads are very platform specific.

            A user thread is normally created by a threading library and scheduling is managed by the threading library itself (Which runs in user mode). All user threads belong to process that created them. The advantage of user threads is that they are portable.

            The major difference can be seen when using multiprocessor systems, user threads completely managed by the threading library can't be ran in parallel on the different CPUs, although this means they will run fine on uniprocessor systems. Since kernel threads use the kernel scheduler, different kernel threads can run on different CPUs.

            Many systems implement threading differently,

            A many-to-one threading model maps many user processes directly to one kernel thread, the kernel thread can be thought of as the main process.

            A one-to-one threading model maps each user thread directly to one kernel thread, this model allows parallel processing on the multiprocessor systems. Each kernel thread can be thought of as a VP (Virtual Process) which is managed by the scheduler.


            from:
            http://blog.csdn.net/jicheng687/archive/2009/09/08/4527676.aspx


            posted on 2010-02-27 10:00 chatler 閱讀(680) 評論(0)  編輯 收藏 引用 所屬分類: linux kernel
            <2010年2月>
            31123456
            78910111213
            14151617181920
            21222324252627
            28123456
            78910111213

            常用鏈接

            留言簿(10)

            隨筆分類(307)

            隨筆檔案(297)

            algorithm

            Books_Free_Online

            C++

            database

            Linux

            Linux shell

            linux socket

            misce

            • cloudward
            • 感覺這個博客還是不錯,雖然做的東西和我不大相關(guān),覺得看看還是有好處的

            network

            OSS

            • Google Android
            • Android is a software stack for mobile devices that includes an operating system, middleware and key applications. This early look at the Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.
            • os161 file list

            overall

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            国产精品久久波多野结衣| 久久九九兔免费精品6| 亚洲国产成人久久综合野外| 欧美亚洲色综久久精品国产| 中文精品久久久久人妻| 人妻少妇精品久久| 欧美精品一区二区久久 | 亚洲欧美日韩久久精品第一区| 久久久久久精品久久久久| 久久国产成人精品国产成人亚洲| 久久久久亚洲av无码专区喷水 | 久久久久久毛片免费看| 久久久久亚洲av无码专区喷水| 欧美丰满熟妇BBB久久久| 日产精品久久久久久久性色| av无码久久久久久不卡网站| 久久久久亚洲AV成人片| 99久久精品国产毛片| 久久久国产精华液| 模特私拍国产精品久久| 中文字幕无码久久人妻| 久久中文字幕精品| 久久精品中文騷妇女内射| 99久久精品毛片免费播放| 亚洲一区中文字幕久久| 日韩亚洲国产综合久久久| 亚洲乱码中文字幕久久孕妇黑人| 国产精品美女久久久| 日韩精品国产自在久久现线拍 | 亚洲精品蜜桃久久久久久| 久久久久久亚洲精品成人| 国产麻豆精品久久一二三| 久久精品国产久精国产| 一本久道久久综合狠狠躁AV| 久久99精品久久只有精品 | 久久亚洲国产成人精品无码区| 伊人 久久 精品| 97r久久精品国产99国产精| 国产精品久久久天天影视香蕉| 亚洲∧v久久久无码精品| 精品综合久久久久久97超人|