wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Types of Threads

profile
Ashlyn Rodrigues
Aug 02, 2023
1 Like
0 Discussions
77 Reads

Threads are like workers in an operating system. They help get things done faster by doing multiple tasks at the same time.

There are two main types of threads:

1. User-level threads: They are managed by the application itself and are quick to switch between tasks. However, they have some limitations in using system resources.

2. Kernel-level threads: These threads are managed by the operating system, and they can handle more tasks at once. They are better at using multiple CPU cores efficiently.

Think of it like this: User-level threads are like independent contractors hired by an application, and kernel-level threads are like employees directly managed by the operating system.

In terms of how they work together, there are different models:

- Many-to-One Model: Multiple user-level threads are managed by a single kernel-level thread. This model is simple but lacks real parallelism.

- One-to-One Model: Each user-level thread is directly managed by a separate kernel-level thread. It offers true parallelism but can be resource-intensive.

- Many-to-Many Model: Multiple user-level threads are mapped to a smaller number of kernel-level threads, striking a balance between concurrency and resource usage.

The choice of thread type and model depends on the application's needs and the system's capabilities. So, threads help applications get things done faster and efficiently by doing tasks simultaneously.


Comments ()


Sign in

Read Next

Article on IT development trends

Blog banner

Getting started with Android Studio

Blog banner

Life

Blog banner

Travelling blog

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

How return on investment is defined in IT services

Blog banner

Secure Hypertext transfer protocol

Blog banner

Virtual Machine

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

Mobile Security

Blog banner

Starvation

Blog banner

John Titor: The Time Traveler

Blog banner

Banaras

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

Disk scheduling

Blog banner

Philadelphia Experiment : Was it real?

Blog banner

Scala - a programming tool

Blog banner

Importance of self defence for girls

Blog banner

Deadlock

Blog banner

Apache Spark :- Powerful Data Processing Tool

Blog banner

Buffer overflow

Blog banner

RAID

Blog banner

The Essential Guide to Dynamic Arrays vs. Linked Lists: Which to Use and When ?

Blog banner

Top 3 Places To Stay In Vienna

Blog banner

OS Assignment 1

Blog banner

Importance of Education

Blog banner

Operating Systems

Blog banner

Understanding Endometriosis and Its Psychological Impact on Quality of Life

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

Strengthening Active Directory Security

Blog banner

Spotify

Blog banner

Modern operating system

Blog banner

Memory input output management

Blog banner

INTERNET

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

A Deep Dive

Blog banner

Memory Management

Blog banner

Top 5 Tech Innovations of 2018

Blog banner

Severe landslides continue to cause concern in Joshimath, Uttarakhand

Blog banner

What are Virtual Machines

Blog banner

Memory hierarchy

Blog banner

Microsoft powerpoint presentation

Blog banner