Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
PROCESS PROPERTIES
|
PROCESS PROPERTIES ( Prozessnr ; Prozessname ; Prozesstatus ; Prozesszeit {; ProzModus {; EinmaligeID {; Ursprung}}} ) | ||||||||
Parameter | Typ | Beschreibung | ||||||
Prozessnr | Lange Ganzzahl |
![]() |
Prozessnummer | |||||
Prozessname | String |
![]() |
Prozessname | |||||
Prozesstatus | Lange Ganzzahl |
![]() |
Prozesstatus | |||||
Prozesszeit | Lange Ganzzahl |
![]() |
Vom Prozess angehäufte Zeit in Ticks | |||||
ProzModus | Boolean, Lange Ganzzahl |
![]() |
Wenn Boolean: Sichtbar (TRUE) oder ausgeblendet (FALSE) Wenn Lange Ganzzahl (bit Feld): bit 0 = Sichtbarkeit, bit 1 = Preemptive Ausführung |
|||||
EinmaligeID | Lange Ganzzahl |
![]() |
Einmalige Prozessnummer | |||||
Ursprung | Lange Ganzzahl |
![]() |
Ursprung des Prozesses | |||||
Der Befehl PROCESS PROPERTIES gibt verschiedene Informationen zum Prozess mit der in Prozessnr übergebenen Nummer zurück.
Hinweis: Ist der Prozess nicht vorhanden, bedeutet das, dass Sie im Parameter Prozessnr einen Wert übergeben haben, der nicht im Bereich zwischen 1 und der Anzahl vorhandener Prozesse (Count tasks) liegt. PROCESS PROPERTIES lässt die Parameter der Variablen dann unverändert.
Nach dem Aufruf:
Konstante Typ Wert Does not exist Lange Ganzzahl -100 Aborted Lange Ganzzahl -1 Executing Lange Ganzzahl 0 Delayed Lange Ganzzahl 1 Waiting for user event Lange Ganzzahl 2 Waiting for input output Lange Ganzzahl 3 Waiting for internal flag Lange Ganzzahl 4 Paused Lange Ganzzahl 5
Konstante | Typ | Wert | Kommentar |
Apple event manager | Lange Ganzzahl | -7 | |
Backup process | Lange Ganzzahl | -19 | |
Cache manager | Lange Ganzzahl | -4 | |
Client manager process | Lange Ganzzahl | -31 | |
Compiler process | Lange Ganzzahl | -29 | |
Created from execution dialog | Lange Ganzzahl | 3 | |
Created from menu command | Lange Ganzzahl | 2 | |
DB4D Cron | Lange Ganzzahl | -49 | |
DB4D Flush cache | Lange Ganzzahl | -46 | |
DB4D Garbage collector | Lange Ganzzahl | -47 | |
DB4D Index builder | Lange Ganzzahl | -45 | |
DB4D Listener | Lange Ganzzahl | -51 | |
DB4D Mirror | Lange Ganzzahl | -50 | |
DB4D Worker pool user | Lange Ganzzahl | -48 | |
Design process | Lange Ganzzahl | -2 | |
Event manager | Lange Ganzzahl | -8 | |
Execute on client process | Lange Ganzzahl | -14 | |
Execute on server process | Lange Ganzzahl | 1 | |
External task | Lange Ganzzahl | -9 | |
HTTP Listener | Lange Ganzzahl | -56 | |
HTTP Log flusher | Lange Ganzzahl | -58 | |
HTTP Worker pool server | Lange Ganzzahl | -55 | |
Indexing process | Lange Ganzzahl | -5 | |
Internal 4D server process | Lange Ganzzahl | -18 | |
Internal timer process | Lange Ganzzahl | -25 | |
Log file process | Lange Ganzzahl | -20 | |
Logger process | Lange Ganzzahl | -57 | |
Main 4D process | Lange Ganzzahl | -39 | |
Main process | Lange Ganzzahl | -1 | |
Method editor macro process | Lange Ganzzahl | -17 | |
Monitor process | Lange Ganzzahl | -26 | |
MSC process | Lange Ganzzahl | -22 | |
None | Lange Ganzzahl | 0 | |
On exit process | Lange Ganzzahl | -16 | |
Other 4D process | Lange Ganzzahl | -10 | |
Other internal process | Lange Ganzzahl | -40 | |
Other user process | Lange Ganzzahl | 4 | |
Restore Process | Lange Ganzzahl | -21 | |
Serial Port Manager | Lange Ganzzahl | -6 | |
Server interface process | Lange Ganzzahl | -15 | |
ServerNet Listener | Lange Ganzzahl | -43 | |
ServerNet Session manager | Lange Ganzzahl | -44 | |
SOAP process | Lange Ganzzahl | -33 | |
SQL Listener | Lange Ganzzahl | -54 | |
SQL Method execution process | Lange Ganzzahl | -24 | |
SQL Net Session manager | Lange Ganzzahl | -53 | |
SQL Worker pool server | Lange Ganzzahl | -52 | |
Web process on 4D remote | Lange Ganzzahl | -12 | |
Web process with no context | Lange Ganzzahl | -3 | |
Web server process | Lange Ganzzahl | -13 | |
Web server spare process | Lange Ganzzahl | -32 | |
Worker pool in use | Lange Ganzzahl | -41 | |
Worker pool spare | Lange Ganzzahl | -42 | |
Worker process | Lange Ganzzahl | 5 | Worker Prozess, vom Benutzer gestartet |
Folgendes Beispiel gibt Name, Status und beanspruchte Zeit in den Variablen vName, vState, und vTimeSpent für den aktuellen Prozess zurück:
C_TEXT(vName) ` Initialisiere die Variablen
C_LONGINT(vState)
C_LONGINT(vTime)
PROCESS PROPERTIES(Current process;vName;vState;vTimeSpent)
Siehe Beispiel zur Semaphore
Die Sichtbarkeit und den Ausführungsmodus für den aktuellen Prozess abfragen:
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 //wahr, wenn sichtbar
isPreemptive:=vFlags?? 1 //wahr, wenn preemptive
Count tasks
Get process activity
Preemptive 4D Prozesse
Process state
Produkt: 4D
Thema: Prozesse
Nummer:
336
Geändert: 4D v11 SQL Release 3
Geändert: 4D v15 R5
4D Programmiersprache ( 4D v20)
4D Programmiersprache ( 4D v20.1)
4D Programmiersprache ( 4D v20.2)
4D Programmiersprache ( 4D v20.3)
4D Programmiersprache ( 4D v20.4)
4D Programmiersprache ( 4D v20.5)
4D Programmiersprache ( 4D v20.6)