Showing posts with label Simulation. Show all posts
Showing posts with label Simulation. Show all posts

Priority CPU Scheduling Algorithm in C++



#include <iostream>

using namespace std;

int main()
{
    clrscr();
    int n,i,a[5],b[5],bt;
    float p;
    cout<<"Enter no. of process : ";
    cin>>n;

SCAN Disk Scheduling Algorithm in C++


#include <iostream>

using namespace std;

int main()
{
    clrscr();
    int n,d[8],a,b,c=0,j,i=0;
    char ch='y';
    cout<<"Enter no. of elements in queue : ";
    cin>>n;
    cout<<"enter value of initial head position : ";
    cin>>a;

Shortest Job First (SJF) Disk Scheduling Algorithm in C++


#include <iostream>

using namespace std;

int main()
{
    clrscr();
    int n,a[4],b[4],i,j;
    float k;
    cout<<"Enter no. of process :";
    cin>>n;

First Come First Serve (FCFS) Disk Scheduling Algorithm in C++



#include <iostream>

using namespace std;

int main()
{
    clrscr();
    int a,b,c=0,i=1;
    char ch='y';
    cout<<"enter value of initial head position : ";
    cin>>a;

Custom Search