What are Processes and Threads?

Processes

When you open applications on your computer (word processor, music player), these become different processes. Applications are first loaded from the hard disk to RAM, where they become active processes.

Threads

Multiple processes can have multiple threads running inside them:

Most modern applications are multi-threaded because multi-threading provides better CPU utilization and takes advantage of multi-core processors.


Process Memory Structure

A typical process in memory contains:

Single-threaded Process

Multi-threaded Process