This article needs additional citations for verification. (August 2011)
|Developer||Microsoft Research (Microsoft Corporation)|
|Written in||Assembly language, C, C++, C#, Sing#|
|OS family||Language-based systems|
|Source model||Source-available (through Shared Source Initiative)|
|Initial release||March 4, 2008|
|Final release||2.0 / November 14, 2008|
|Kernel type||Microkernel language-based|
|License||Microsoft Research License|
Singularity is an experimental operating system developed by Microsoft Research between July 9, 2003, and February 7, 2015. It was designed as a high dependability OS in which the kernel, device drivers, and application software were all written in managed code. Internal security uses type safety instead of hardware memory protection.
The lowest-level x86 interrupt dispatch code is written in assembly language and C. Once this code has done its job, it invokes the kernel, which runtime system and garbage collector are written in Sing# (an extended version of Spec#, itself an extension of C#) and runs in unprotected mode.: 14 : 4 The hardware abstraction layer is written in C++ and runs in protected mode. There is also some C code to handle debugging. The computer's basic input/output system (BIOS) is invoked during the 16-bit real mode bootstrap stage; once in 32-bit mode, Singularity never invokes the BIOS again, but invokes device drivers written in Sing#. During installation, Common Intermediate Language (CIL) opcodes are compiled into x86 opcodes using the Bartok compiler.: 11
Singularity is a microkernel operating system. Unlike most historic microkernels, its components execute in the same address space (process), which contains software-isolated processes (SIPs). Each SIP has its own data and code layout, and is independent from other SIPs. These SIPs behave like normal processes, but avoid the cost of task-switches.: 4,11,35
Protection in this system is provided by a set of rules called invariants that are verified by static program analysis. For example, in the memory-invariant states there must be no cross-references (or memory pointers) between two SIPs; communication between SIPs occurs via higher-order communication channels managed by the operating system. Invariants are checked during installation of the application. (In Singularity, installation is managed by the operating system.)
Most of the invariants rely on the use of safer memory-managed languages, such as Sing#, which have a garbage collector, allow no arbitrary pointers, and allow code to be verified to meet a given computer security policy.
The first Singularity Research Development Kit (RDK), RDK 1.1, was initially released on March 4, 2008, being released under a shared source license allowing academic non-commercial use and available from CodePlex. RDK 2.0 was later released on November 14, 2008.
- Inferno, first created in 1995, based on Plan 9 from Bell Labs; programs are run in a virtual machine and written in Limbo instead of C# with CIL; open-source software
- JavaOS, a legacy OS based on the same concept as Singularity
- JNode, an OS similar in concept to Singularity, but with Java instead of C# with CIL
- JX, a Java OS that, like Singularity, uses type safety instead of computer hardware memory protection
- Phantom OS, a managed OS
- SharpOS, a former effort to write an operating system using C#; open-source software
- MOSA, a .NET Framework compiler and operating system using C#
- Cosmos, a building blocks toolkit for developing an OS using C#; open-source software
- TempleOS, a ring-0 operating system with JIT compiler; open-source software
- Language-based system, general kernel design using language-based protection instead of hardware protection.
- Spec#, programming language derived from C# by adding Eiffel-like design by contract.
- Sing#, programming language derived from Spec# by adding channels and low-level constructs; used to build Singularity.
- Midori, a Microsoft-developed microkernel-based operating system. Based on and related to Singularity.
- "Singularity RDK 1.1". CodePlex. Archived from the original on May 4, 2009. Retrieved January 16, 2022.
- "Singularity RDK 2.0 Initial Release (17067)". CodePlex. November 14, 2008. Archived from the original on December 6, 2008. Retrieved January 16, 2022.
- "Singularity". Microsoft. Retrieved January 16, 2022.
- "Singularity RDK". CodePlex. Archived from the original on January 2, 2018. Retrieved January 16, 2022.
- "An Overview of the Singularity Project" (PDF). Microsoft. Retrieved January 16, 2022.
- Hunt, Galen; Larus, James. "Singularity: Rethinking the Software Stack" (PDF). Microsoft. Microsoft Research Redmond. Retrieved January 16, 2022.
- Ricciuti, Mike (March 5, 2008). "Is Microsoft's 'Singularity' the OS of the future?". CNET. Retrieved January 16, 2022.
- Official website
- Singularity Design Motivation and an overview of the Singularity Project
- Singularity source code on CodePlex
- Singularity: A research OS written in C# an interview of the Channel 9 team to Jim Larus and Galen Hunt (video & thread)
- Singularity III: Revenge of the SIP, an interview of the Channel 9 team to 3 researchers of the Singularity Project Team (video & thread).
- Singularity IV: Return of the UI, a demo of Singularity actually running (video & thread).
- Singularity Revisited, an interview of the Channel 9 team to 4 researchers of the Singularity Project Team (video & thread)