Back to Academy
process thread
What is a Process
A process is an independent program in execution with its own memory space, program counter, and system resources. Each process is isolated from others by the operating system, meaning one process cannot directly access another's memory. The OS assigns each process a unique Process ID (PID) and manages its lifecycle from creation to termination.
Use Cases
- •Running a web server as a separate process so a crash doesn't bring down other services
- •Spawning worker processes in Node.js cluster mode to utilize multiple CPU cores
- •Database engines running as independent processes with dedicated memory regions
- •Browser tabs running in separate processes for fault isolation (Chrome multi-process architecture)
Visualization
Implementation
Output
Click "Run Code" to see output...