⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p1

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻
📖 第 1 页 / 共 2 页
字号:
.ds n \s+2.hw above-mentioned.ds s \s-2.ds m \v'-.3'.\v'.3'.TLThe UNIXTime-Sharing System\f1\s10\v'-.2n'*\v'.2n'\s0\fP.AUD. M. Ritchie and K. Thompson.AB.FS* Copyright 1974,Association for Computing Machinery, Inc.,reprinted by permission.This is a revised version of an articlethat appeared in Communications of the \*sACM\*n,.IT 17 ,No. 7 (July 1974), pp. 365-375.That article was arevised version of a paper presentedat the Fourth \*sACM\*n Symposium on OperatingSystems Principles,\*sIBM\*n Thomas J. Watson Research Center,Yorktown Heights,New York,October 15-17, 1973..FE.UXis a general-purpose, multi-user, interactiveoperating system for the larger Digital Equipment Corporation\*sPDP\*n-11 andthe Interdata 8/32 computers.It offers a number of featuresseldom found even in larger operatingsystems, including.IP iA hierarchical file system incorporatingdemountable volumes,.IP iiCompatible file, device, and inter-process I/O,.IP iiiThe ability to initiate asynchronous processes,.IP ivSystem command language selectable on a per-user basis,.IP vOver 100 subsystems including a dozen languages,.IP viHigh degree of portability..LPThis paper discusses the natureand implementation of the file systemand of the user command interface..AE.NHINTRODUCTION.PPThere have been four versions ofthe.UXtime-sharing system..hy 12The earliest (circa 1969-70) ran onthe Digital Equipment Corporation \*sPDP\*n-7 and -9 computers.The second version ran on the unprotected\*sPDP\*n-11/20 computer.The third incorporated multiprogramming and ranon the \*sPDP\*n-11/34, /40, /45, /60, and /70 computers;it is the one described in the previously published versionof this paper, and is also the most widely used today..hy 14This paper describes only thefourth, currentsystem that runs on the \*sPDP\*n-11/70 and theInterdata 8/32 computers.In fact, the differences among the various systems israther small;most of the revisions made to the originally published version of thispaper,aside from those concerned with style,had to do with details of the implementation of the file system..PPSince\*sPDP\*n-11.UXbecame operationalin February, 1971,over 600 installations have been put into service.Most of them are engaged in applications such ascomputer science education,the preparation and formatting of documentsand other textual material,the collection and processing of trouble datafrom various switching machines within the Bell System,and recording and checking telephone serviceorders.Our own installation is used mainly for researchin operating systems, languages,computer networks,and other topics in computer science, and also fordocument preparation..PPPerhaps the most important achievement of.UXis to demonstratethata powerful operating system for interactive useneed not be expensive either in equipment or in humaneffort:itcan run on hardware costing as little as $40,000, andless than two man-years were spent on the main systemsoftware.We hope, however, that users findthat themost important characteristics of the systemare its simplicity, elegance, and ease of use..PPBesides the operating system proper, some major programsavailable under.UXare.DS.nfC compilerText editor based on \*sQED\*n.[qed lampson.]Assembler, linking loader, symbolic debuggerPhototypesetting and equation setting programs.[cherry kernighan typesetting mathematics cacm.].[kernighan lesk ossanna document preparation bstj%Q This issue.].fi.in +3n.ll -5n.ti -3nDozens of languages includingFortran 77, Basic, Snobol, \*sAPL\*n, Algol 68, M6, \*sTMG\*n, Pascal.in.ll.DEThere is a host of maintenance, utility, recreation and novelty programs,all written locally.The.UXuser community, which numbers in the thousands,has contributed many more programs and languages.It is worth noting that the system is totally self-supporting.All.UXsoftware is maintained onthesystem;likewise, this paper and all otherdocumentsin this issuewere generated and formatted by the.UXeditor and text formattingprograms..SHII. HARDWARE AND SOFTWARE ENVIRONMENT.PPThe \*sPDP\*n-11/70 on which the Research.UXsystem is installed is a 16-bitword (8-bit byte) computer with 768K bytes of core memory;the system kerneloccupies 90K bytesabout equally divided between codeand data tables.This system, however, includes a very large number ofdevice driversand enjoys a generous allotmentof space for I/O buffers and system tables;a minimal system capable of running the softwarementioned above canrequire as little as 96K bytesof core altogether.There are even larger installations;see the description of the\*sPWB/UNIX\*n systems,.[dolotta mashey workbench software engineering.].[dolotta haight mashey workbench bstj%Q This issue.]for example.There are also much smaller, though somewhat restricted,versions of the system..[lycklama microprocessor bstj%Q This issue.].PPOur own \*sPDP\*n-11 has two200-Mb moving-head disksfor file system storage and swapping.There are 20 variable-speedcommunications interfacesattached to 300- and 1200-baud data sets,and an additional 12 communication lineshard-wired to 9600-baud terminals andsatellite computers.There are also several 2400- and 4800-baudsynchronous communication interfacesused for machine-to-machine file transfer.Finally, there is a varietyof miscellaneousdevices includingnine-track magnetic tape,a line printer,a voice synthesizer,a phototypesetter,a digital switching network,and a chess machine..PPThe preponderance of.UXsoftware is written in theabovementioned C language..[c programming language kernighan ritchie prentice-hall.]Early versions of the operating system were written in assembly language,but during the summer of 1973, it was rewritten in C.The size of the new system was about one-third greaterthan that of the old.Since the new system not only became much easier tounderstand and to modify but alsoincludedmany functional improvements,including multiprogramming and the ability toshare reentrant code among several user programs,we consider this increase in size quite acceptable..SHIII. THE FILE SYSTEM.PPThe most important role ofthe systemis to providea file system.From the point of view of the user, thereare three kinds of files: ordinary disk files,directories, and special files..SH3.1 Ordinary files.PPA filecontains whatever information the user places on it,for example, symbolic or binary(object) programs.No particular structuring is expected by the system.A file of text consists simply of a stringof characters, with lines demarcated by the newline character.Binary programs are sequences of words asthey will appear in core memory when the programstarts executing.A few user programs manipulate files with morestructure;for example, the assembler generates, and the loaderexpects, an object file in a particular format.However,the structure of files is controlled bythe programs that use them, not by the system..SH3.2 Directories.PPDirectories providethe mapping between the names of filesand the files themselves, and thusinduce a structure on the file system as a whole.Each user has a directory of his own files;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -