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

The Difference Between Plaque and Tartar Explained Simply

Blog banner

What is Data, Information and Knowledge?

Blog banner

What is metaverse?

Blog banner

ahh wait a min

Blog banner

RAID

Blog banner

Zero Trust Security Model: Revolutionizing Cybersecurity in the Digital Age

Blog banner

MEMORY MANAGEMENT

Blog banner

Concurrency management in operating systems

Blog banner

Deadlock in Operating System

Blog banner

A Brief Review on Cyber Forensics and its Analysis Tool

Blog banner

How to Grow Your Brand on YouTube Without a Big Budget

Blog banner

I/O Management and Disk Scheduling

Blog banner

Kernel in Operating System

Blog banner

Twisted world

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 1

Blog banner

A Survey of Anti-Forensic Techniques: Methods, Challenges, and Countermeasures

Blog banner

Compromising Mobile Platforms

Blog banner

IT Service as as Value Creation

Blog banner

Game Theory in Blockchain

Blog banner

ITIL Version 3 and 4 differenciation?

Blog banner

Paralysis/Paralysis Stroke

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

Whatsapp Messenger

Blog banner

Social Network Analysis: Ek Naya Nazariya Data Science Mein

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner

Bharat Maps

Blog banner

Top Career Paths After a B.Com Degree in Mumbai: What’s Next for You?

Blog banner

How to Run your First android App

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

Network Forensics

Blog banner

Virtual memory

Blog banner

Operating Systems

Blog banner

Privacy-Enhancing Computation Techniques

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

IP Address

Blog banner

Policies for Service Transition

Blog banner

Mumbaicha Dabbawalla

Blog banner

What is Internet

Blog banner

Memory management

Blog banner

MySQL

Blog banner

Scheduling in Operating Systems

Blog banner

Chicken Dum Biryani

Blog banner