Note
This page is for computer processes. I donāt know why youād ever make one about the English term, but hey, in case you do, youāve now got a clear distinction.
What
Itās an instance of a program thatās currently executing. It has states. About:
- They must be loaded into Virtual Memory and uniquely identified (
pid). pidās have CPU times, memory usage, user ID that spawned it -uid, etc.- Processes might control other processes (fork).
- Child process inherits context from parent process.
What can it do?
- By default, the process only has the privileges that itās parent
uidhas.
Permissions! (Lowkey quite cool)
Every process has 3 user IDs:
- Real User ID (
uid): The user ID that actually started the process - Effective User ID (
euid): The user ID that determines the processā privileges. For example, you may want to temporarily runsudo, at which point the terminalās command changes itseuidto0(rootās). - Saved UserID (
suid): We save the user ID before changing theeuidso we can go back to it.