ProcessBased and ThreadBased Multitasking (original) (raw)

Process-Based and Thread-Based Multitasking

Last Updated : 15 Apr, 2026

Multitasking is the ability of an operating system to run multiple tasks by rapidly switching the CPU between them. This switching, known as context switching, gives each task a small time slice, creating the illusion that tasks are running simultaneously and ensuring smooth system performance.

Works of Multitasking

Multitasking is achieved through:

multitasking

Multitasking

Types of Multitasking

Multitasking can be classified into two types based on the execution unit:

  1. Process-based Multitasking
  2. Thread-based Multitasking

Now lets discuss these two in brief:

Process Based Multitasking

In process-based multitasking, two or more independent processes run concurrently. Each process is self-contained with:

process_based_multitasking

Process Based Multitasking

Key Features

Benefits

Limitations

**Example: Running a music player while using a web browser.
Both are separate processes with independent memory and resources.

Thread Based Multitasking(Multithreading)

In thread-based multitasking, multiple threads run within a single process. Threads share:

fig_thread_based_multitasking

Thread based Multitasking

Key Features

Benefits

Limitations

Example