<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                #**PCB概述** 引用自《萊昂氏UNIX源代碼分析》P30頁358行,源代碼如下: ``` struct proc { char p_stat; char p_flag; char p_pri; // priority,negative is high char p_sig; // signal number sent to this process char p_uid; // user id, used to direct tty signals char p_time; // resident time for scheduling char p_cpu; // cpu usage for scheduling char p_nice; // nice for scheduling int p_ttyp; // controlling tty int p_pid; // unique process id int p_ppid; // process id of parent int p_addr; // address of swappable image int p_size; // size of swappable image(\*64 bytes) int p_wehan; // event process is awaiting int * p_textp; // pointer to text structure } proc[NPROC]; ``` 這就是在早期UNIX操作系統中的PCB進程控制塊兒的15個字段源代碼。 要想讀懂這15字段光靠注釋和書中的解釋是遠遠不夠的。 可以把把這15個字段分成3層(它的屬性:alive、3D動態): **cpu層;(內核cpu)** **程序員層;(用戶user)** **程序層;(進程)** 基本上操作系統也是靠這個結構體來完成對應的操作算法的。 **1、程序加載到內存轉變為進程**,**2、進程的3層調用**:cpu調用(改用調度?),進程相互調用(改用通信?),用戶調用(改用操作?),**3、各個字段處理對應需求的數據結構**。 我使用3D動態這個詞的原因,大家不妨想一想: 如果,我把一個進程從計算機里拉出來(類似拉心臟),是不是有好多連接RAM、CPU、鼠標、顯示器等有關的tty字段,這和血管不是很像么?
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看