Retrieve Thread Count (RETTHCNT)


Bound program access

Built-in number for RETTHCNT is 514. RETTHCNT ( ) : unsigned binary(4) /* count */

Description  A count of the number of threads that have been implicitly or explicitly initiated within the process and which have not yet terminated is returned.

Since process initiation implicitly initiates a thread, the minimum value of count is 1.

It is possible that this instruction may be used in a cancel or return handler for a thread that is terminating. If it is, the count that will be returned will still include the terminating 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