A company has a processor for processing the requests in the request queue Company proccessor total time taken to complete first cycyle
company processor total time taken to complete first cycyle
A company has a processor for processing the requests in the request queue. Each request has an execution time varying from 0 to 9 units. The processor is programmed in such a way that it will process the requests in two cycles. In the first cycle, it will process all the requests with an odd unit of time and in the other cycle, it will process the remaining requests. The company wishes to know the total time taken by the processor to complete the first cycle by adding all the odd units of time. Write an algorithm to find the total time to complete the first cycle of requests.
Comments
Post a Comment