• <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 閱讀(670) 評論(0)  編輯 收藏 引用 所屬分類: linux kernel
            <2010年8月>
            25262728293031
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234

            常用鏈接

            留言簿(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

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            国产综合免费精品久久久| 伊人久久大香线蕉av一区| 亚洲国产精品无码久久| 亚洲欧洲精品成人久久曰影片| 91久久婷婷国产综合精品青草| 人妻少妇久久中文字幕 | 久久精品无码一区二区无码| 亚洲国产精品综合久久网络| 久久伊人亚洲AV无码网站| 国产日韩久久免费影院| 大蕉久久伊人中文字幕| 青青草原综合久久| 99久久亚洲综合精品成人| 一本一道久久精品综合| 国产高潮久久免费观看| 久久精品成人免费观看97| 日韩va亚洲va欧美va久久| 亚洲国产婷婷香蕉久久久久久| 一97日本道伊人久久综合影院| 国产精品久久新婚兰兰| 亚洲精品美女久久久久99| 99久久无色码中文字幕| 国产伊人久久| 亚洲中文字幕无码一久久区| AV无码久久久久不卡网站下载 | 99久久精品九九亚洲精品| 久久国产免费直播| 久久伊人五月丁香狠狠色| 国产亚洲色婷婷久久99精品| 国产精品久久久99| 狠狠色丁香久久婷婷综合_中| 久久久久亚洲AV成人片| 久久久久一本毛久久久| 久久久久久久97| 老司机国内精品久久久久| 99久久国产亚洲综合精品| 久久国产乱子伦精品免费强| 亚洲午夜无码AV毛片久久| 国产精品视频久久| 久久中文字幕人妻丝袜| 国产精品成人无码久久久久久 |