What is a PID on a Mac?
Last reviewed: 19 November 2026.
A PID, or process ID, is the number macOS assigns to each running process so that it can be told apart from every other one, even when several have the same name. Activity Monitor shows it in the PID column, and Terminal commands such as ps, top, kill and sample use it to pick a process. A PID belongs to one process only while it runs; after the process exits, the number can be given to a new one.
How do you find a process's PID?
In Activity Monitor, the PID column appears on every tab. Type a name in the search field to filter the list. The process window (double-click a row) also shows its Parent Process with that parent's PID.
In Terminal:
pgrep -l Finder
ps -axo pid,user,comm | grep -i safari
ps -o ppid= -p 1234 # parent PID of PID 1234 (an example)
pgrep -l prints the PID and name of each match.
What uses a PID?
| Command | What it does with the PID |
|---|---|
kill 1234 | Sends a signal to that process, by default SIGTERM to ask it to quit. |
top -pid 1234 | Shows only that process. |
sample 1234 | Records what the process is doing, to diagnose a hang or high CPU. |
footprint 1234 | Shows the process's memory in detail. |
lsof -p 1234 | Lists the files and network connections it has open. |
Which PIDs are special?
PID 1 is launchd, the first process macOS starts, which starts and manages most others. Its manual says the kernel runs it as the first process on the system. When a process's parent exits, the process is handed to PID 1. In Activity Monitor, kernel_task shows the kernel's activity as if it were a process.
Other PIDs carry no meaning: they are handed out as processes start, so the same app gets a different PID every time it opens.
How can Thrum help?
Thrum keeps a live CPU graph in the menu bar. One click shows the eight processes using the most CPU. An optional alert tells you when a process stays above a CPU level you choose (50 to 200% of one core) for 1 to 10 minutes.
Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.
Questions
Can two processes have the same PID?
Not at the same time. A PID is unique among running processes; it can be reused after a process exits.
Why does an app's PID change?
Each launch creates a new process with a new PID. Scripts should look up the PID each time, for example with pgrep.
Sources
- ps(1), pgrep(1), kill(1) and launchd(8) man pages: run man ps in Terminal
- Apple: View information about Mac processes in Activity Monitor