THE multiprogramming system


The THE multiprogramming system or THE OS was a computer operating system designed by a team led by Edsger W. Dijkstra, described in monographs in 1965-66 and published in 1968.
Dijkstra never named the system; "THE" is simply the abbreviation of "Technische Hogeschool Eindhoven", then the name of the Eindhoven University of Technology of the Netherlands. The THE system was primarily a batch system that supported multitasking; it was not designed as a multi-user operating system. It was much like the SDS 940, but "the set of processes in the THE system was static".
The THE system apparently introduced the first forms of software-based paged virtual memory, freeing programmers from being forced to use actual physical locations on the drum memory. It did this by using a modified ALGOL compiler to "automatically generate calls to system routines, which made sure the requested information was in memory, swapping if necessary". Paged virtual memory was also used for buffering I/O device data, and for a significant portion of the operating system code as well as nearly all the ALGOL 60 compiler. In this system itself, semaphores were used as a programming construct for the first time.

Design

The design of the THE multiprogramming system is significant for its use of a layered structure, in which "higher" layers only depend on "lower" layers:
The constraint that higher layers can only depend on lower layers was imposed by the designers in order to make reasoning about the system more tractable, and also to facilitate building and testing the system incrementally. The layers were implemented in order, layer 0 first, with thorough testing of the abstractions provided by each layer in turn. This division of the kernel into layers was similar in some ways to Multics' later ring-segmentation model. Several subsequent operating systems have used layering to some extent, including Windows NT and macOS, although usually with fewer layers.
The code of the system was written in assembly language for the Dutch Electrologica X8 computer. This computer had a word size of 27 bits, 32 kilowords of core memory, 512 kilowords of drum memory providing backing store for the LRU cache algorithm, paper tape readers, paper tape punches, plotters, and printers.