ArticleslgStudy

computer science

System V printing system

System V printing system is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand System V printing system rather than just read about it. In short: The printing subsystem of UNIX System V is one of several standardized systems for printing on Unix, and is typical of commercial System V-based Unix versions such as Solaris and SCO OpenServer. A system running this print architecture could traditionally be identified by the use of the user command lp as the primary interface to the print system, as opposed to the BSD lpr command (though some systems provide lpr as…

Key takeaways

  • System V printing system belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect System V printing system to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of System V printing system from memory before moving on to harder problems.

Reference excerpt

The printing subsystem of UNIX System V is one of several standardized systems for printing on Unix, and is typical of commercial System V-based Unix versions such as Solaris and SCO OpenServer. A system running this print architecture could traditionally be identified by the use of the user command lp as the primary interface to the print system, as opposed to the BSD lpr command (though some systems provide lpr as an alias to lp). Typical user commands available to the System V printing system are:

lp: the user command to print a document lpstat: shows the current print queue cancel: deletes a job from the print queue lpadmin: a system administration command that configures the print system lpmove: a system administration command that moves jobs between print queues

History In the Unix programming model, device files are special files that act as access points to peripheral devices such as printers. For example, the first line printer on a Unix system might be represented by a file lp1 in the device (/dev) directory, i.e., /dev/lp1. Using the file metaphor, a document could by printed by "copying" the file onto the device: cp document /dev/lp1. While this worked well enough for the case where there was one printer per user, this model did not scale out well to multiple users having to share one printer. The solution was to create a queue (or "spool") of documents to be printed and use a daemon (system process) to manage this queue and send the documents to the printer in the order in which they arrived. Such a system, with an lp command to send documents to the queue, was first introduced in 1973 in Version 4 of Unix. By the release of System V Release 4, the suite of utilities had grown to include commands for canceling print jobs, moving jobs among queues, enabling and disabling queues, enabling and disabling a job scheduler daemon, and status reports of the print system. The lp command handled queue documents to be printed and had over 20 different options that controlled the appearance of the document and its place in the queue, and even handled email notification of the user once the document had finished printing. The command returned a "job id" which could be used by the cancel or lpstat commands to remove the job from the queue or check on its progress, respectively. While the system was considered to be quite complex to set up and administer, most uses were expected to only use these three commands. With its distribution in the influential AT&T Unix System V, the interface if not the implementation became the standard for users' control over printers. The lp command was included as a requirement in the POSIX.2 standard, and a command by that name appeared in the subsequent lpr, LPRng and CUPS printing systems. (In SVR4 derivates like SCO UNIX, the lp command was simply an alias for the lpr command used by the BSD-based lpr system.) As late as 1996, Running Linux stated "The Linux printing software consists of the UNIX standard lp and lpr software", but by 1999 support for lp was waning and the third edition simply stated "The lpr command prints a document on Linux." By 2003, a survey of the Debian, Mandrake, Red Hat, Slackware and SuSE distributions showed that all of them were running some combination of lpr, LPRng and CUPS. The original System V printing system remains proprietary; however, the Solaris print system, heavily modified from the original, has been released as open source software as part of the OpenSolaris project. CUPS emulates both System V and Berkeley print architectures on the interface level, though its internal architecture is different from both.

Criticism In his introduction to a simplified configuration system for lp, author Peter Gray of the University of Wollongong described several weaknesses of the version shipping with the then-current Solaris (operating system) version 2.

As opposed to the single daemon used by the simpler BSD lpr system, the lp system used separate daemons, one for scheduling and one for remote communication. The lpr system could be controlled with a single configuration file while lp requires a separate program for administration. The lp system did support permissions, but the model did not scale to hundreds of users. As a result, Gray observed that "many administrators choose to simply run the old lpr/lpd system on the SVR4 boxes."

See also Berkeley printing system CUPS LPRng

References

External links

lp lpstat Printing administration on Solaris 10

Worked examples

Example 1 — a first encounter with System V printing system

Start with the simplest possible case. Write down what System V printing system claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to System V printing system before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about System V printing system ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of System V printing system

In research
System V printing system appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses System V printing system in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
System V printing system is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer printing, UNIX System V, so understanding it makes those chapters shorter.
In everyday life
Look for System V printing system outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “System V printing system” →

How to study System V printing system in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what System V printing system means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain System V printing system out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is System V printing system in simple terms?

The printing subsystem of UNIX System V is one of several standardized systems for printing on Unix, and is typical of commercial System V-based Unix versions such as Solaris and SCO OpenServer. A system running this print architecture could traditionally be identified by the use of the user comman…

Why does System V printing system matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study System V printing system?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on System V printing system.

Tags

  • Computer printing
  • UNIX System V

Keep exploring