Question

We know that a memory can suffer from Thrashing. (a) Define the working set of a...

We know that a memory can suffer from Thrashing.

(a) Define the working set of a process.

(b) Define memory thrashing.

(c) If a system suffers from thrashing, how can we try to fix the problem to reduce thrashing? (your suggested solution can be by making change to the OS or hardware).

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:
a)Working set of a process.

Every process has some assocaited pages in the memory and they gets loaded via Demand paging.
All the pages may not be required at all times and hence, page in demand is loaded.
Following above different processes requires different pages to be loaded while execution.

b) Define memory thrashing.
There are specifications of each system and type of application that gets loaded in the memory.
Heavy applications requires specifications accordingly. However, if above is not handled properly
then CPU will spend time only in managing page faults, which in turn increases time for process
completion. This is known as thrashing.

c) Suggestions to reduce thrashing.
There are two causes due to which thrashing occurs.
1. High Degree of multi-programming.
2. Lack of frames.

Solution #1 Locality concept
If there are enough frames for any process to complete its execution, then thrashing can be avoided.

Solution#2 Page fault frequency
As the page fault rate changes add or remove frames for the processes. IF page fault are high,
allocates more frames. Similarly, if page fault is low remove some frames.

Above are two concepts implementated to reduce thrashing.

Add a comment
Know the answer?
Add Answer to:
We know that a memory can suffer from Thrashing. (a) Define the working set of a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Programs written in a language that supports pointers and dynamic memory allocation can suffer from dangling...

    Programs written in a language that supports pointers and dynamic memory allocation can suffer from dangling pointers and lost heap-dynamic variables (or garbages). (a) A dangling pointer is a pointer that contains the address of a piece of memory that no longer belongs to the program. Give one scenario that can cause dangling pointers. Support your scenario with sample codes in your favorite language. Poorly implemented languages leave the detection of the dangling pointer problem to the operating system. Suggest...

  • What is “Process S”? How do we know that it exists and is separate from the...

    What is “Process S”? How do we know that it exists and is separate from the circadian system? How can we manipulate Process S?

  • Define by using the set-builder notation by using the condition as predicate logic. We can only...

    Define by using the set-builder notation by using the condition as predicate logic. We can only use these operations + and * 1) Nonnegative numbers that are divisors of 42. 2) The set pairs of consecutive integers that are even. For example (24, 26) or (30, 28) - These pairs would hold. What I have is this: 1. {x | x * y = 42, x,y ∈ N} or   {x | (x,y) ∈ N*N and x*y = 42} 2.   { (2x,2y) |...

  • Problem 2 We have seen that, if a matrix A is invertible, then we can express...

    Problem 2 We have seen that, if a matrix A is invertible, then we can express the unique solution of Az = b as I = A-15. Soon, we will introduce ideas that help us understand At = b better when A is not invertible. This problem is preparation for that! 11 301 1-3 -9 2 Let A = 2 6 0 1-2 -6 -5 (a) Solve the system A7 = 5. (b) What does the solution set of Az...

  • Introduction: One of the most important uses of pointers is for dynamic allocation of memory. In...

    Introduction: One of the most important uses of pointers is for dynamic allocation of memory. In C++ there are commands that let the user request a chunk of memory from the operating system, and use this memory to store data. There are also commands to return memory back to the O/S when the program is finished using the data. In this lab, we will explore some of the things that can go wrong when using dynamic memory and discuss how...

  • can I know how I should to solve this problem of text book of Accounting from...

    can I know how I should to solve this problem of text book of Accounting from Warren / Reeve / Duchac ea 26, please. will be greta if I can see the step by step to understand better this topic. thanks EE 4-6 p. 178 PAI SHOW ME HOW PE 4-6A Working capital and current ratio OBJ. 7 Balance sheet data for HQ Properties Company follows: 2016 2015 Current assets $2,175,000 $1,900,000 Current liabilities 1,500,000 1,250,000 a. Determine the working...

  • tthese two are related (5 points.) Since A) is a set, we can inquire, for each...

    tthese two are related (5 points.) Since A) is a set, we can inquire, for each element x of S, whether x is an element of R) We define the set N to be the set of all elements of S for which the statement "x is an element of Ax)" is NOT true: N = {x: x is an element of S and x is NOT an element of Ax)}. Explain why N is an element of P(S). This...

  • We would like to answer the following question: How can we tell, using the Simplex Method,...

    We would like to answer the following question: How can we tell, using the Simplex Method, that there is more than one optimal solution? To find out, let's use the simplex method on a problem from HW2 that we already know has multiple solutions. Maximizing 3x1 + 6r2 subject to the constraints 1 2 12 When you reach your final tableau, it should still be possible to pivot without changing the objection function row. How can you identify this phenomenon...

  • Using Python       1. Write a function to generate an index” for below passage. Insert this...

    Using Python       1. Write a function to generate an index” for below passage. Insert this quote passage = "Writing programs or programming is a very creative and rewarding activity. You can write programs for many reasons ranging from making your living to solving a difficult data analysis problem to having fun to helping someone else solve a problem. This book assumes that everyone needs to know how to program and that once you know how to program, you will...

  • Computer Architecture The format of this document is as follows: First, I give a practice problem...

    Computer Architecture The format of this document is as follows: First, I give a practice problem for which the solution is also provided. In bold italic font, I slightly modify the problem for your homework. 3) The 4-Stage Pipeline below suffers from the memory access resource conflict as shown below (instruction i and i+2 want to access memory at the same time and i+2 needs to be denied, so it waits for the next cycle; in the next cycle it...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT