How to create a simulated printer in Python?
<p>I'm trying to simulate a printer using a linked queue to manage print jobs. A print job would be processed in the order of submission, and there are 2 printers. Each print job has a number of pages, and will tie up a printer for a certain number of cycles selected by the user.</p>

<p>So for example, if there are 3 jobs, job 1 (5 pages), job 2 (7 pages) and job 3 (13 pages), after 6 cycles (printed pages), one printer would have job 2 on it with 1 page left, and the other would have job 3 on it with 12 pages left.</p>

<p>I was able to deal with 2 jobs in the queue but I don't know how to handle the third job, as I want the third job to be processed only if a printer is available.</p>