Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Get immediate answers to your questions from a wide network of experienced professionals on our Q&A platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.
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 appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. We appreciate your time. Please come back anytime for the latest information and answers to your questions. Discover more at Westonci.ca. Return for the latest expert answers and updates on various topics.