Solution for the problem is provided below, please
comment if any doubts:
2.
Thrashing cause:
- Thrashing is an Operating system abnormality that is related
with virtual address.
- Thrashing is mainly occurred because of excessive paging
operations happening in the OS.
- The excessive paging operations happens because of the
insufficient locality of reference, that is all the pages are
needed to be loaded from the secondary memory. This results in
excessive page operations and ultimately results in thrashing.
3.
Detection of thrashing:
- Thrashing can be detected by either a halted system due to dead
lack of the page replacement algorithms or by a very low system
with low responsibility.
- The excessive paging operating results in less process usage
and also some times the system even crash since there will not be
sufficient memory to perform the activities properly.
4.
To eliminate thrashing:
- Increase the primary memory available.
- Decrease the number of process that can be run simultaneously
in the system.
- Swap file and page size should be adjusted to eliminate
thrashing.