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

Should you be using a mouthwash? Know from the experts

Blog banner

Fitness

Blog banner

Chicken Dum Biryani

Blog banner

"Life as a Part-time Student"

Blog banner

Memory hierarchy

Blog banner

Expressing and Measuring Risk (Risk Management)

Blog banner

Exploring Florida Beyond the Obvious Tourist Trails

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

A Deep Dive

Blog banner

Drawing tips for a beginner

Blog banner

Importance of Network Security Risk

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

Developments in Modern Operating Systems

Blog banner

Stephen Hawking : A Remarkable Physicist

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

Memory heirachy (Operating system)

Blog banner

Decision Tree: A Diagram Model

Blog banner

Key to success in Sports

Blog banner

Threads

Blog banner

What is Spyware?

Blog banner

Stay Close To Adventure In Arcadia, Florida At Oak Tree Hotel

Blog banner

What is Network Security?

Blog banner

Gis in agriculture and farming

Blog banner

Health is Wealth

Blog banner

Data carving - using hex editor

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Apple

Blog banner

Service Design Model

Blog banner

Emerging threats in cyber Forensics

Blog banner

Asana

Blog banner

Assignment-3

Blog banner

Gamer life

Blog banner

Operating System Objectives and Functions

Blog banner

URL vs Domain

Blog banner

Socket Programming in Java

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

The most common internet security threats

Blog banner

operating system

Blog banner

Types of E-Commerce

Blog banner

CONCURRENCY

Blog banner