1)What are the different storage classes in C?
Ans=>C has three types of storage: automatic, static and allocated.
Variable having block scope and without static specifier have
automatic storage duration.
...
Thursday, 20 September 2012
Worst Fit Memory Management Scheme
worst fit memory management program in c++
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
class WFMM
{ int a[50],c,par,i,j,n,p[50],d[50],r,s,b,m,min,g;
public:
void input();
void output();
}X;
void WFMM::input()
{
c=1000;
r=c;
cout<<"Total...
Best Fit Memory Management Scheme
We can also allocate memory locations to dofferent processes using best fit memory management scheme.Here is the code in C++
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
class BFMM
{ int a[50],c,par,i,j,n,p[50],d[50],r,s,b,m,min,g;
public:
void input();
...
First Fit Memory Management
we can use first fit memory management scheme to allocate memory space to different processes.Here is the program in c++
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
class FFMM
{ int a[50],c,par,i,j,n,p[50],d[50],e[50],r,s,b;
public:
void input();
...