TENEX

From Computer History Wiki
Revision as of 18:28, 28 June 2024 by Jnc (talk | contribs) (External links: + recent version of Muphy paper)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


TENEX
Type: Multi-tasking, multi-user, virtual memory
Creator: BBN
Architecture: PDP-10
Date Released: June, 1970


TENEX was an early operating system for the PDP-10 line of computers; it was the ancestor of the later DEC-supplied operating system for the DECSYSTEM-20, TOPS-20.

It was written by a small team at BBN for a KA10, modified to add the BBN Pager hardware for virtual memory (much as the MIT AI Lab added hardware to their KA10 for the same purpose). (The lack of a DEC mainframe with virtual memory, at the time, was the primary driver for the creation of TENEX.)

The Berkeley Time-Sharing System for the SDS 940 was an important source of concepts for TENEX, along with Multics.

It was later adapted to run on the virtual memory hardware supplied by DEC with the KI10 (although not as efficiently). There is also a report of one KL10 running TENEX. It was the native operating system for Xerox PARC's Maxc computers, as well as the Foonly machines.

Overview

Each user can have a hierarchy of processes, starting with the 'EXEC', the command processor (the collection being referred to as a 'job'); a 'superior' process has complete control over an 'inferior'. Processes may share memory with each other, and also map files into their address space; memory shared between processes can be either readable, writeable, or 'copy on write'. Interrupts may arrive from either the controlling keyboard of the job, or from another process in the job; traps can be caused by the process' operation (e.g. illegal memory references).

It provided a file system with protection (list, read, write, append, execute) to prevent one user from damaging another's files. File names included version numbers, which were automatically incremented when a file is written. It did not have the by-then-usual hierarchical directory tree, just a single level. (There were discussions about making it hierarchical, but this never happened; eventually that was added in TOPS-20.)

The system included three different debuggers, all versions of DDT. The first operated on the OS itself, when the OS was not running; it could be used to debug any part of the OS. The second was a close variant; it also operated on the OS, but with the OS running. The third was used to debug user processes.

TENEX was native to the ARPANET and came with support for NCP, and was updated for TCP/IP (it was one of the very first systems to implement TCP). Third parties added support for Tymnet, PUP and Chaos.

Connection to Berkeley Project Genie SDS 940 Timesharing System

Fred Wright wrote to the info-tops20 mailing list in 2005:

[TENEX] wasn't really a new design in its own right, being merely a rewrite of the SDS 940 system for the PDP-10. The 940 system, as well as the hardware enhancements that turned the 930 into the 940, came from Project Genie at UC Berkeley.

The 940 OS (mostly written by Peter Deutsch) was based on paging, viewed memory primarily as a cache for drum, had jobs with multiple forks which could optionally share pages, used the topmost fork of the job for the "shell", and had command and filename completion. Sound familiar?

TENEX was really not much more than a port of the 940 OS to the PDP-10, except for changing some things that didn't scale well to larger address spaces and storage devices. I can recall seeing TENEX code that looked literally like a line-by-line translation of 940 code, right down to using only three registers (like the 940's A, B, and X), and with half the instructions being MOVEs and MOVEMs since you can't keep much in three registers. They did, however, use a stack and PUSHJ/POPJ instead of JSR/JRST. :-) The exception model for system calls was as ugly as their hardware, instead of adopting an ITS-like PCLSRing approach - another step backwards from the 940 system, which in essence had simplified PCLSR.

Butler Lampson writes in Systems about the SDS 940 operating system:

This system was copied directly in the design of the Tenex system for the PDP-10, except for the memory management.

Many of the TEN-SYS memos (see external links below) refer to a 940 system, presumably the BBN SDS 940 running the Berkely timesharing system and used for 940 LISP.

See also

External links