Skip to main content
Version: Next

Count tasks

Count tasks : Integer

ParameterTypeDescription
Function resultIntegerNumber of open processes (including kernel processes)

Description

Count tasks returns the highest alive process number in the 4D single-user, 4D remote, or 4D Server (stored procedures) version. Processes are numbered in the order in which they are created. When still no process has been aborted during the session, then this command returns the total number of open processes.

This number takes into account all processes, even those that are automatically managed by 4D. These include the Main process, Design process, Cache Manager process, Indexing process, and Web Server process.

Example

See the example for Process state and for the Semaphore.

See also

Count user processes
Count users
Process info
Process state