Operating Systems Evolution


Operating Systems Evolution

Simon
Today we're exploring the history of operating systems and a provocative question from Andrej Karpathy: could large language models, or LLMs, become a new kind of operating system? Karpathy sees parallels between today's LLMs and the operating systems that have shaped computing for roughly eighty years.

Hope
So before we ask whether an LLM can be an operating system, we need to clarify what an operating system actually does. One useful definition is that it manages a computer's resources for the user efficiently, reliably, and unobtrusively.

Simon
Those resources include the CPU, main memory, secondary storage, display, keyboard, mouse, and network. Hardware is complicated and full of quirks, so users and applications need help turning it into something useful. The operating system provides a clean interface that hides much of that complexity.

Hope
And that is why operating systems are really defined by their abstractions: the simplified concepts users interact with every day. The file is a classic example. Instead of dealing directly with individual memory cells and bits, we can treat information as if it were organized into a neat, discrete file.

Simon
But that neat file is partly an illusion. Its data may actually be scattered across storage in separate pieces, rather like Cheetos spread around a room. When you open the file, the file system finds those pieces, puts them in the correct order, and handles whether they belong in primary or secondary storage.

Hope
That abstraction also helps prevent programs from interfering with one another. Without it, one program might overwrite data another program needs and cause both to crash. In practice, we work through layers of abstractions built on top of other abstractions, and the operating system makes that complexity feel manageable.

Simon
The story begins with the mainframes of the 1940s and 1950s. These expensive machines were generally assigned to one user or group at a time, often rented and billed by the hour. But users wasted much of that paid time manually setting up each job.

Hope
In 1956, General Motors Research Lab addressed that waste on an IBM 701. It created software that automatically loaded and unloaded jobs, an approach called batch computing. Jobs were transferred from cards to magnetic tape, run sequentially, and recorded onto another tape.

Simon
Special cards between jobs specified what resources each job needed. These instructions were called Job Control Languages. Some people call this the first operating system, although historians still debate whether that label is justified.

Hope
Batch computing improved machine utilization, but it still created a painful delay. A user might go through a long edit-compile-run cycle, wait hours or even a full day for the batch, and discover that the entire output was just an error message.

Simon
The next step was multi-programming in the 1960s. Computers had more equipment, including card readers, tape drives, disk drives, and input-output devices, but an individual job rarely used all of those resources at once. So different jobs could share the machine more efficiently.

Hope
An important enabling idea was the interrupt, introduced on the UNIVAC 1103A in 1956. An interrupt allowed peripheral hardware to call the processor's attention. Combined with larger memory, this made it possible to hold and run multiple programs.

Simon
For example, while one program was waiting on input or output, another could use the processor. That is multi-programming: multiple programs are kept available so the computer's resources do not sit idle.

Hope
Multi-programming naturally led toward time-sharing, where one computer serves several users. In 1959, John McCarthy proposed that the computer should attend to other customers while one customer was reacting to output. The goal was a much faster and more interactive way to solve problems.

Simon
The arrangement used a powerful central computer connected to terminals, each with a monitor and keyboard. Each user could have the illusion that they were the only person using the machine, even though the operating system was rapidly coordinating many users.

Hope
MIT's team, led by Fernando Corbato, got a prototype working on an IBM 709 in 1961. It barely worked, using tape drives attached to four typewriters. In 1962, MIT announced the Compatible Time-Sharing System, or CTSS.

Simon
CTSS later gained a hard disk and was offered to large-scale users. By 1965, it had hundreds of registered users at MIT and other colleges across New England and could handle up to thirty users at once. It also introduced mail and mailbox functions between users, a spiritual precursor to email.

Hope
Other time-sharing systems followed, including the Dartmouth Time Sharing System, where the BASIC language was developed. An early version later powered a General Electric service. Although we rarely use the phrase time-sharing now, it underlies the idea of cloud computing, and before personal computers, it was how many people experienced computing.

Simon
CTSS also inspired Multics, a 1964 collaboration among MIT, Bell Labs, and General Electric. Its grand vision was a computer utility that could provide affordable, widely available computing to hundreds of users, much as a water utility provides ubiquitous water.

