ここは旧式の4DドキュメントWebサイトです。最新のアップデートされたドキュメントを読むには新サイトをご利用下さい→ developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19.8
PROCESS PROPERTIES
|
PROCESS PROPERTIES ( process ; procName ; procState ; procTime {; procMode {; uniqueID {; origin}}} ) | ||||||||
引数 | 型 | 説明 | ||||||
process | 倍長整数 |
![]() |
プロセス番号 | |||||
procName | 文字 |
![]() |
プロセス名 | |||||
procState | 倍長整数 |
![]() |
プロセスの状態 | |||||
procTime | 倍長整数 |
![]() |
プロセスの稼働時間 (Tick) | |||||
procMode | ブール, 倍長整数 |
![]() |
TRUE: 表示, FALSE: 非表示 | |||||
uniqueID | 倍長整数 |
![]() |
ユニークなプロセス番号 | |||||
origin | 倍長整数 |
![]() |
プロセスの発生源 | |||||
PROCESS PROPERTIESコマンドはprocessに渡したプロセス番号を持つプロセスに関する様々な情報を返します。
注: プロセスが存在しない場合、つまりprocess 引数に1からCount tasksまでの番号を渡さなかった場合、PROCESS PROPERTIES は変数パラメータの変更を行いません。
このコマンド呼出し後に:
定数 | 型 | 値 |
Does not exist | 倍長整数 | -100 |
Aborted | 倍長整数 | -1 |
Executing | 倍長整数 | 0 |
Delayed | 倍長整数 | 1 |
Waiting for user event | 倍長整数 | 2 |
Waiting for input output | 倍長整数 | 3 |
Waiting for internal flag | 倍長整数 | 4 |
Paused | 倍長整数 | 5 |
定数 | 型 | 値 | コメント |
Apple event manager | 倍長整数 | -7 | |
Backup process | 倍長整数 | -19 | |
Cache manager | 倍長整数 | -4 | |
Client manager process | 倍長整数 | -31 | |
Compiler process | 倍長整数 | -29 | |
Created from execution dialog | 倍長整数 | 3 | |
Created from menu command | 倍長整数 | 2 | |
DB4D Cron | 倍長整数 | -49 | |
DB4D Flush cache | 倍長整数 | -46 | |
DB4D Garbage collector | 倍長整数 | -47 | |
DB4D Index builder | 倍長整数 | -45 | |
DB4D Listener | 倍長整数 | -51 | |
DB4D Mirror | 倍長整数 | -50 | |
DB4D Worker pool user | 倍長整数 | -48 | |
Design process | 倍長整数 | -2 | |
Event manager | 倍長整数 | -8 | |
Execute on client process | 倍長整数 | -14 | |
Execute on server process | 倍長整数 | 1 | |
External task | 倍長整数 | -9 | |
HTTP Listener | 倍長整数 | -56 | |
HTTP Log flusher | 倍長整数 | -58 | |
HTTP Worker pool server | 倍長整数 | -55 | |
Indexing process | 倍長整数 | -5 | |
Internal 4D server process | 倍長整数 | -18 | |
Internal timer process | 倍長整数 | -25 | |
Log file process | 倍長整数 | -20 | |
Logger process | 倍長整数 | -57 | |
Main 4D process | 倍長整数 | -39 | |
Main process | 倍長整数 | -1 | |
Method editor macro process | 倍長整数 | -17 | |
Monitor process | 倍長整数 | -26 | |
MSC process | 倍長整数 | -22 | |
None | 倍長整数 | 0 | |
On exit process | 倍長整数 | -16 | |
Other 4D process | 倍長整数 | -10 | |
Other internal process | 倍長整数 | -40 | |
Other user process | 倍長整数 | 4 | |
Restore Process | 倍長整数 | -21 | |
Serial Port Manager | 倍長整数 | -6 | |
Server interface process | 倍長整数 | -15 | |
ServerNet Listener | 倍長整数 | -43 | |
ServerNet Session manager | 倍長整数 | -44 | |
SOAP process | 倍長整数 | -33 | |
SQL Listener | 倍長整数 | -54 | |
SQL Method execution process | 倍長整数 | -24 | |
SQL Net Session manager | 倍長整数 | -53 | |
SQL Worker pool server | 倍長整数 | -52 | |
Web process on 4D remote | 倍長整数 | -12 | |
Web process with no context | 倍長整数 | -3 | |
Web server process | 倍長整数 | -13 | |
Web server spare process | 倍長整数 | -32 | |
Worker pool in use | 倍長整数 | -41 | |
Worker pool spare | 倍長整数 | -42 | |
Worker process | 倍長整数 | 5 | ユーザーによってローンチされたワーカープロセス |
次の例は、変数vName, vState, vTimeSpentに現在のプロセスのプロセス名、プロセスステータス、プロセス時間を返します:
C_TEXT(vName) ` Initialize the variables
C_LONGINT(vState)
C_LONGINT(vTime)
PROCESS PROPERTIES(Current process;vName;vState;vTimeSpent)
Semaphoreの例題参照
カレントプロセスの表示状態と実行モードを調べたい場合を考えます。以下のようの書く事ができます:
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
isPreemptive:=vFlags?? 1 //プリエンプティブモードであればtrue
Count tasks
Get process activity
Process state
プリエンプティブ4Dプロセス
プロダクト: 4D
テーマ: プロセス
番号:
336
変更: 4D v11 SQL Release 3
変更: 4D v15 R5
ランゲージリファレンス ( 4D v19)
ランゲージリファレンス ( 4D v19.1)
ランゲージリファレンス ( 4D v19.4)
ランゲージリファレンス ( 4D v19.5)
ランゲージリファレンス ( 4D v19.6)
ランゲージリファレンス ( 4D v19.7)
ランゲージリファレンス ( 4D v19.8)