Threads
Threads
Threads
Threads are also known as Lightweight processes. Threads are a popular way to
improve the performance of an application through parallelism. Threads are
mainly used to represent a software approach in order to improve the
performance of an operating system just by reducing the overhead thread that
is mainly equivalent to a classical process.
As each thread has its own independent resource for process execution; thus
Multiple processes can be executed parallelly by increasing the number of
threads.
Threads
Types of Thread
User Threads
Kernel Threads
User threads are above the kernel and without kernel support. These are the threads that
application programmers use in their programs.
Kernel threads are supported within the kernel of the OS itself. All modern OSs support kernel-
level threads, allowing the kernel to perform multiple simultaneous tasks and/or to service
multiple kernel system calls simultaneously.
Types of Thread
Multithreading Models
The user threads must be mapped to kernel threads, by one of the following
strategies: