Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  In the working-set strategy, which of the fol... Start Learning for Free
In the working-set strategy, which of the following is done by the operating system to prevent thrashing?
  1. It initiates another process if there are enough extra frames.
  2. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.
  • a)
    I only
  • b)
    II only
  • c)
    Neither I nor II
  • d)
    Both I and II
Correct answer is option 'D'. Can you explain this answer?
Verified Answer
In the working-set strategy, which of the following is done by the ope...
According to concept of thrashing,
  • I is true because to prevent thrashing we must provide processes with as many frames as they really need "right now".If there are enough extra frames, another process can be initiated.
  • II is true because The total demand, D, is the sum of the sizes of the working sets for all processes. If D exceeds the total number of available frames, then at least one process is thrashing, because there are not enough frames available to satisfy its minimum working set. If D is significantly less than the currently available frames, then additional processes can be launched.
View all questions of this test
Most Upvoted Answer
In the working-set strategy, which of the following is done by the ope...
Preventing Thrashing in the Working-Set Strategy

The working-set strategy is a method used by the operating system to manage memory in a computer system. It aims to prevent thrashing, which is a situation where the system spends a significant amount of time swapping pages in and out of memory, resulting in poor performance. To prevent thrashing, the operating system takes certain actions, as explained below:

I. Initiates another process if there are enough extra frames:
- The working-set strategy involves assigning a fixed number of frames to each process, known as the working-set size.
- When a process requires more frames than its allocated working-set size, it indicates the need for additional memory.
- In such cases, the operating system can initiate another process if there are enough extra frames available in the system.
- By starting a new process, the operating system can utilize the available memory efficiently and prevent thrashing by distributing the workload across multiple processes.

II. Selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames:
- In the working-set strategy, each process has a working-set size, which represents the number of frames it requires to function optimally.
- If the sum of the working-set sizes of all active processes exceeds the total number of available frames in the system, it indicates that there is not enough memory to accommodate all the processes simultaneously.
- In such cases, the operating system needs to select a process to suspend or swap out of memory temporarily.
- The selected process is typically one that is not actively being used or has a lower priority compared to other processes.
- By suspending a process, the operating system can free up memory for other processes and prevent thrashing by ensuring that the active processes have enough memory to execute efficiently.

Therefore, both actions mentioned in options I and II are performed by the operating system to prevent thrashing in the working-set strategy. These actions help optimize memory usage, prevent excessive swapping, and ensure that processes have sufficient memory to execute without significant performance degradation.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. Can you explain this answer?
Question Description
In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 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 In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. Can you explain this answer?.
Solutions for In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. 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 In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. Can you explain this answer?, a detailed solution for In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. Can you explain this answer? has been provided alongside types of In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice In the working-set strategy, which of the following is done by the operating system to prevent thrashing? It initiates another process if there are enough extra frames. It selects a process to suspend if the sum of the sizes of the working-sets exceeds the total number of available frames.a)I onlyb)II onlyc)Neither I nor IId)Both I and IICorrect answer is option 'D'. 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