The Unix Time Sharing
The Unix Time Sharing
Introduction
Sharing System older UNIX systems result from redesign of features found
to be deficient or lacking.
Since PDP-11 UNIX became operational in February
Dennis M. Ritchie and Ken Thompson 1971, about 40 installations have been put into service; they
are generally smaller than the system described here. Most
Bell Laboratories of them are engaged in applications such as the preparation
and formatting of patent applications and other textual
material, the collection and processing of trouble data from
various switching machines within the Bell System, and
recording and checking telephone service orders. Our own
installation is used mainly for research in operating sys-
tems, languages, computer networks, and other topics in
computer science, and also for document preparation.
UNIX is a general-purpose, multi-user, interactive
Perhaps the most important achievement of UNIX is to
operating system for the Digital Equipment Corpora- demonstrate that a powerful operating system for interac-
tion PDP-11/40 and 11/45 computers. It offers a number tive use need not be expensive either in equipment or in
of features seldom found even in larger operating sys- human effort: UNIX can run on hardware costing as little as
tems, including: (1) a hierarchical file system incorpo- $40,000, and less than two man years were spent on the
rating demountable volumes; (2) compatible file, device, main system software. Yet UNIX contains a number of fea-
and inter-process I/O; (3) the ability to initiate asynchro- tures seldom offered even in much larger systems. It is
nous processes; (4) system command language select- hoped, however, the users of UNIX will find that the most
able on a per-user basis; and (5) over 100 subsystems important characteristics of the system are its simplicity,
including a dozen languages. This paper discusses the elegance, and ease of use.
nature and implementation of the file system and of the Besides the system proper, the major programs avail-
user command interface. able under UNIX are: assembler, text editor based on QED
Key Words and Phrases: time-sharing, operating [2], linking loader, symbolic debugger, compiler for a lan-
system, file system, command language, PDP-11 guage resembling BCPL [3] with types and structures (C),
CR Categories: 4.30, 4.32 interpreter for a dialect of BASIC, text formatting program,
Fortran compiler, Snobol interpreter, top-down compiler-
compiler (TMG) [4], bottom-up compiler-compiler (YACC),
form letter generator, macro processor (M6) [5], and per-
muted index program.
There is also a host of maintenance, utility, recreation,
and novelty programs. All of these programs were written
locally. It is worth noting that the system is totally self-sup-
porting. All UNIX software is maintained under UNIX; like-
Copyright © 1974, Association for Computing Machinery,
wise, UNIX documents are generated and formatted by the
Inc. General permission to republish, but not for profit, all or part
of this material is granted provided that ACM’s copyright notice is UNIX editor and text formatting program.
given and that reference is made to the publication, to its date of
issue, and to the fact that reprinting privileges were granted by
permission of the Association for Computing Machinery.
This is a revised version of a paper presented at the Fourth 2. Hardware and Software Environment
ACM Symposium on Operating Systems Principles, IBM Thomas
J. Watson Research Center, Yorktown Heights. New York, Octo- The PDP-11/45 on which our UNIX installation is imple-
ber 15–17, 1973. Authors’ address: Bell Laboratories, Murray mented is a 16-bit word (8-bit byte) computer with 144K
Hill, NJ 07974. bytes of core memory; UNIX occupies 42K bytes. This sys-
The electronic version was recreated by Eric A. Brewer, Uni-
versity of California at Berkeley, [email protected]. Please
tem, however, includes a very large number of device driv-
notify me of any deviations from the original; I have left errors in ers and enjoys a generous allotment of space for I/O buffers
the original unchanged. and system tables; a minimal system capable of running the
9.5 Reliability
Our statistics on reliability are much more subjective
than the others. The following results are true to the best of
our combined recollections. The time span is over one year
with a very early vintage 11/45.
There has been one loss of a file system (one disk out
of five) caused by software inability to cope with a hard
ware problem causing repeated power fail traps. Files on
that disk were backed up three days.
A “crash” is an unscheduled system reboot or halt.
There is about one crash every other day; about two-thirds