This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PRIORITY CPU SCHEDULING | |
#include<stdio.h> | |
struct pris { | |
int pid, pri, atime, btime, ctime, wtime, tatime; | |
short check; | |
}; | |
void main () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SJF CPU SCHEDULING | |
#include<stdio.h> | |
struct pris { | |
int pid, atime, btime, ctime, wtime, tatime; | |
short check; | |
}; | |
void main () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
struct rrs { | |
int pid, atime, btime, tempb, ctime, tatime, wtime; | |
short isTraversed; | |
}; | |
void main () { | |