📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      Thrashing in an operating system is a condition that

      occurs when: 
      A The CPU is overloaded with too many processes. Correct Answer Incorrect Answer
      B The system spends most of its time swapping pages in and out of memory rather than executing instructions. Correct Answer Incorrect Answer
      C Processes terminate abnormally. Correct Answer Incorrect Answer
      D The system runs out of disk space. Correct Answer Incorrect Answer
      E The process scheduler fails to allocate CPU efficiently. Correct Answer Incorrect Answer

      Solution

      Thrashing occurs when a system is overwhelmed with page faults, and the operating system spends more time swapping pages in and out of the memory than executing actual processes. This typically happens when the system’s memory is overcommitted, and there is insufficient RAM to hold the working sets of the active processes. Thrashing severely degrades system performance because the CPU is constantly waiting for data to be loaded from disk into memory. Why other options are wrong: a) CPU overload : This refers to a heavy CPU load, not the constant paging activity of thrashing. c) Abnormal process termination : This refers to processes ending unexpectedly, which is unrelated to memory thrashing. d) Disk space shortage : This would result in an inability to store files but is unrelated to thrashing. e) Scheduler inefficiency : While a poorly designed scheduler can reduce CPU efficiency, thrashing specifically refers to excessive paging.

      Practice Next

      Relevant for Exams:

      ask-question