4D v16.3

Count tasks

Home

 
4D v16.3
Count tasks

Count tasks 


 

Count tasks -> Function result 
Parameter Type   Description
Function result  Longint in Number of open processes (including kernel processes)

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 On Exit database method.



See also 

Count user processes
Count users
PROCESS PROPERTIES
Process state

 
PROPERTIES 

Product: 4D
Theme: Processes
Number: 335

This command can be run in preemptive processes

 
HISTORY 

Created: < 4D v6

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)