Test Initial Thread (TSTINLTH)


Bound program access

Built-in number for TSTINLTH is 509. TSTINLTH ( ) : signed binary(4) /* result */

Description  The result is set to indicate whether execution is within a process's initial thread or a secondary thread. A process's initial thread is the thread that is implicitly initiated by the machine when a process is initiated. Each process has a minimum of one thread associated with it. This is true regardless of whether the initiation phase, problem phase, or termination phase program of the initial thread is executing.

The returned result will have one of two possible values.

0 execution is within a secondary thread.
1 execution is within the initial thread.

Authorization Required

Lock Enforcement

Exceptions

06 Addressing

08 Argument/Parameter

10 Damage Encountered

1C Machine-Dependent

20 Machine Support

22 Object Access

24 Pointer Specification

2E Resource Control Limit

36 Space Management

44 Protection Violation