Windows
+-PID---+
>>-SysQueryProcess(" -+-TID---+- ")----------------------------><
+-PPRIO-+
+-TPRIO-+
+-PTIME-+
+-TTIME-+
Unix
+-PID------+
>>-SysQueryProcess(" -+----------+- ")-------------------------><
+-PPID-----+
+-PPRIO----+
+-PTIME----+
+-PMEM-----+
+-PSWAPS---+
+-PRCVDSIG-+
Retrieves information about the current process or Windows thread.
Parameter:
- info
The kind of information requested:
- PID
Returns the process ID of the current process.
- PPID
Returns the parent process ID of the current process.
- TID
Returns the thread ID of the current thread.
- PPRIO
Returns the priority class of the current process.
- TPRIO
Returns the relative priority of the current thread.
- PTIME
Returns time information on the current process.
- TTIME
Returns time information on the current thread.
- PMEM
Returns the maximum memory (RSS) used by the current process.
- PRCVDSIG
Returns the number of signals that have been received by the process.
Return codes:
For PID, PPID or TID: an ID
For Windows PPRIO: "IDLE", "NORMAL", "HIGH", "REALTIME", or "UNKNOWN"
For Unix PPRIO: a number from -20 to +20.
For TPRIO: "IDLE", "LOWEST", "BELOW_NORMAL", "NORMAL", "ABOVE_NORMAL", "HIGHEST", "TIME_CRITICAL", or "UNKNOWN"
For Windows PTIME or TTIME: the creation date and time, the amount of time that the process executed in kernel mode, and the amount of time that the process executed in user mode
For Unix PTIME: the summary and the duration that the process executed in kernel mode, and the duration that the process executed in user mode