Guardian Programmer's Guide

Table Of Contents
Creating and Managing Processes
Guardian Programmer’s Guide 421922-014
16 - 5
Process Organization
Kinds of Processes
A TNS/R native process is a process that is initiated by executing a TNS/R native
program. A native process executes in the native operating environment of the TNS/R
CPU.
A TNS process is a process that is initiated by executing a TNS or accelerated
program. A TNS process executes within an emulated TNS operating environment.
Process Organization
Executable code for a TNS/R process is contained in the following objects:
The initial program of the process, called user code. This code is read from the
program file.
A system library containing system-related procedures. This includes operating
system code that is accessible by the process using system procedure calls.
Optionally, a user library containing code that can be shared among several
applications. This code is read from an object file containing the user-supplied
library.
Optionally, for TNS/R native processes, one or more TNS/R native shared run-time
libraries (SRLs). An SRL functions similar to an extension of the system library
except that the System Library code is intercepted by the User Libraries. However,
the shared run-time libraries (SRLs) are not intercepted by the user libraries.
Executable code for a TNS/E native process is contained in the following objects:
The initial program of the process, called user code. This code is read from the
program file.
Dynamic-link libraries (DLLs). These include:
°
The system library, which contains system-related procedures and operating
system code that is accessible by the process using system procedure calls.
The system library consists of a set of implicit DLLs.
°
Other DLLs supplied by HP, such as the C run-time library.
°
User-created DLLs.
When a process is created, it occupies space in virtual memory. The following
paragraphs discuss the basic organization of a process in terms of code spaces, which
are associated with the objects in the preceding list, and data spaces.
Code Spaces
A process has distinct code spaces that contain executable code. For TNS processes
the code spaces are designated as follows:
UC (user code)