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

Real-time Scheduling - 53003230061

Blog banner

Is Pursuing a Dance Career in India Worth it?

Blog banner

Pipedrive

Blog banner

Process State

Blog banner

Blog on Smartsheet.

Blog banner

Operating system

Blog banner

Mango Raisin Chutney (sweet mango raisin spread)

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

Hacking

Blog banner

operating system

Blog banner

Deadlocks in operating system

Blog banner

OS Assignment 3

Blog banner

"Games and the future"

Blog banner

Operating System

Blog banner

Data Visualization in Decision-Making

Blog banner

A BLOG ON MYSQL

Blog banner

5 Common Faults In Construction Tenders

Blog banner

Sweet and Sour Mango Pickle (Gol Keri)

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

EVOLUTION OF MICROPROCESSOR

Blog banner

Telegram and it's features

Blog banner

Evolution of operating system

Blog banner

(Input/Output) in os

Blog banner

NIKE

Blog banner

Python as a tool for Data science task & project

Blog banner

Virtual Memory

Blog banner

A Journey By Train

Blog banner

INTERRUPTS

Blog banner

Importance of Education

Blog banner

Career v/s Job : Choose your passion

Blog banner

Boxing

Blog banner

Hot Mango Pickle (Methiyu)

Blog banner

Cyber Security Standards

Blog banner

10 Signs That Prove YOU are his FIRST priority.

Blog banner

Efficiency of SQL Injection Method in Preventing E-Mail Hacking

Blog banner

How to Conquer Depression ?

Blog banner

'C', 'C++' and 'Java': Head-to-Head

Blog banner

 " Healing of Yoga "

Blog banner

Advantage of freedom

Blog banner

EdTech (Education Technology)

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

Respondo Launches Revolutionary Video Discussion App

Blog banner