2 2 votes The free memory contains three holes, in increasing address order:$300,\ 200,\ 250$ KiBThe following allocation requests arrive in order:$100,\ 150,\ 200,\ 200,\ 100$ KiBWhenever a hole is split, the remaining portion stays at the same position in the free-list.Which of the following statements are correct?Under First Fit, the first four requests are satisfied, but the last $100$ KiB request fails. Under Best Fit, all five requests are successfully allocated. Under Worst Fit, all five requests are successfully allocated. Under First Fit, when the final request fails, exactly $100$ KiB of free memory still exists. Operating System goclasses goclasses-cs-dpp operating-system goclasses-cs-dpp-day-349 goclasses-os-practice-questions first-fit best-fit worst-fit fragmentation multiple-selects + – GO Classes 112 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes First FitStart:$[300,\ 200,\ 250]$Request $100$:$[200,\ 200,\ 250]$Request $150$ uses the first $200$:$[50,\ 200,\ 250]$Request $200$:$[50,\ 250]$Next request $200$ uses $250$:$[50,\ 50]$Now the final request is $100$ KiB.Total free memory:$50+50=100$ KiBBut neither individual hole is $100$ KiB.So the request fails because of external fragmentation.Hence A and D are correct. Best FitStart:$[300,\ 200,\ 250]$$100$ goes into $200$:$[300,\ 100,\ 250]$$150$ goes into $250$:$[300,\ 100,\ 100]$$200$ goes into $300$:$[100,\ 100,\ 100]$The next $200$ request cannot be satisfied.So B is false. Worst Fit$100$ uses $300$, leaving $200$.$150$ uses $250$, leaving $100$.The two $200$ requests consume the two $200$ holes.The final $100$ request consumes the remaining $100$ hole.So all five requests succeed.Therefore C is correct. GO Classes answered Aug 17 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.