Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Thrashing occurs whena)When a page fault occu... Start Learning for Free
Thrashing occurs when
  • a)
    When a page fault occurs
  • b)
    Processes on system frequently access pages not memory
  • c)
    Processes on system are in running state
  • d)
    Processes on system are in waiting state
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
Thrashing occurs whena)When a page fault occursb)Processes on system f...
Thrashing occurs processes on system require more memory than it has. If processes do not have “enough” pages, the pagefault rate is very high. This leads to: – low CPU utilization – operating system spends most of its time swapping to disk The above situation is called thrashing

Hence Correct answer is Option(B)

For Notes on Logical Vs Physical Adress click on the link given below:

View all questions of this test
Most Upvoted Answer
Thrashing occurs whena)When a page fault occursb)Processes on system f...
Explanation:
Thrashing is a situation in which a computer system spends most of its time in swapping pages rather than executing instructions. It occurs when the system is overcommitted with too many processes demanding too much memory. As a result, the system is constantly swapping pages in and out of memory without making any progress in executing the programs.



Causes of Thrashing:
The main cause of thrashing is an excessive demand for memory by processes that are currently running on the system. This can happen due to several reasons:

1. Insufficient Memory: When the system does not have enough physical memory to accommodate all the processes, it has to swap pages in and out of the disk to make room for new processes. This results in increased disk I/O, which slows down the system and leads to thrashing.

2. Poor Memory Management: If the memory management system is poorly designed, it may allocate too much memory to a process, leaving insufficient memory for other processes. This can cause thrashing as the system struggles to find enough memory to satisfy all the processes.

3. Overcommitment: If the system overcommits memory, it may allocate more memory to processes than it can actually provide. This can lead to thrashing as the system tries to satisfy all the memory requests.

4. Working Set Size: If the working set size of a process is too large, it may cause thrashing as the system struggles to keep all the pages in memory.

Prevention of Thrashing:
There are several techniques that can be used to prevent thrashing:

1. Virtual Memory: The use of virtual memory allows the system to create the illusion of a larger memory space, which can help to prevent thrashing.

2. Swapping: The system can swap out idle processes to free up memory for active processes. This can help to reduce the demand for memory and prevent thrashing.

3. Memory Management: Effective memory management can help to prevent thrashing by ensuring that memory is allocated efficiently and fairly to all processes.

4. Process Prioritization: Prioritizing processes can help to prevent thrashing by ensuring that critical processes have access to sufficient memory.

Conclusion:
In conclusion, thrashing is a serious problem that can significantly degrade system performance. It is caused by excessive demand for memory and can be prevented by using techniques such as virtual memory, swapping, effective memory management, and process prioritization.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer?
Question Description
Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer?.
Solutions for Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer?, a detailed solution for Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer? has been provided alongside types of Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Thrashing occurs whena)When a page fault occursb)Processes on system frequently access pages not memoryc)Processes on system are in running stated)Processes on system are in waiting stateCorrect answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev