In the case of the best fit memory allocation scheme, the operating system searches for the empty memory block. When the operating system finds the memory block with minimum wastage of memory, it is allocated to the process.
In Best fit memory allocation scheme, the operating system searches that can –
Example:
If you see the image right you will see that the process size is 40.
While blocks 1, 2 and 4 can accommodate the process. Block 2 is chosen as it leaves the lowest memory wastage
Try out best fit allocation in variable task with visualising the process allocation in main memory
Go to simulatorTry out best fit allocation in fixed task with visualising the process allocation in main memory
Go to simulator