Write Logic Algorithm Cpu Scheduling Algorithms Shown Fcfs First Come First Served Algori Q37098933

Write the logic/Algorithm for the CPU scheduling algorithmsshown below:
a. FCFS : First Come First Served Algorithmb. SJF: Shortest Job First Algorithm
Requirements:
User input: The user inputs the number of processes / jobslined up for CPU’s attention. The user also inputs the executiontime/ Burst times for each job/process.
Process: The algorithm processes the job in accordance withthe FCFS algorithm.
Output: The Program outputs the following:1. Wait times for each process2. Turn Around times for each process3. Average Wait time4. Average Turn Around time
You can use either a Visual Flowchart or a DescriptiveStep-by-step textual method of demonstrate the algorithm


Solution


FCFS algorithm:1. Input the processes

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.