Computer Science - Operating Systems Concepts - Discussion
Discussion Forum : Operating Systems Concepts - Section 1 (Q.No. 31)
31.
Thrashing can be avoided if
Discussion:
4 comments Page 1 of 1.
Karishma said:
5 years ago
Thanks @Shekhar.
Sonali said:
7 years ago
Thanks @Shekhar.
Pavan said:
7 years ago
Thanks @Shekhar.
Shekhar said:
1 decade ago
For executing any program, CPU needs some data, it will 1st check main memory for that required data, if it present in main memory then CPU will use it, otherwise CPU retrieve the data (also called as page) from Secondary memory into primary memory and then execute the program.
When this page swapping (some pages transferred from 2nd memory to 1st and vice versa) occur in such an extent that CPU only do this swapping work and left all the necessary execution, then this state is called THRASHING.
So pages which are needed for execution, if already present in main memory (that is no need to swap from secondary memory) then thrashing can be avoided [that's why answer is A].
One best solution is -> Increase the size of main memory.
When this page swapping (some pages transferred from 2nd memory to 1st and vice versa) occur in such an extent that CPU only do this swapping work and left all the necessary execution, then this state is called THRASHING.
So pages which are needed for execution, if already present in main memory (that is no need to swap from secondary memory) then thrashing can be avoided [that's why answer is A].
One best solution is -> Increase the size of main memory.
(4)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers