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

1 Expert Approved Answer
Step: 1 Unlock

Program for Best fit include include using namespace std To allocate the memory to blocks as per Bes... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!