Knowee
Questions
Features
Study Tools

Explain concept of thrashing

Question

Explain concept of thrashing

🧐 Not the exact question you are looking for?Go ask a question

Solution

Thrashing is a concept in computer science that refers to a situation where a computer's resources are overused, leading to a significant decrease in performance. Here's a step-by-step explanation:

  1. Virtual Memory and Paging: To understand thrashing, you first need to understand the concept of virtual memory. Virtual memory is a memory management technique where secondary memory can be used as if it were a part of the main memory (RAM). When the computer runs out of RAM, it moves some of the data from RAM to a space on the hard disk called a paging file, creating more room in RAM for other data. This process is called paging.

  2. Page Faults: Sometimes, the computer needs the data that has been moved to the paging file. When this happens, it has to move some other data out of RAM and into the paging file to make room for the data it needs. This is called a page fault. Normally, page faults are not a problem and are a normal part of the paging process.

  3. Excessive Page Faults and Thrashing: However, if the computer doesn't have enough RAM to keep all the data it needs in memory, it may have to constantly swap data in and out of the paging file. This can lead to a situation where the computer spends more time moving data back and forth between RAM and the paging file than it does actually processing data. This is known as thrashing.

  4. Consequences of Thrashing: Thrashing can significantly slow down a computer's performance. In severe cases, the computer may become virtually unusable.

  5. Preventing Thrashing: Thrashing can be prevented by adding more RAM to the computer, closing unnecessary applications to free up RAM, or optimizing the computer's paging file settings.

This problem has been solved

Similar Questions

Define slope overload and granular noise.

What is Stack and Heap memory?

Explain Multithreading in Java

When supervisor Jim shouted some instructions to his subordinate Rob, there were heavy machines in operation, which made hearing difficult. What does the interference of the heavy machines represent in this communication process?A.EncodingB.FeedbackC.DecodingD.Noise

Heap can be used as :a) Priority queueb) Stackc) A decreasing order arrayd) None of the mentioned

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.