james fcfs
Never
#include<stdio.h> #include<stdlib.h> void main() { int n,seektime=0,diff; printf("enter the size of queue"); scanf("%d",&n); int queue[n+1]; printf("enter the queue"); for(int i=1;i<=n;i++) scanf("%d",&queue[i]); printf("enter head position"); scanf("%d",&queue[0]); printf("\n movement of cylinder"); for(int i=0;i<n;i++) { if(queue[i+1]>queue[i]) diff=queue[i+1]-queue[i]; else diff=queue[i]-queue[i+1]; seektime+=diff; printf("%d\t",queue[i]); } printf("%d",queue[n]); printf("\n total seek time:%d",seektime); printf("\n average seek time,=%f",(float)seektime/n); }
Raw Text
-
awsgfqe3t32t
14 min ago
-
✅✅ Spy cam, incest, banned videos ✅✅
42 min ago
-
asdfnm adsdfgdasfdf
2 hours ago
-
sdddsdssddsdsf
2 hours ago
-
sdfgasdf sadfsadf
2 hours ago
-
asdnb nadsdfdasd
2 hours ago
-
Untitled
2 hours ago
-
BUY SUPER HIGH QUALITY COUNTERFEIT MONEY ,CLONE CREDIT CARDS ONLINE GBP, DOLLAR, EUROS BUY COUNTERFE
CSS | 2 hours ago
-
BUY SUPER HIGH QUALITY COUNTERFEIT MONEY ,CLONE CREDIT CARDS ONLINE GBP, DOLLAR, EUROS BUY COUNTERFE
CSS | 2 hours ago
-
fghjfgh fghjfghj
2 hours ago