Guardian Programmer's Guide

Table Of Contents
Creating and Managing Processes
Guardian Programmer’s Guide 421922-014
16 - 13
Relationship With Other Processes
Relationship of Processes Within a Job
A job is a collection of related processes that are grouped for batch processing. The
NetBatch utility identifies the job that a process belongs to by the job number held in
the PCB of each process; processes belonging to the same job have the same job
number.
A job ancestor is the process that started the first process in a job. For named and
unnamed processes, when a new process is started by a process within the job, two
job-related pieces of information are passed from the creator process to the new
process and saved in its PCB:
The job ID for this job
The process handle of the job ancestor
When a process that is part of a job gets deleted, the operating system sends a
process-deletion message to the job ancestor as well as to the deleted process’s
creator. In this way, the job ancestor can keep track of which processes are still
running.
Once again, because the linkage to the job ancestor is kept in the PCB of the process
being deleted, the job ancestor does not receive the Process deletion message if the
process is deleted because of a CPU failure. This is true even for named processes.
The job ancestor must therefore monitor all CPUs where it has processes running and
check for any CPU down messages.
Figure 16-3 shows job ancestor relationships.