Question: Prompt: When multiple documents are submitted to a printer, it may start printing multiple documents simultaneously, causing contents of different documents printed on the same
Prompt:
When multiple documents are submitted to a printer, it may start printing multiple documents simultaneously, causing contents of different documents printed on the same paper. To address this issue, a software engineer has produced the following design to guarantee that no more than one document can be printed at the same time.

Study the design above and answer the following questions below. Q1: This design wont work if a printer were managed by multiple PrinterManager objects. Explain why is this so? Q2: What design pattern is used in this the design? Choose below and explain?
Singleton
Object Pool
Filter
Read-Only Interface
Motivation
Composite
Builder
Prototype
Abstract Factory
Factory Method
Proxy
Immutable Objects
Object Comparision
Marker Interface
Java Cloneable Interface
Q3:Is it possible to change the design to have one PrinterManager object manage many printers? Describe your solution.
Public void rundt We manager has a single dedicated print()); while(true) if (printer.is Ideox printer.print(getNextJob(): }else{ walt (100); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
