Page 1 of 1

Task-1: Ask the user for the number of processes to input, n (infinite loop) Task-2: Then take user input for each of th

Posted: Sat May 14, 2022 8:01 pm
by answerhappygod
Task 1 Ask The User For The Number Of Processes To Input N Infinite Loop Task 2 Then Take User Input For Each Of Th 1
Task 1 Ask The User For The Number Of Processes To Input N Infinite Loop Task 2 Then Take User Input For Each Of Th 1 (101.34 KiB) Viewed 39 times
Please solve this. I need it urgent
Use C language.
Task-1: Ask the user for the number of processes to input, n (infinite loop) Task-2: Then take user input for each of the n processes processID, processName, duration and arrivalTime Task-3: Show the scheduling sequence using FCFS and SJF by displaying the following information for each process: Seq. no., process Name, scheduling Timeline, TurnaroundTime Task-4: Finally calculate ATT(Average Turnaround Time), AWT(Average Waiting Time), ART(Average Response Time) Sample Input for FCFS: Iteration 1 Input: n=3 01 A 40 0 02 B 50 0 03 с 10 5 Output: Seq. No. Process Name Timeline TurnaroundTime 1 A(or B) 0-40 40 2 B(or A) 40-90 90 3 C 90-100 95 ATT = 75 AWT = 41.67 ART = 41.67 =