4D v20.1PROCESS PROPERTIES |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.1
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 | |
| 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 Log flusher | Lange Ganzzahl | -58 | |
| Indexing process | Lange Ganzzahl | -5 | |
| Internal 4D server process | Lange Ganzzahl | -18 | |
| Internal timer process | Lange Ganzzahl | -25 | |
| Log file process | Lange Ganzzahl | -20 | |
| 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 user process | Lange Ganzzahl | 4 | |
| Restore Process | Lange Ganzzahl | -21 | |
| Serial Port Manager | Lange Ganzzahl | -6 | |
| Server interface process | Lange Ganzzahl | -15 | |
| SOAP process | Lange Ganzzahl | -33 | |
| SQL Method execution process | Lange Ganzzahl | -24 | |
| 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 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)
Fehler melden