Changes between Version 3 and Version 4 of wade/linuxProgramming


Ignore:
Timestamp:
Jan 9, 2009, 5:33:42 PM (15 years ago)
Author:
wade
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • wade/linuxProgramming

    v3 v4  
    3737
    3838== Pipe ==
    39 read() 會被 block 住,所以不用擔心 parent 會比 child 先結束,而導致 child 也跟著結束 (因為 child process 是依附著 parent process 而存在,依存關係可透過 pstree 查詢)。
    40 
     39 * FD[0] 負責 read pipe。FD[1] 負責 write pipe。
     40 * read() 會被 block 住,所以不用擔心 parent 會比 child 先結束,而導致 child 也跟著結束 (因為 child process 是依附著 parent process 而存在,依存關係可透過 pstree 查詢)。
     41 * FD 也是分開,child 跟 parent 有各自的 FD[0]、FD[1]。
     42 
    4143== Reference ==
    4244 * [http://angkor.jazzbear.idv.tw/Linux_DivX/ Jazz 教學檔案]。