CS 422 - Operating Systems
Line Printer Queue Program

Write a line printer queue manager and a print queue submission program. The queue manager will need to be kept running most the time and should monitor the print queue for files to be printed. When a file appears, begin printing it, until done, and then remove the entry from the queue. Print the files to the console display of your system. Use a sleep call after each line is printed to slow up the printing.

The submit command should add the directory path and file name of the file to be printed to the print queue. It should then wake up the print queue manager if necessary.

Use shared memory to hold the print queue. Make sure you test for queue full upon submission and handle problems appropriately.

Include a cancel command that can be used by any user to remove any entry from the queue. If the entry is currently being printed, terminate the printing.

Write a program that will print the list of files in the queue. Include an entry number to make it easier to specify which entry to cancel.


Summary of Requirements