Program for Worst Fit algorithm in Memory Management Worst Fit allocates a process to the partition which is largest sufficient among the freely available partitions available in the main memory. If a large process comes at a later stage, then memory will not have space to accommodate it. Suggestion: 1. First Fit 2. Best Fit 3. Worst Fit Example: Input : blockSize[] = {100, 500, 200, 300, 600}; processSize[] = {212, 417, 112, 426}; Output: Process No. Process Size Block no. 1 212 5 2 417 2 3 112 5 4 426 Not Allocated Implementation: 1- Input memory blocks and processes with sizes. 2- Initialize all memory blocks as free. 3- Start by picking each process and find the minimum block size that can be assigned to current process i.e., find min(bockSize[1], blockSize[2],.....blockSize[n]) > processSize[current], if found then assign it to the current process. 5- If not then leave that process and keep checking the fu...
dot clu, Dot clu is an idea to make technology more advance.. We are at the learning stage as well as teach beginner. Our Motive is make Tech more and more advance, we know we are at only at starting stage but every Dream have a starting stage. Now support Us and Join us for more and suggest us what we make better. Thankyou