Hope
The project became extremely ambitious, trying to be everything for everyone, and progress slowed. Bell Labs withdrew in 1969, although MIT eventually made Multics work and it was later sold to Honeywell. It developed a devoted following and survived until the last site shut down in 2000.

Simon
At about the same time, IBM launched the System 360 computer line. The goal was for a program written for one 360 computer to run across the whole family. IBM attempted a single operating system, OS/360, but despite its enormous budget and workforce, the project fell badly behind schedule and ultimately had to be split up.

Hope
The project leader, Fred Brooks, later wrote The Mythical Man-Month about lessons from that experience. The broader lesson is that operating systems become difficult when they must support many hardware environments and an enormous range of expectations.

Simon
Multics failed as a commercial product, but many of its ideas lived on in Unix. Those included security, hierarchical file systems, and a command shell. Unix also introduced the pipeline, which lets the output of one process become the input of another.

Hope
Unix was especially well timed. Its utilities ran on cheaper minicomputers, and because Unix was written in the high-level C language, it could be ported to different machines. Its adoption in universities and beyond helped create a culture that later influenced open-source Linux and hobbyist microcomputers.

Simon
The next major shift came with microcomputers. New semiconductor technology enabled integrated circuits containing thousands of devices, and general-purpose microprocessors appeared. Intel's 4004 arrived in 1971, followed by the 8008 in 1973 and the 8080 in 1974, alongside competing chips from companies such as Zilog and Motorola.

Hope
Gary Kildall helped Intel produce an operating system for the 8080. That system became CP/M, originally meaning Control Program/Monitor. Kildall believed microcomputer hardware was becoming capable of delivering what time-sharing only simulated: the experience of programming on your own computer.

Simon
Storage was crucial. Early microcomputers relied on paper tape and cassettes, which were poor secondary-memory systems. Floppy disks, introduced by IBM and developed into a major market by Shugart Associates, provided more storage at a relatively low price and allowed random access instead of forcing the computer to move sequentially through the whole medium.

Hope
Kildall wrote controller software that let a CP/M computer communicate with a floppy drive. Because early machines were so limited, an operating system might mainly be a file system for organizing an external disk plus the ability to load and run programs. These systems were often called Disk Operating Systems, or DOS.

Simon
Kildall founded Digital Research and licensed CP/M to end users. By 1981, it had several hundred licensees and was the dominant operating system in the small but growing microcomputer market. Competitors included Apple DOS, Coherent, and Microsoft's MS-DOS.

Hope
CP/M's lead changed when IBM secretly developed the IBM PC in 1980. The PC team licensed a BASIC interpreter from Microsoft and initially pointed toward CP/M for the operating system. But Kildall did not personally take the meeting and would not sign IBM's nondisclosure agreement, so IBM returned to Bill Gates.

Simon
Microsoft did not yet have the needed system ready. Gates bought a DOS from a local computer manufacturer, hired its developer Tim Paterson to modify it, and rebranded it MS-DOS. Crucially, Microsoft licensed it to IBM rather than selling it outright, so IBM's version was called PC-DOS while Microsoft could license MS-DOS to other manufacturers.

Hope
The IBM PC became hugely popular, and its design encouraged competitors and clones. Clone makers worked around IBM's copyrighted BIOS, and Microsoft licensed MS-DOS directly to those PC manufacturers, or OEMs. That approach scaled more effectively than CP/M's strategy of selling directly to individual end users, and MS-DOS overtook CP/M.

Simon
At first, Microsoft did not view the operating system as its main prize. Gates saw applications as more profitable: an operating system might bring only a few points from a machine's price, while an application could sell for hundreds of dollars. Microsoft's spreadsheet Multiplan was its top-selling application in 1981 and eventually sold a million copies.

Hope
That explains why Microsoft offered different systems for different customers. MS-DOS served lower-end IBM PC users, while Microsoft's licensed Unix system, Xenix, targeted high-end users. In those early years, Microsoft was important but not yet the dominant technology company it would become.

Simon
The PC ecosystem then needed better multitasking and a more usable interface. Creating a report might require a painting program, spreadsheet, and word processor, but single-task systems such as MS-DOS required users to close one program before running another.

