IDNLearn.com makes it easy to find precise answers to your specific questions. Discover detailed answers to your questions with our extensive database of expert knowledge.
Sagot :
This is an example with solution:
Five jobs arrive nearly simultaneously for processing and their estimated CPU cycles are, respectively: Job A = 12, Job B = 2, Job C = 15, Job D = 7, and Job E = 3 ms.
a. Using FCFS, and assuming the difference in arrival time is negligible, in what order would they be processed? What is the total time required to process all five jobs? What is the average turnaround time for all five jobs?
Answer: The order of processing for the given jobs = A->B->C->D->E.
Total time needed to process all the jobs = 12+2+15+7+3 = 39 ms.
Turn around time for job A = 12 ms.
Turn around time for job B = 15 ms.
Turn around time for job C = 30 ms.
Turn around time for job D = 37 ms.
Turn around time for job E = 40 ms.
Answer : Therefore, the average turnaround time = (12+15+30+37+40)/5 = 26.8 ms.
Order of processing is A, B, C, D, E and Total time to process and Average turnaround time is 39 ms and 24 ms
Turnover time and order of processing:
Order of processing = A, B, C, D, E
Total time to process all five jobs = Job A + Job B + Job C + Job D + Job E
Total time to process all five jobs = 2 + 12 + 15 + 7 + 3
Total time to process all five jobs = 39 ms
Average turnaround time = [(2-0) + (2+12-0) + (2+12+15-0) + (2+12+15+7-0) + (2+12+15+7+3-0)] / 5
Average turnaround time = (2+14+29+36+39) / 5
Average turnaround time = 24 ms
Find out more information about 'Turnaround time'.
https://brainly.com/question/5768680?referrer=searchResults
We greatly appreciate every question and answer you provide. Keep engaging and finding the best solutions. This community is the perfect place to learn and grow together. Find the answers you need at IDNLearn.com. Thanks for stopping by, and come back soon for more valuable insights.