Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions