Question: USING JAVA:: An operating system assigns jobs to print queues based on the number of pages to be printed: Queue A: less than ten pages.
USING JAVA::
An operating system assigns jobs to print queues based on the number of pages to be printed:
Queue A: less than ten pages.
Queue B: at least ten pages but less than twenty pages.
Queue C: at least twenty pages, but no more than fifty pages.
The computer system uses three printers, one assigned to each queue, each capable of printing ten pages per minute.
Assume that a print request arrives every minute, for each request the number of pages to be printed is a random integer between one and fifty, and a job is assigned to a queue according to the number of pages to be printed. In each queue, the jobs are processes in the order in which they are received. (The printers operate simultaneously. Your program should prompt for number of jobs to be run and should output the order the jobs were received, the order in which they were printed, the printer they were printed on, and the total time required to process the set of jobs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
