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

Bots and Cyber Security

Blog banner

Ola

Blog banner

Different Types of Data

Blog banner

Fitness

Blog banner

Race Condition

Blog banner

Direct Memory Access

Blog banner

Supervised and unsupervised learning

Blog banner

Direct memory access (DMA)

Blog banner

File management

Blog banner

GIS Mapping

Blog banner

What Makes Patola the Queen of Silk?

Blog banner

Interrupts

Blog banner

Understanding Univariate, Bivariate, and Multivariate Analysis in Data Science

Blog banner

Developments in Modern Operating Systems

Blog banner

Virtual Memory

Blog banner

Biometric Authentication Vulnerabilities

Blog banner

SESSION HIJACKING

Blog banner

Why Time Management Is the Secret to College Success (and How to Master It)

Blog banner

Spotify

Blog banner

MACHINE LEARNING

Blog banner

Password Generator - Lisp

Blog banner

Memory Management

Blog banner

Apache Kafka

Blog banner

I/O Management and Disk Scheduling

Blog banner

EVOLUTION OF THE MIRCOPROCESSOR

Blog banner

15 Websites that will make your life easier ...!!!

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Old age lifestyle

Blog banner

child Labour

Blog banner

Concept and definition of m-commerce

Blog banner

A Deep Dive

Blog banner

Article on different management system

Blog banner

Types of OS

Blog banner

BUSINESS MODELS OF E COMMERCE

Blog banner

Modern Operating system

Blog banner

Security issues

Blog banner

Evolution of operating systems

Blog banner

Friendship

Blog banner

AI and cyber Security

Blog banner

Telegram and it's features

Blog banner

Network Footprinting in Cybersecurity

Blog banner

Google classroom

Blog banner