Awesome q2a theme
0 votes

My doubt here is can we not use medium term scheduler to swap process in vritual memory to avoid thrashing ?

in Operating System by (19 points)
edited by | 17 views
$You\ can\ instruct\ MTS\ to\ suspend\ some\ of\ the\ process\ if\ system\ \underline{already}\ in\ thrashing$
Thrashing is a state in which the CPU performs 'productive' work less, and $\underline {swapping}$' more.
I think they might be right, just ignore my last comment !
Actually in the solution video the faculty says there is no realtionb/w swapping and thrashing, which I think is not the correct reason., And ya i think it should be because of "always".
May be they are right. Look for the edit one.
Thrashing is dependent upon howmany memory frames are allocated for that process... If less no.of frames allocated, then it leads to thrashing, for that swapping a process from main memory to secondary memory doesn't help us

@Shaik Masthan

If less no.of frames allocated, then it leads to thrashing

If we increase the degree of multiprogramming after some extent the CPU utilization will drastically fall down & the system will spent more time only in the $page\ replacement$: thrashing

Sir, what you stated for thrashing and the one which I wrote are both same some how ?

If you increase the degree of multi programing, it should lead to allocate less no.of frames per process.

But decreasing the DOM doesn't always lead to increase the no.of frames.

@Shaik Masthan

  1. If processes are utilizing all main memory and need additional memory pages, a cascade of severe cache misses known as page faults will occur, often leading to a noticeable lag in operating system responsiveness. This process together with the futile, repetitive page swapping that occurs are known as thrashing.
  2. The CPU is busy in swapping pages so much that it can not respond to users programs and interrupts as much as required. Thrashing occurs when there are too many pages in memory, and each page refers to another page.
  3. When each page in execution demands that page that is not currently in real memory (RAM) it places some pages on virtual memory and adjusts the required page on RAM. If the CPU is too busy in doing this task, thrashing occurs.

it should lead to allocate less no.of frames per process.

After all this does it means that the required number of frames that a process wants, that process is not able to get it because of lot of swapping ??

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Dec 2019
  1. Pratyush Priyam Kuan

    158 Points

  2. Vimal Patel

    118 Points

  3. avistein

    65 Points

  4. srestha

    54 Points

  5. Mk Utkarsh

    49 Points

  6. arya_stark

    46 Points

  7. goxul

    39 Points

  8. Sathuri Bharath

    34 Points

  9. vishal burnwal

    31 Points

  10. Shaik Masthan

    26 Points

Monthly Top User and those within 60% of his/her points will get a share of monthly revenue of GO subject to a minimum payout of Rs. 500. Current monthly budget for Top Users is Rs. 75.
2,315 questions
1,294 answers
89,719 users