Page 26 - slides.dvi
P. 26

•
                                                              •
                           •
                                                                                 •
                    •
                                                  –
                                                                                              –
                                       –
                                                                           –
                                                                     –
                                                                                         –
                                             –
                                                       –
   Operating
                           e.g.
                    e.g.
                                                              Parent
                                                  task
                                                                                                               Process
                                                       child
                                                                                 Process
                                                                                                     Process
   Systems
                                                                           makes
                                             parent
                                       (many
                           Unix
                                                                                              output
   —
                                                                                         process’
                                             is
                                                       has
                                                                     attempts
                                                              may
                                                                           an
                           has
                                  terminates)
                                                                     to
                                                                                              data
   Process
                                                  assigned
                    NT/2K/XP
                                                                                                     executes
                                                                                 performs
                                             exiting
                                                  to
                                       operating
                                                                                              from
                                                                                 an
                    has
                                                                                         resources
   Life-cycle
                                                                           attempt
                                                                                                     last
                                                       exceeded
                                                              terminate
                           wait(),
                                                                     execute
               TerminateProcess()
                                                                           to
                                                                                                               Termination
                                                                                         are
                                                  child
                                                                     a
                                                                                              child
               for
                                                  is
                                                                                 illegal
                                       systems
                                                                                              to
                                                  no
                                                                           access
                           exit()
                                                       allocated
                                       do
                                             (“cascading
                                                                                                     statement
                                                              execution
               killing
                                                                     privileged
                                                              of
                                       not
                           and
                                                                                              parent
                                                                                         deallocated
                                                                                                     and
                                                  longer
                    ExitProcess()
                                                                                 operation,
                                                                           memory
                                                                                         by
                                                              child
               others.
                                                       resources
                                       allow
                    for
                                                                                                     asks
                                                                           to
                                                                                 e.g.
                                                                                              (wait)
                                       a
                                                                                         the
                           kill()
                    self
                                                                                                     the
                                                  required
                                             termination”)
                                                                     instruction
                                                                                         OS.
                                       child
                                                                           which
                                                              processes
                                                                           it
                                       to
                                                                           is
                                                                                                     operating
                    termination
                                                                           not
                                                              (abort,
                                       continue
                    and
                                       if
                                                                                                     system
                                                              kill),
                                       its
                                                                                                     to
                                                              e.g.
                                                                           authorised,
                                                                                                     delete
                                       parent
                                                                                                     it
                                                              because
                                                                                                     (exit):
   22
   21   22   23   24   25   26   27   28   29   30   31