Thread in Operating System (original) (raw)

Last Updated : 15 Apr, 2026

A thread is a single sequence stream within a process and is called a lightweight process because it is smaller and faster. It allows multiple tasks to run simultaneously, improving program efficiency.

multithreading-in-os

Need of Threads

Threads are needed in modern operating systems and applications because they:

Components of Threads

These are the basic components of the Operating System.

**Types of Threads

Threads are mainly classified based on how they are managed and scheduled in an operating system. There are two primary types of threads.

User Level vs Kernel Level Threads - GeeksforGeeks

User-Level Threads (ULTs)

Kernel-Level Threads (KLTs)

Threading Issues

Process vs Thread

The primary difference is that threads within the same process run in a shared memory space, while processes run in separate memory spaces. Threads are not independent of one another like processes are, and as a result, threads share with other threads their code section, data section, and OS resources (like open files and signals). But, like a process, a thread has its own program counter (PC), register set, and stack space. For more, refer to Process vs Thread.