Process termination

Process termination occurs when the last enclave in the process terminates. Process termination dissolves the structure that kept track of the enclaves within the process and returns to the creator of the process. The PCB and associated resources are released. Language Environment explicitly relinquishes all resources that were obtained by Language Environment. Routines that obtain resources directly from the host system (such as opening a DCB) need to explicitly relinquish the resource because Language Environment does not have any knowledge of its acquisition.