Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider six memory partitions of size 200 KB... Start Learning for Free
Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?
  • a)
    200 KB and 300 KB
  • b)
    200 KB and 250 KB
  • c)
    250 KB and 300 KB
  • d)
    300 KB and 400 KB
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB,...
Best fit allocates the smallest block among those that are large enough for the new process. So the memory blocks are allocated in below order.
357 ---> 400
210 ---> 250
468 ---> 500
491 ---> 600
Sot the remaining blocks are of 200 KB and 300 KB
View all questions of this test
Most Upvoted Answer
Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB,...
Explanation:

The best fit algorithm is a memory allocation algorithm that assigns the smallest free partition that is sufficient to accommodate a process. It aims to minimize wastage of memory by selecting the partition that best fits the process size.

To determine which partitions are not allotted to any process using the best fit algorithm, we will allocate the given processes one by one to the available memory partitions.

Step 1: Initialize the memory partitions and processes:
- Memory partitions: 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, 250 KB
- Processes: 357 KB, 210 KB, 468 KB, 491 KB

Step 2: Allocate the first process (357 KB):
- The best fit for 357 KB is the 400 KB partition. Allocate it to the process and update the partition size to 43 KB (400 KB - 357 KB).

Step 3: Allocate the second process (210 KB):
- The best fit for 210 KB is the 250 KB partition. Allocate it to the process and update the partition size to 40 KB (250 KB - 210 KB).

Step 4: Allocate the third process (468 KB):
- The best fit for 468 KB is the 500 KB partition. Allocate it to the process and update the partition size to 32 KB (500 KB - 468 KB).

Step 5: Allocate the fourth process (491 KB):
- The best fit for 491 KB is the 600 KB partition. Allocate it to the process and update the partition size to 109 KB (600 KB - 491 KB).

Step 6: Check which partitions are not allotted to any process:
- The remaining partitions are: 200 KB, 300 KB, 109 KB.

Conclusion:

Based on the best fit algorithm, the partitions that are not allotted to any process are 200 KB and 300 KB. Therefore, the correct answer is option 'A'.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. Can you explain this answer?
Question Description
Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. 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 Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. 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 Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. Can you explain this answer?.
Solutions for Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. 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 Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider six memory partitions of size 200 KB, 400 KB, 600 KB, 500 KB, 300 KB, and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?a)200 KB and 300 KBb)200 KB and 250 KBc)250 KB and 300 KBd)300 KB and 400 KBCorrect answer is option 'A'. 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