wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS- Assignnment 1

profile
Sheetal Mehta
Jul 03, 2024
0 Likes
0 Discussions
66 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

Deadlock in operating system

Blog banner

Session Hijacking

Blog banner

Memory Management in Operating System

Blog banner

Old age lifestyle

Blog banner

PYTHON

Blog banner

Indian Culture and Tradition

Blog banner

Denial-of-Service and Distributed Denial-of-Service Attack Techniques

Blog banner

Decoding Confusion Matrix

Blog banner

Malicious softwares

Blog banner

DATA VAULT

Blog banner

5 Things I As A Dentist Would Never Do (And What You Can Learn From It)

Blog banner

Strengthening Active Directory Security

Blog banner

Importance Of Blockchain

Blog banner

Clustering Techniques

Blog banner

How User Data Shapes Personalised Campaigns

Blog banner

Introduction to Virtual Memory - 080

Blog banner

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

Blog banner

How To Setup DVWA Using XAMPP on Windows

Blog banner

Heart Fulness Meditation

Blog banner

Computer security techniques

Blog banner

SQL Injection

Blog banner

SMARTSHEET MANAGEMENT SYSTEM

Blog banner

Beatbox

Blog banner

Big Data

Blog banner

AN EVENT-BASED DIGITAL FORENSIC INVESTIGATION

Blog banner

File management in os

Blog banner

Virtual Machine

Blog banner

Have You Explored India Yet?

Blog banner

What is the point of living if we can die at any moment of our lives ?

Blog banner

How Sleep Impacts Learning and Behaviour for Toddlers?

Blog banner

Pandas Matrix Applications

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

EdTech (Education Technology)

Blog banner

Autonomy Vehicles: Future Ki Gadiya

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

How to grow followers on Instagram business account?

Blog banner

Consumer to consumer business mode

Blog banner

Dr. Venkadavarahan

Blog banner

CRISP-DM Methodology

Blog banner

?Why Social and Emotional Skills Matter More Than ABCs in Early Years?

Blog banner

Cache Memory in Operating Systems

Blog banner

Security Breaches in Stock market trading

Blog banner