SystemProcesses

SystemProcesses[]

gives a list of processes that you are running on your computer system.

SystemProcesses[All]

gives a list of all processes that are running on your computer system.

SystemProcesses[patt]

gives a list of all processes whose names match the string pattern patt.

SystemProcesses[propval]

gives a list of all processes for which property prop has value val.

SystemProcesses[{prop1val1,}]

gives a list of all processes for which property propi has value vali.

Details

  • SystemProcesses returns a list of ProcessObject objects.
  • SystemProcesses returns processes sorted by PID.
  • SystemProcesses[All] gives different processes on different computer systems:
  • Windowsall unelevated processes
    Macprocesses only for the current user
    Linuxall non-kernel processes for all users
  • In SystemProcesses[prop->val], properties that can be used include:
  • "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

Examples

open allclose all

Basic Examples  (1)

List processes for the current user:

In[1]:=
Click for copyable input
Out[1]=

List processes for any user:

In[2]:=
Click for copyable input
Out[2]=

List any process with "Wolfram" in its path:

In[3]:=
Click for copyable input
Out[3]=

Scope  (2)

Applications  (1)

Properties & Relations  (1)

Possible Issues  (1)

See Also

SystemProcessData  Processes  ProcessObject  StartProcess  KillProcess  $ProcessID  ProcessInformation

Introduced in 2018
(11.3)