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

Deadlock

Blog banner

Threads in OS

Blog banner

Skills An Ethical Hacker Must Have

Blog banner

Top 5 Tech Innovations of 2018

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

RAID - LEVELS OF RAID

Blog banner

A Journey By Train

Blog banner

What is Password Cracking ? and it's Techniques.

Blog banner

NIKE

Blog banner

IP ADDRESS

Blog banner

THE ACTORS LIFE

Blog banner

Hosting basics

Blog banner

Impact of social media on the human life

Blog banner

Deadlock

Blog banner

Models of Information Security.

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

KPMG (Klynveld Peat Marwick Goerdeler)

Blog banner

The Importance of Financial Literacy for College Students

Blog banner

Linux 94

Blog banner

Indian Food

Blog banner

Evolution of operating system

Blog banner

A buffer overflow

Blog banner

Article on Team Work

Blog banner

Functions of operating system

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

VIRTUAL MEMORY

Blog banner

TRIGGERS IN DATABASE

Blog banner

Memory Management

Blog banner

Disk scheduling

Blog banner

How To Secure Operating Systems ?

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

MEMORY MANAGEMENT (techniques)

Blog banner

World’s rarest passport owned by 500 people.

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Direct memory access (DMA)

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 1

Blog banner

Paginng In OS

Blog banner

15 Interesting Facts about India

Blog banner

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner

Theads

Blog banner

Self managing devices

Blog banner