Answered step by step
Verified Expert Solution
Question
1 Approved Answer
An operating system assigns jobs to print queues based on the number of pages to be printed (less than 10 pages, less than 20 pages,
An operating system assigns jobs to print queues based on the number of pages to be
printed (less than 10 pages, less than 20 pages, or more than 20 pages but less than 50
pages). You may assume that the system printers are able to print 10 pages per minute.
Smaller print jobs are printed before larger print jobs, and print jobs of the same priority are queued up in the order in which they are received. The system administrators
would like to compare the time required to process a set of print jobs using 1, 2, or 3
system printers.
Write a program that simulates processing 100 print jobs of varying lengths using 1,
2, or 3 printers. Assume that a print request is made every minute and that the number
of pages to print varies from 1 to 50 pages.
The output from your program should indicate the order in which the jobs were
received, the order in which they were printed, and the time required to process the set
of print jobs. If more than one printer is being used, indicate which printer each job was
printed on
langunge C++
subjet: priority queue
An operating system assigns jobs to print queues based on the number of pages to be
printed (less than 10 pages, less than 20 pages, or more than 20 pages but less than 50
pages). You may assume that the system printers are able to print 10 pages per minute.
Smaller print jobs are printed before larger print jobs, and print jobs of the same priority are queued up in the order in which they are received. The system administrators
would like to compare the time required to process a set of print jobs using 1, 2, or 3
system printers.
Write a program that simulates processing 100 print jobs of varying lengths using 1,
2, or 3 printers. Assume that a print request is made every minute and that the number
of pages to print varies from 1 to 50 pages.
The output from your program should indicate the order in which the jobs were
received, the order in which they were printed, and the time required to process the set
of print jobs. If more than one printer is being used, indicate which printer each job was
printed on
language C++
subjet: priority queue
it need to be in classes, please
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started