Question: Implement a program that will create two separate threads , one for Best Fit Memory Allocation Algorithm second for Worst Fit Memory Allocation Algorithm. Inputs
Implement a program that will create two separate threads,
- one for Best Fit Memory Allocation Algorithm
- second for Worst Fit Memory Allocation Algorithm.
Inputs from user will be taken in parent program. Both threads (Algos) will share the same input. Program will ask the user to enter no. of free memory blocks and sizes. Also, the total number of processes and their memory requirements will be entered by user.
Compare both Algorithms in terms of memory wasted in internal fragmentation and show in Parent thread which one is better.
Step by Step Solution
There are 3 Steps involved in it
Program for Best fit include include using namespace std To allocate the memory to blocks as per Bes... View full answer
Get step-by-step solutions from verified subject matter experts
