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

Uniprocessor Scheduling

Blog banner

Love is in air.....

Blog banner

Twisted world

Blog banner

Koinex is shutting down and here is how you can withdraw...

Blog banner

Memory input output management

Blog banner

Process, process creation and process termination

Blog banner

Cloud Computing: Threats and Vulnerabilities

Blog banner

Skills An Ethical Hacker Must Have

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

How College Events Build Real-world Skills You Can’t Learn From Textbooks

Blog banner

Memory Hierarchy

Blog banner

Improving defences Proxy Device(defense in depth)

Blog banner

What is Internet

Blog banner

Go Daddy

Blog banner

Deadlock in Operating System

Blog banner

Operating system

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Virus

Blog banner

Every body is beautiful

Blog banner

Oracle Corporation

Blog banner

How Cyber Forensics help prevent Crimes

Blog banner

E-Governance

Blog banner

Network Forensics Tools and Techniques

Blog banner

Types of Threads

Blog banner

IOT Hacking Techniques

Blog banner

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

Top 3 Places To Stay In Vienna

Blog banner

Current Trends in GIS and Remote Sensing(Ocean Applications)

Blog banner

Explain Multiprocessors

Blog banner

Constrains in service design

Blog banner

PROCESS STATE:

Blog banner

INTRODUCTION

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

Virtualization

Blog banner

To-Do List In LISP

Blog banner

Self defence

Blog banner

DIGITAL ECONOMY

Blog banner

Threads

Blog banner

Raid and levels of raid.

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

Elegant fashion style

Blog banner

Festive Ethnic Wear Guide: Patola-Inspired Looks for Every Celebration

Blog banner