Look and Clook
Look and Clook
scheduling algorithms:
#include <stdio.h>
#include <stdlib.h>
int main() {
int n, head, direction, choice;
switch (choice) {
case 1:
look(requests, n, head, direction);
break;
case 2:
clook(requests, n, head);
break;
default:
printf("Invalid choice!\n");
}
return 0;
}
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int main() {
int requests[20], n, head, total_seek_time = 0;
int completed[20] = {0};
return 0;
}