• <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 閱讀(682) 評論(0)  編輯 收藏 引用 所屬分類: linux kernel
            <2010年11月>
            31123456
            78910111213
            14151617181920
            21222324252627
            2829301234
            567891011

            常用鏈接

            留言簿(10)

            隨筆分類(307)

            隨筆檔案(297)

            algorithm

            Books_Free_Online

            C++

            database

            Linux

            Linux shell

            linux socket

            misce

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

            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

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            丁香狠狠色婷婷久久综合| 精品精品国产自在久久高清 | 久久精品国产亚洲AV嫖农村妇女 | 国产精品久久久久AV福利动漫| 69久久夜色精品国产69| 久久777国产线看观看精品| 国产精品九九久久免费视频| 亚洲伊人久久成综合人影院 | 久久精品国产亚洲AV香蕉| 97久久久精品综合88久久| 国产精品一久久香蕉国产线看| 久久噜噜电影你懂的| 色婷婷综合久久久久中文 | 亚洲精品国产综合久久一线| 日韩精品久久无码中文字幕| 99久久精品无码一区二区毛片| 亚洲精品高清国产一线久久| 最新久久免费视频| 婷婷综合久久中文字幕| 狠狠色丁香久久婷婷综合| 亚洲国产综合久久天堂| 久久久久久综合一区中文字幕| 久久受www免费人成_看片中文| 久久久久九九精品影院| 91久久香蕉国产熟女线看| 午夜精品久久久久久久久| 久久久久综合国产欧美一区二区| 久久久精品视频免费观看 | 精品水蜜桃久久久久久久| 久久久久久久综合日本亚洲| 亚洲国产欧洲综合997久久| 欧美精品一区二区久久| 99久久免费只有精品国产| 成人久久精品一区二区三区| 香蕉久久av一区二区三区| 中文字幕人妻色偷偷久久| 狠狠色丁香久久婷婷综合蜜芽五月 | 久久久久久国产精品无码下载| 国产精品久久久天天影视香蕉| 久久久久四虎国产精品| 777久久精品一区二区三区无码 |