CS FundamentalsHardGATE CS

A spooler is used for a printer. Which deadlock condition does spooling break for the printer resource, and how?

  1. A. Circular wait, by numbering printers
  2. B. No preemption, by taking the printer away
  3. C. Mutual exclusion: processes write to a spool area on disk and only the spooler daemon uses the printer itself
  4. D. Hold and wait, by requesting all resources at once

Correct answer: C. Mutual exclusion: processes write to a spool area on disk and only the spooler daemon uses the printer itself

With spooling no user process ever holds the physical printer; each just writes a file. Only the daemon accesses the device, so the printer is never contended among processes. (Spool space itself can still run out.)

More Operating Systems questions

Exams that ask this topic