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 =
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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!