Process vs Thread

Processes have their own separate memory spaces and hold multiple threads.

Threads run in a process, share memory, and can be scheduled for execution. They have their own code, data, registers, and stack.

Per process itemsPer thread items
Address spaceProgram counter
Global variablesRegisters
Open filesStack
Child processesState
Pending alarms
Signals and signal handlers
Accounting information