Page 134 - slides.dvi
P. 134

•
               •
                      •
                                    •
                                           •
                             •
   Unix
   Case
                                    e.g.
                                                  One
                                                                                                               Pipes
                      Only
                                                  of
               Named
   Study—
                             Concept
                                           Logically
                                    reply
                                                  the
                             of
                      allows
                                    =
               pipes
   Interprocess
                                                  basic
                             “full”
                                           consists
                                    pipe(
                                           of
               address
                             and
                                    int
                                           a
                                                  Unix
   Communication
               this.
                                                                                            Process A
                                                  IPC
                                           pair
                      communication
               .
                                    fds[2]
               .
                                           of
                                                             write(fd, buf, n)
                                    )
                             “empty”
                                           fds,
                                                  schemes.
                      between
                                                                                                    free space
                             pipes.
                                           one
                                           for
                      processes
                                           each
                                                                                                new data
                      with
                                           ‘end’
                      a
                                           of
                                                                                                    old data

                                           the


                      common
                                                                                           Process B
                                           pipe.
                                                             read(fd, buf, n)




                      ancestor







                      (why?).

   130
   129   130   131   132   133   134   135   136   137   138   139