#include void main() { int n, i, temp, j; printf("Enter Number of Processes"); scanf("%d", &n); int at[n], bt[n], tt[n], wt[n], id[n]; for (i = 0; i < n; i++) { printf("Enter Arrival Time of Process %d ", i + 1); scanf("%d", &at[i]); printf("Enter Burst Time of Process %d ", i + 1); scanf("%d", &bt[i]); id[i] = i + 1; } for (i = 0; i < n - 1; i++) { for (j = 0; j < n - i - 1; j++) { if (at[j] > at[j + 1]) { temp = at[j + 1]; at[j + 1] = at[j]; at[j] = temp; temp = bt[j + 1]; bt[j + 1] = bt[j]; bt[j] = temp; temp = id[j + 1]; id[j + 1] = id[j]; id[j] = temp; } } } int time1 = 0, completed = 0; while (completed < n) { int flag = 0; for (i = 0; i < n; i++) { if (at[i]
BRUHHHHH.........learn malayalam dude or just take the code or u can atleast try to understand the algorithm No competence from ur side and still complaining....
#include int main(){ int bt[10]={0},at[10]={0},tat[10]={0},wt[10]={0},ct[10]={0}; int n,sum=0; float totalTAT=0,totalWT=0; printf("Enter number of processes "); scanf("%d",&n); printf("Enter arrival time and burst time for each process
Miss FCFS with arrival time nte kode cheyyuvo
#include
void main() {
int n, i, temp, j;
printf("Enter Number of Processes");
scanf("%d", &n);
int at[n], bt[n], tt[n], wt[n], id[n];
for (i = 0; i < n; i++) {
printf("Enter Arrival Time of Process %d
", i + 1);
scanf("%d", &at[i]);
printf("Enter Burst Time of Process %d
", i + 1);
scanf("%d", &bt[i]);
id[i] = i + 1;
}
for (i = 0; i < n - 1; i++) {
for (j = 0; j < n - i - 1; j++) {
if (at[j] > at[j + 1]) {
temp = at[j + 1];
at[j + 1] = at[j];
at[j] = temp;
temp = bt[j + 1];
bt[j + 1] = bt[j];
bt[j] = temp;
temp = id[j + 1];
id[j + 1] = id[j];
id[j] = temp;
}
}
}
int time1 = 0, completed = 0;
while (completed < n) {
int flag = 0;
for (i = 0; i < n; i++) {
if (at[i]
Misse average waiting time float alle
Miss ithinte pdf kitto
PLEASE
This is an international platform use English please
u should learn malayalam to learn this or find another channel .
@@yzx666 HEMME scn thenne
Dude if u want English references u can refer a different video. Don't complain just because u can Lol
BRUHHHHH.........learn malayalam dude or just take the code or u can atleast try to understand the algorithm
No competence from ur side and still complaining....
umbeko malare
poi english umbeko ne
#include
int main(){
int bt[10]={0},at[10]={0},tat[10]={0},wt[10]={0},ct[10]={0};
int n,sum=0;
float totalTAT=0,totalWT=0;
printf("Enter number of processes ");
scanf("%d",&n);
printf("Enter arrival time and burst time for each process
");
for(int i=0;i
Can you please do share the other scheduling algos code also?