thrashing in operating system | Techniques to handle Thrashing | working set model
#thrashinginos #operatingsystemlectures #oslectures Thrashing is a condition or a situation when the system is spending a major portion of its time in servicing the page faults, but the actual processing done is very negligible. The basic concept involved is that if a process is allocated too few frames, then there will be too many and too frequent page faults. As a result, no useful work would be done by the CPU and the CPU utilisation would fall drastically. The long-term scheduler would then try to improve the CPU utilisation by loading some more processes into the memory thereby increasing the degree of multiprogramming. This would result in a further decrease in the CPU utilization triggering a chained reaction of higher page faults followed by an increase in the degree of multiprogramming, called Thrashing. Locality Model – A locality is a set of pages that are actively used together. The locality model states that as a process executes, it moves from one locality to another. A program is generally composed of several different localities which may overlap. For example when a function is called, it defines a new locality where memory references are made to the instructions of the function call, it’s local and global variables, etc. Similarly, when the function is exited, the process leaves this locality. Techniques to handle: Working Set Model – This model is based on the above-stated concept of the Locality Model. The basic principle states that if we allocate enough frames to a process to accommodate its current locality, it will only fault whenever it moves to some new locality. But if the allocated frames are lesser than the size of the current locality, the process is bound to thrash. According to this model, based on a parameter A, the working set is defined as the set of pages in the most recent ‘A’ page references. Hence, all the actively used pages would always end up being a part of the working set. The accuracy of the working set is dependant on the value of parameter A. If A is too large, then working sets may overlap. On the other hand, for smaller values of A, the locality might not be covered entirely.

what is thrashing in os | thrashing in operating system

allocation of frames in operating system | allocation of frames in os | frame allocation in os

working set model in os | working set model in operating system

Mutex Locks in Operating Systems Explained Simply! || Operating System

#27 Techniques to avoid thrashing - working set model | Thrashing in Operating System

Preventing Thrashing: Working Set Model & Page Fault Frequency Explained | | OS

paging in operating system | OS Paging with Example | non contiguous memory allocation in os

Thrashing in Operating system

Virtual Memory or Demand Paging or Page Faults in operating systems

Thrashing in OS : What It Is?, Why It Happens? & How to Prevent It? | OS

Nuclear War Begins?Explained By Suresh Kochattil | Iran in Big Danger? | Telugu Popular TV

L-5.16: What is Thrashing | Operating System

PM Modi's New Zealand Visit Shocks the World | Why Doval Replaced Jaishankar? Full Analysis

4 Hours of Deep Focus Music for Studying - Concentration Music For Deep Thinking And Focus

ప్రకాష్ రాజ్ పై దాడి... అసలు కారణం ఇదే || Attack On Prakash Raj... Real Reason ||

Keynote: After the AI Hype – What’s Real, and What’s Next - Richard Campbell - 2026

Deep Dive into LLMs like ChatGPT

How Simple On/Off Switches Store the Digital World | Working of Computer Memory

