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

Can ChatGPT Answer All My Questions About Life?

Blog banner

What's Better : Supervised or Unsupervised Learning

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

Kids Grieve Too

Blog banner

Understanding E-mail Servers

Blog banner

BITCOIN WALLET

Blog banner

Importance of modern technology era

Blog banner

Women Empowerment

Blog banner

Emotional Intelligence in Children: Why It Is as Important as Academics

Blog banner

Dos (Denial of service) Attack

Blog banner

Cloud Forensic Tools And Storage :A Review Paper

Blog banner

"Audit" In Data Science

Blog banner

Evolution of the Microprocesor

Blog banner

Child labour

Blog banner

Virtual memory

Blog banner

Disk scheduling

Blog banner

OS assignment 3

Blog banner

Yahoo! mail

Blog banner

Memory management

Blog banner

Install Ubuntu in Vmware

Blog banner

OS ASSIGNMENT

Blog banner

Self Confidence

Blog banner

Cache memory

Blog banner

Computer Security

Blog banner

CYBERPEACEKEEPING: NEW WAYS TO PREVENT AND MANAGE CYBERATTACKS

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

MORDERN UNIX SYSTEM

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

MySQL

Blog banner

KEAP MANAGEMENT SYSTEM

Blog banner

IOT- Internet Of Things

Blog banner

E-Cash (Electronic Cash)

Blog banner

Fun Christmas Activities For Toddlers & Kids

Blog banner

Why is ITSM important in IT organization?

Blog banner

Virtual Machine

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Buffering

Blog banner

Note Taker App

Blog banner

10 Alien Encounters and Abduction Stories

Blog banner

File management in os

Blog banner

What is process

Blog banner

Who decides your overthinking, anyway?

Blog banner