C - Program for Rate Monotonic Scheduling Algorithm
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int n;
float e[20],p[20];
int i;
float ut,u,x,y;
clrscr();
printf("\n Enter Number of Processes :: ");
scanf("%d",&n);
for(i=0;i<n;i++)
{
clrscr();
printf("\n Enter Execution Time for P%d ::",(i+1));
scanf("%f",&e[i]);
printf("\n Enter Period for P%d ::",(i+1));
scanf("%f",&p[i]);
}
//calculate the utilization
for(i=0;i<n;i++)
{
x=e[i]/p[i];
ut+=x;
}
//calculate value of U
y=(float)n;
y=y*((pow(2.0,1/y))-1);
u=y;
clrscr();
if(ut<u)
{
printf("\n As %f < %f ,",ut,u);
printf("\n The System is surely Schedulable");
}
else
printf("\n Not Sure.....");
getch();
}
can u please provide me c program for relative delay in rate monotonic scheduling in event triggered system.
ReplyDeleteravitej.madem@gmail.com is my mail id.
thanks in advance
please can you provide me Java implementation code of Rate Monotonic Scheduling Algorithm which runs on Storm.
DeleteMy mail:shahidnawaz14@gmail.com
I'll be thankful to you......
How can we implement edge chasing deadlock detection.
ReplyDelete