Os Practical 1
Os Practical 1
Practical No-01
Class:- SYCS
Code:-
import java.text.ParseException;
class gfg {
// processes
wt[0] = 0;
1
// Function to calculate turn around time
// bt[i] + wt[i]
// around time
{ total_wt = total_wt +
tat[i];
2
System.out.printf(" %d ", bt[i]);
int t = total_tat / n;
s); System.out.printf("\n");
// Driver code
//process id's
int n = processes.length;
findavgTime(processes, n, burst_time);
Output:-
3
4