wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS- Assignnment 1

profile
Sheetal Mehta
Jul 03, 2024
0 Likes
0 Discussions
67 Reads

There are two main threading models in process management:

• User-level threads:-

In this model, the operating system does not directly support threads.  Instead, threads are managed by a user-level thread library, which is part of the application. The library manages the threads and schedules them on available processors. The advantages of user-level threads include greater flexibility and portability, as the application has more control over thread management. However, the disadvantage is that user-level threads are not as efficient as kernel-level threads, as they rely on the application to manage thread scheduling.

• Kernel-level threads:-

In this model, the operating system directly supports threads as part of   the kernel. Each thread is a separate entity that can be scheduled and executed independently by the operating system. The advantages of kernel-level threads include better performance and scalability, as the operating system can schedule threads more efficiently. However, the disadvantage is that kernel-level threads are less flexible and portable than user-level threads, as they are managed by the operating system.

 

1. Many to Many Model:

In this model, we have multiple user threads multiplex to same or lesser number of kernel level threads. Number of kernel level threads are specific to the machine, advantage of this model is if a user thread is blocked we can schedule others user thread to other kernel thread. Thus, System doesn’t block if a particular thread is blocked. It is the best multi threading model.

2. Many to One Model:

In this model, we have multiple user threads mapped to one kernel thread. In this model when a user thread makes a blocking system call entire process blocks. As we have only one kernel thread and only one user thread can access kernel at a time, so multiple threads are not able access multiprocessor at the same time. The thread management is done on the user level so it is more efficient.

3. One to One Model:

In this model, one to one relationship between kernel and user thread. In this model multiple thread can run on multiple processor. Problem with this model is that creating a user thread requires the corresponding kernel thread. As each user thread is connected to different kernel , if any user thread makes a blocking system call, the other user threads won’t be blocked.


Comments ()


Sign in

Read Next

How to feel Happy everyday day

Blog banner

Why is ITSM important in IT organization?

Blog banner

NETSUITE

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

Not anti-social, but pro-solitude

Blog banner

Capacity management in ITSM

Blog banner

Virtual memory

Blog banner

Spitting Pink in the Sink: Why Your Gums Randomly Bleed

Blog banner

Im Photographer

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner

Operating system evolution

Blog banner

What is metaverse?

Blog banner

File management -disha parekh

Blog banner

Sessions In OS.

Blog banner

Child labour

Blog banner

Celebrate Diwali the Delicious Way with Meal Maharaj Catering

Blog banner

NodeJs

Blog banner

Traveling

Blog banner

EFT

Blog banner

Points to consider if you're planning to visit Florida in 2026

Blog banner

Virtual memory in Operating System

Blog banner

ProofHub

Blog banner

Webmail

Blog banner

PPT methodology

Blog banner

(Input/Output) in os

Blog banner

E-commerce

Blog banner

Classification Vs Clustring? What's the diffrence?

Blog banner

Uniprocessor and Types

Blog banner

Spyware

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

A Day in the Life at Elzee: What Your Child Does Between Drop-Off and Pick-Up

Blog banner

The 60-Minute Window: What to Do (And What NOT to Do) When You Knock Out a Tooth

Blog banner

Survey of Which Movies Types people are Prefer to Watch in India.

Blog banner

Utilizing Data-Hiding and Retrieval Techniques in Cyber Forensics

Blog banner

Information of meesho company

Blog banner

Deadlock

Blog banner

Importance Of Time

Blog banner

IS CONVERTING AMBITION INTO PROFESSION?

Blog banner

COMMUNICATION

Blog banner

Elegant fashion style

Blog banner

INTRODUCTION

Blog banner