Hope
The command line was another obstacle because users had to type precise instructions. The PC industry increasingly favored a windowing graphical user interface, or GUI. Xerox had demonstrated the idea in the 1970s, and Apple used it in the Lisa and Macintosh.

Simon
Microsoft released Windows in 1985 as a shell on top of MS-DOS. During the late 1980s and 1990s, faster processors and expanding memory allowed PC operating systems to absorb capabilities once associated with mainframes. Windows evolved a sprawling modular architecture, with different components and software layers managing a growing variety of hardware and applications.

Hope
The PC's modular design encouraged many peripherals and drivers, while software expanded across home desktops, workstations, and enterprise servers. Microsoft benefited as Windows became dominant and bundled software such as Office with it. By 1993, Office held ninety percent of the productivity market and contributed half of Microsoft's revenue.

Simon
Computing then moved into mobile devices. Personal Data Assistants such as Apple's Newton appeared in the 1990s, but the hardware was extremely constrained. The original Palm Pilot, for example, used a sixteen-megahertz processor and only 128 kilobytes of RAM.

Hope
You could not simply shrink a PC operating system and expect it to work well. Microsoft's Windows CE struggled with battery life, stability, and its interface. Palm designed its system around mobile constraints and accepted compromises, including the absence of a keyboard and handwriting recognition, using a shorthand system called Graffiti instead.

Simon
Phones and PDAs were clearly moving toward one another. In 1998, three major phone makers backed Symbian, which became an early leader with sixty-five percent market share and one hundred million users at its peak. But its ecosystem suffered because handset makers wanted to maintain their own connection to users.

Hope
That led to fragmentation, different user interfaces, and difficult development across many hardware environments. Symbian also struggled to provide strong developer tools and distribution channels. Nokia drove most of its sales, but the system was less successful in the United States, partly because of the power of mobile networks such as Verizon and Cingular.

Simon
By the early 2000s, faster and more efficient processors based on the Arm instruction set and the rise of flash memory created better conditions for smartphones. What was still needed was an interface that brought the pieces together, plus a company able to avoid the fragmentation that had complicated Symbian.

Hope
Apple made that breakthrough with the iPhone. It scaled down the desktop Mac OS, added a multitouch interface and a desktop-class browser, and benefited from the existing Mac developer ecosystem. Developers were so enthusiastic that some created apps before Apple released an official software development kit.

Simon
The App Store, launched in 2008, accelerated that ecosystem. Google responded by moving its Linux-based Android system in the same direction. By giving Android away as open source, Google rapidly took share from the closed-source Symbian.

Hope
Today, iOS helps drive Apple's Services division through its close relationship with the App Store, much as bundled applications such as Office helped Microsoft dominate the PC era. Android became the world's most widely used operating system, while the older mobile systems faded away.

Simon
Across all these eras, there is a repeating pattern. Early systems are limited by compute: mainframes, microcomputers, and mobile PDAs initially cannot run anything but rudimentary programs, so designers make compromises. As processors improve, the limiting factor shifts.

Hope
Memory becomes the next constraint. Mainframes need DRAM and disk drives to manage multiple tasks and users. PCs need better secondary storage, with floppy disks helping satisfy that demand. Mobile operating systems need affordable flash memory before they can support larger programs.

Simon
Then input and output, especially the interface, become the bottleneck. Personal computers needed the graphical user interface, while mobile devices needed multitouch. In each case, a new way of interacting with the computer helped unlock the capabilities that better hardware made possible.

Hope
That brings us back to LLMs. First, advances in compute showed that larger neural networks had real potential. Improvements in DRAM then allowed LLMs to grow large enough to produce economic value. Most recently, a new interaction paradigm, exemplified by ChatGPT, made these systems accessible through conversation.

Simon
So are LLMs the next operating system? The answer is still uncertain. But the analogy invites us to ask what abstractions and working environments an LLM-based system might provide, just as files, shells, graphical interfaces, and app ecosystems transformed earlier generations of computing.

Hope
That is the exciting open question: what would an LLM operating system actually look like? We do not yet know, but the history of operating systems suggests that when compute, memory, and interaction paradigms change together, entirely new ways of doing work can emerge.

Ask anything
We've read this whole study set, so questions about it get the best answers.