Content-Length: 2898949 | pFad | https://www.scribd.com/document/688081242/os1
4Os 1
Os 1
Os 1
{
// calculating turnaround time by adding
// bt[i] + wt[i]
for (int i = 0; i < n; i++)
tat[i] = bt[i] + wt[i];
}
int main()
{
// process id's
int processes[] = {1, 2, 3};
int n = sizeof processes / sizeof processes[0];
// Burst time of all processes
int burst_time[] = {10, 5, 8};
findavgTime(processes, n, burst_time);
Fetched URL: https://www.scribd.com/document/688081242/os1
Alternative Proxies: