Page 25 - slides.dvi
P. 25

•
                                                                                                      •
               •
                                                                       •
                                                                                                •
                                                     •
                                                                                    –
                      –
                                                                                         –
                                                                              –
                                              –
                                         –
                                                           –
                           –
                                                                 –
   Operating
                                  e.g.
                           all
                                                                                                      Nearly
                                  on
                                                                                                               Process
                                         child
                                              child
                                                     Address
   Systems
                                                                 parent
                                                           parent
                                                                                         parent
                                                                              parent
                                                                                                Resource
                                                                                                      all
                                              is
   —
                                                                       Execution:
                                                                                    children
                                         has
               NT/2K/XP:
                      execve()
                                  Unix:
                                                                                         and
                                                                 and
                                         a
                                                                              and
                                                     space:
                                                           waits
                           resources
   Process
                                                                                    share
                                                                                                sharing:
                                                                                                      systems
                                                                              child
                                              duplicate
                                                                                                               Creation
                                                           until
                      system
   Life-cycle
                                  fork()
                                                                                                      are
                                                                 children
                                                                                         children
                           shared
                                              of
                                         program
                                                                                    subset
                      call
                                                                              share
                                                                                    of
                           (i.e.
                                                                                         share
                                                                              no
                                                           children
                                  system
                                              parent
                                         loaded
                      used
                                                                 execute
                                                                                         all
                                              or
               CreateProcess()
                           child
                      to
                                  call
                                         into
                           is
                                                                                                      hierarchical
                                                                                    parent’s
                                                                                                      :
                           a
                                         it.
                                                                              resources.
               syscall
                                                           terminate.
                      replace
                                  creates
                                                                                         resources,
                                                                                                      parent
                                  a
                                                                 concurrently,
                           clone).
                                                                                         or
                                                                                    resources,
                                                                 or
                                  new
               includes
                                                                                    or
                      process’
                                                                                                      processes
               name
                                  process
               of
                      memory
                                                                                                      create
                      with
                      a
               program
                                                                                                      children
               to
                      new
               be
                                                                                                      processes.
                      program.
               executed.
   21
   20   21   22   23   24   25   26   27   28   29   30