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
-
Robotics: Shaping the Future of Industry
23 min ago
-
17 TERABYTE PREMIUM ÇP FOR SALE
24 min ago
-
https://dhs-bhd-prod.powerappsportals.us/forums/general-discussion/e06cd099-9a16-ef11-a73d-001dd80c0
28 min ago
-
The Sociology of Crime: Analyzing Patterns and Trends
35 min ago
-
Untitled
36 min ago
-
✅✅ Spy cam, incest, banned videos ✅✅
46 min ago
-
✅✅ Cheating wife/GF with audio ✅✅
47 min ago
-
Worlock AC Repair
1 hour ago
-
https://dhs-bhd-prod.powerappsportals.us/forums/general-discussion/e06cd099-9a16-ef11-a73d-001dd80c0
1 hour ago
-
Time Travel Through History: Exploring Key Moments and Their Lasting Impacthttps://www.apc.com/CFIDE
1 hour ago