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

Importance of Network Security Risk

Blog banner

The Real Reason Patola Outfits Come at a Premium Cost

Blog banner

Junk food vs healthy food

Blog banner

New Horizon Europe project ‘EvoLand’ sets off to develop new prototype services.

Blog banner

Google classroom

Blog banner

The application udemy

Blog banner

Internet of Things

Blog banner

Social Engineering

Blog banner

Operating system

Blog banner

Disk Management

Blog banner

1.1 basic elements

Blog banner

LinkedIn: Watch out for these 7 upcoming updates in 2023

Blog banner

Data carving - using hex editor

Blog banner

GIS Mapping

Blog banner

Benefits of Yoga

Blog banner

Cache memory

Blog banner

Indian Culture and Tradition

Blog banner

Street foods

Blog banner

Scala - a programming tool

Blog banner

ZOHO

Blog banner

Information Technology In E- Commerce

Blog banner

What is Vishing?

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Virtual memory

Blog banner

Operating Systems

Blog banner

Wedding photographer

Blog banner

Asana

Blog banner

TOGETHER WE CAN CONQUER #team

Blog banner

virtual machines and virtualization

Blog banner

Memory Management

Blog banner

City of Mumbai (Bombay):

Blog banner

What is thread and multithreading ?

Blog banner

File management -disha parekh

Blog banner

“CONSISTENCY” in Social Media Marketing

Blog banner

Why Does Hierarchy Still matter in Organizations?

Blog banner

Deadlock

Blog banner

Memory management

Blog banner

DMZ: Your Secret Weapon for Data Security

Blog banner

This too shall pass

Blog banner

What is Spyware? and examples of them.

Blog banner

Artificial Intelligence and I

Blog banner

Are Social Media Paid Campaigns Worth It?

Blog banner