|
This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19.8
PROCESS PROPERTIES
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PROCESS PROPERTIES ( process ; procName ; procState ; procTime {; procMode {; uniqueID {; origin}}} ) | ||||||||
| Parameter | Type | Description | ||||||
| process | Longint |
|
Process number | |||||
| procName | String |
|
Process name | |||||
| procState | Longint |
|
Process state | |||||
| procTime | Longint |
|
Cumulative time taken by process in ticks | |||||
| procMode | Boolean, Longint |
|
If Boolean: Visible (True) or Hidden (False) If Longint (bit field): bit 0 = Visibility, bit 1 = Preemptive execution |
|||||
| uniqueID | Longint |
|
Unique process ID | |||||
| origin | Longint |
|
Origin of the process | |||||
The PROCESS PROPERTIES command returns various information about the process whose process number you pass in process.
Note: If the process does not exist, which means you did not pass in process a number in the range 1 to Count tasks, PROCESS PROPERTIES leaves the variable parameters unchanged.
After the call:
| Constant | Type | Value |
| Does not exist | Longint | -100 |
| Aborted | Longint | -1 |
| Executing | Longint | 0 |
| Delayed | Longint | 1 |
| Waiting for user event | Longint | 2 |
| Waiting for input output | Longint | 3 |
| Waiting for internal flag | Longint | 4 |
| Paused | Longint | 5 |
| Constant | Type | Value |
| Apple event manager | Longint | -7 |
| Backup process | Longint | -19 |
| Cache manager | Longint | -4 |
| Client manager process | Longint | -31 |
| Compiler process | Longint | -29 |
| Created from execution dialog | Longint | 3 |
| Created from menu command | Longint | 2 |
| DB4D Cron | Longint | -49 |
| DB4D Flush cache | Longint | -46 |
| DB4D Garbage collector | Longint | -47 |
| DB4D Index builder | Longint | -45 |
| DB4D Listener | Longint | -51 |
| DB4D Mirror | Longint | -50 |
| DB4D Worker pool user | Longint | -48 |
| Design process | Longint | -2 |
| Event manager | Longint | -8 |
| Execute on client process | Longint | -14 |
| Execute on server process | Longint | 1 |
| External task | Longint | -9 |
| HTTP Listener | Longint | -56 |
| HTTP Log flusher | Longint | -58 |
| HTTP Worker pool server | Longint | -55 |
| Indexing process | Longint | -5 |
| Internal 4D server process | Longint | -18 |
| Internal timer process | Longint | -25 |
| Log file process | Longint | -20 |
| Logger process | Longint | -57 |
| Main 4D process | Longint | -39 |
| Main process | Longint | -1 |
| Method editor macro process | Longint | -17 |
| Monitor process | Longint | -26 |
| MSC process | Longint | -22 |
| None | Longint | 0 |
| On exit process | Longint | -16 |
| Other 4D process | Longint | -10 |
| Other internal process | Longint | -40 |
| Other user process | Longint | 4 |
| Restore Process | Longint | -21 |
| Serial Port Manager | Longint | -6 |
| Server interface process | Longint | -15 |
| ServerNet Listener | Longint | -43 |
| ServerNet Session manager | Longint | -44 |
| SOAP process | Longint | -33 |
| SQL Listener | Longint | -54 |
| SQL Method execution process | Longint | -24 |
| SQL Net Session manager | Longint | -53 |
| SQL Worker pool server | Longint | -52 |
| Web process on 4D remote | Longint | -12 |
| Web process with no context | Longint | -3 |
| Web server process | Longint | -13 |
| Web server spare process | Longint | -32 |
| Worker pool in use | Longint | -41 |
| Worker pool spare | Longint | -42 |
| Worker process | Longint | 5 |
The following example returns the name, state, and time taken in the variables vName, vState, and vTimeSpent for the current process:
C_TEXT(vName) //Initialize the variables
C_LONGINT(vState)
C_LONGINT(vTimeSpent)
PROCESS PROPERTIES(Current process;vName;vState;vTimeSpent)See example for Semaphore.
You want to find out the visibility and execution mode of the current process. You can write:
C_TEXT(vName)
C_LONGINT(vState)
C_LONGINT(vTime)
C_LONGINT(vFlags)
C_BOOLEAN(isVisible)
C_BOOLEAN(isPreemptive)
PROCESS PROPERTIES(Current process;vName;vState;vTime;vFlags)
isVisible:=vFlags?? 0 //true if visible
isPreemptive:=vFlags?? 1 //true if preemptive
Count tasks
Get process activity
Preemptive 4D processes
Process state
Product: 4D
Theme: Processes
Number:
336
Modified: 4D v11 SQL Release 3
Modified: 4D v15 R5
4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)
Add a comment