SystemProcessData

SystemProcessData[]

gives a dataset of information about processes that you are running on your computer system.

SystemProcessData[All]

gives information about all processes running on your computer system.

SystemProcessData[patt]

gives information about processes whose names or paths contain the string pattern patt.

SystemProcessData[propval]

gives information about processes for which property prop has value val.

SystemProcessData[{prop1val1,}]

gives information about processes for which property propi has value vali.

Details

  • SystemProcessData gives a dataset with the following keys for each process:
  • "PID"process ID
    "PPID"parent process ID
    "Memory"memory the process is using
    "StartTime"date the process was started
    "RealTime"time since the process started
    "SystemTime"CPU time spent in kernel space
    "UserTime"CPU time spent in user space
    "Threads"number of threads
    "User"the user the process belongs to
    "Program"name of the program
    "Path"full file path of the program
    "Dataset"dataset of all properties and values
  • In the dataset returned by SystemProcessData, processes are sorted by PID.
  • SystemProcessData[All] gives different process on different computer systems:
  • Windowsall unelevated processes
    Macprocesses only for the current user
    Linuxall non-kernel processes for all users
  • In SystemProcessData[prop->val], prop can be any of the keys associated with each process.

Examples

open allclose all

Basic Examples  (1)

List processes for the current user:

List all available processes:

Return the process that matches the current $ProcessID:

Return the processes that match the current $Username:

Scope  (1)

Get all available processes:

Get process information on the process with the lowest PID:

Count processes with the same program name and sort in descending order:

List 10 processes with the most memory:

Neat Examples  (1)

Submit a task that retrieves the processes with the most memory:

Dynamically display these processes:

Remove the task:

Wolfram Research (2018), SystemProcessData, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemProcessData.html.

Text

Wolfram Research (2018), SystemProcessData, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemProcessData.html.

CMS

Wolfram Language. 2018. "SystemProcessData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SystemProcessData.html.

APA

Wolfram Language. (2018). SystemProcessData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SystemProcessData.html

BibTeX

@misc{reference.wolfram_2024_systemprocessdata, author="Wolfram Research", title="{SystemProcessData}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/SystemProcessData.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_systemprocessdata, organization={Wolfram Research}, title={SystemProcessData}, year={2018}, url={https://reference.wolfram.com/language/ref/SystemProcessData.html}, note=[Accessed: 21-November-2024 ]}