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

Interesting fact about kangaroo.

Blog banner

Internet of Things and cyber security

Blog banner

DATA VAULT

Blog banner

Mendeley (management software)

Blog banner

Cloud Computing: Threats and Vulnerabilities

Blog banner

Different types of e-commerce platforms or advantages and disadvantages

Blog banner

Understanding - Proof of Work!

Blog banner

Tea, Coffee, Red Wine, and Teeth: A Stain Survival Guide

Blog banner

R Programming

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Twisted world

Blog banner

Animal’s have my heart

Blog banner

Europe Through My Lens

Blog banner

CONCURRENCY

Blog banner

INTERNET

Blog banner

Virtual Memory

Blog banner

LISP - Library Management System

Blog banner

DBMS and various career options related to it.

Blog banner

Swiggi

Blog banner

Why we fail after giving 100% ?

Blog banner

Cache Memory

Blog banner

FASHION

Blog banner

Biometric Authentication Vulnerabilities

Blog banner

What is E-commerce

Blog banner

c

Blog banner

Blockchain

Blog banner

Stephen Hawking : A Remarkable Physicist

Blog banner

Computer security techniques

Blog banner

6 Digital Marketing Trends You Must Watch Out For In 2022

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

Spotify

Blog banner

Why Kanye West (Now Ye) is the GOAT: A Legacy Beyond Music

Blog banner

Improving defences Proxy Device(defense in depth)

Blog banner

Riddhi Miyani 53003220140

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

Software

Blog banner

Functions Of Operating Systems

Blog banner

Outlook mail

Blog banner

Health is Wealth

Blog banner

Information of meesho company

Blog banner

Vulnerabilities in OnePlus Devices

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner