Operating System Assignment
Operating System Assignment
University of Sialkot
int main( )
{
int blockSize [ ] = {100, 500, 200, 300, 600};
int processSize [ ] = {212, 417, 112, 426};
int m = sizeof ( blockSize ) / sizeof ( blockSize [0] );
int n = sizeof ( processSize ) / sizeof ( processSize [0] );
return 0;
}
Best Fit Algorithm
#include <bits/stdc++.h>
using namespace std;
int main( )
{
int blockSize [ ] = {100, 500, 200, 300, 600};
int processSize [ ] = {212, 417, 112, 426};
int m = sizeof ( blockSize )/sizeof ( blockSize [0] );
int n = sizeof ( processSize )/sizeof ( processSize [0] );
return 0 ;
}
#include <bits/stdc++.h>
using namespace std;
int main( )
{
int blockSize [ ] = {100, 500, 200, 300, 600};
int processSize [ ] = {212, 417, 112, 426};
int m = sizeof ( blockSize )/sizeof ( blockSize [0] );
int n = sizeof ( processSize )/sizeof ( processSize [0] );
return 0 ;
}
<-------------------------->