Safekipedia

Minix

Discoverer · ages 10+Adapted from Wikipedia
A screenshot of MINIX 3 running the X11 graphical system with the TWM window manager and a few applications, showing the shift away from text-only computing.

MINIX is a family of Unix-like operating systems based on a microkernel architecture. It was written by American-Dutch computer scientist Andrew S. Tanenbaum.

First released in 1987, MINIX was designed as a clone of the Unix operating system. It was made to run on affordable Intel 8086-based home computers, including the IBM PC and PC/AT. Its purpose was to be used in classrooms by computer science students at universities.

The name comes from mini-Unix. MINIX has no relation to an older system also called MINIX, made by Digital Systems House, Inc., which was based on AT&T Unix code. At first, MINIX was proprietary source-available. In 2000, it was relicensed under the BSD 3-Clause and became free and open-source.

In the 1990s, MINIX was ported to various additional platforms. Version 2.0, released in 1997, was the first to be POSIX compliant. Starting with MINIX 3, released in 2005, the main goal of development shifted from education to creating a highly reliable and self-healing microkernel operating system.

Implementation

Andrew S. Tanenbaum created MINIX at Vrije Universiteit in Amsterdam to show the ideas in his textbook Operating Systems: Design and Implementation, published by Prentice-Hall in 1987. The book included parts of the C source code for the kernel, memory manager, and file system. Prentice-Hall also shared the source code and programs on floppy disk. MINIX 1 worked with the same system calls as Seventh Edition Unix. MINIX 1.5, released in 1991, added support for IBM PS/2 systems and was moved to the Atari ST, Amiga, Macintosh, and Sun SPARCstation computers.

MINIX 2.0.4 system startup and login prompt

MINIX 2.0 was released in 1997 on a CD-ROM included with the second edition of Tanenbaum's textbook. It replaced the Amoeba network protocols with a TCP/IP stack. Version 2.0.3 was released in May 2001, after MINIX had been relicensed under the BSD-3-Clause license.

MINIX 2.0.4 shell interaction

MINIX 3 was publicly announced on 24 October 2005 by Tanenbaum at the Association for Computing Machinery (ACM) Symposium on Operating Systems Principles. It was comprehensively redesigned to be usable as a serious system on resource-limited and embedded computers and for applications requiring high reliability. It supports IA-32 and ARM architecture systems and is available as a live CD.

MINIX 3 running X11 with the twm window manager

Version 3.1.5, released on 5 November 2009, includes X11, gcc, python, bash, and over 400 other common Unix utility programs. In many cases, MINIX can automatically restart a crashed driver without affecting running processes, so it is self-healing. As of version 3.2.0, the userland was mostly replaced by that of NetBSD. MINIX development has been dormant since 2018. All Intel chipsets made after 2015 are running MINIX 3 internally as the software component of the Intel Management Engine.

Relationship with Linux

Linus Torvalds used and appreciated MINIX, but his design differed from the MINIX architecture in important ways. Most notably, he used a monolithic kernel instead of a microkernel. Tanenbaum disapproved of this in the Tanenbaum–Torvalds debate, and he explained his reasons for using a microkernel again in May 2006. Early Linux kernel development was done on a MINIX host system, so Linux inherited some features from MINIX, such as the MINIX file system. Eric Raymond claimed that Torvalds had not written Linux from scratch, but had reused MINIX source code to get a working code base. As development went on, MINIX code was gradually phased out completely.

In his 2004 book, Samizdat, Kenneth Brown of AdTI claimed that much of the Linux kernel was copied from MINIX. These accusations were firmly rebutted. Tanenbaum was the most prominent critic, strongly criticising Brown and publishing a long rebuttal on his personal website. He also pointed out that Brown was funded by Microsoft.

Licensing

At first, MINIX's license was fairly relaxed. Its fee was very small ($69) compared to those of other operating systems. Tanenbaum wanted MINIX to be as easy as possible for students to get, but his publisher did not want to share material, such as the source code, that could be copied freely. So a strict license with a small fee, included in the price of Tanenbaum's book, was used as a compromise. This stopped MINIX from being used as the base for a freely shared software system.

In the early 1990s, free and open-source Unix-like systems such as Linux and 386BSD became available, and many volunteer software developers left MINIX for them. In April 2000, MINIX became free and open-source software under the BSD-3-Clause license, which was also applied to all earlier versions. By then, however, other operating systems had passed it in what they could do, so it stayed mainly a system for students and hobbyists. In late 2005, MINIX was relicensed with a fourth clause added to the BSD-3-Clause license.

Compared to other teaching operating systems

SystemLines of codeKernel typeLanguageHardware environmentLacks (vs others)
Minix 1~12kMicrokernelCx86-16, 68000 family?
Minix 2~23kMicrokernelCx86-32?
Minix 3~100k+MicrokernelCx86-32—N/a
Nachos~15kNo kernel. User-space OS simulatorC++MIPS simulatorSMP, paging, real hardware
Pintos~25kMonolithicCx86 (typically under QEMU/Bochs)SMP, user-space drivers
Xinu~10kMonolithicCx86 / ARMSMP, paging, virtual memory
xv6~10kMonolithicCx86 / x86-64 / RISC-Vuser-space drivers, POSIX layer

Quiz time!

5 questions about Minix

Question 1 of 5

Who wrote MINIX?

Pictures

A diagram showing how the MINIX 3 operating system is built around a small core called a microkernel, with other system parts running separately around it.
A screenshot of the 'top' command running in MINIX 3.2, a small operating system, showing a live list of programs and how much computer memory and processing power each one is using.

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on Minix, available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.