Singularity (operating system)

{{short description|Experimental operating system from Microsoft Research}}

{{Refimprove|date=August 2011}}

{{Infobox OS

| name = Singularity Project

| logo =

| screenshot = Singularity v1.png

| caption = Singularity after boot-up

| developer = Microsoft Research (Microsoft Corporation)

| source model = Source-available (through Shared Source Initiative)

| kernel type = Microkernel language-based

| supported platforms = x86, x86-64{{cite web|title=Singularity RDK 2.0 Initial Release (17067)|website=CodePlex|access-date=January 16, 2022|archive-url=https://web.archive.org/web/20081206174009/http://www.codeplex.com/singularity/Release/ProjectReleases.aspx?ReleaseId=19428|date=November 14, 2008|archive-date=December 6, 2008|url=http://www.codeplex.com/singularity/Release/ProjectReleases.aspx?ReleaseId=19428|url-status=dead}}

| ui = Command-line interface

| family = Language-based systems

| released = {{Start date and age|2008|03|04}}{{cite web|title=Singularity RDK 1.1|url=http://singularity.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=11305|website=CodePlex|access-date=January 16, 2022|archive-url=https://web.archive.org/web/20090504081646/http://singularity.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=11305|archive-date=May 4, 2009|url-status=dead}}

| discontinued = Yes

| latest release version = 2.0

| latest release date = {{Start date and age|2008|11|14}}

| programmed in = Assembly language, C, C++, C#, Sing#

| language = English

| working state = Discontinued

| license = Microsoft Research License

| website = {{URL|research.microsoft.com/en-us/projects/singularity}}

}}

Singularity is an experimental operating system developed by Microsoft Research between July 9, 2003,{{cite web|title=Singularity|url=https://www.microsoft.com/en-us/research/project/singularity|website=Microsoft|access-date=January 16, 2022}} and February 7, 2015.{{cite web|title=Singularity RDK|url=http://singularity.codeplex.com/sourcecontrol/list/changesets|website=CodePlex|access-date=January 16, 2022|archive-url=https://web.archive.org/web/20180102104049/http://singularity.codeplex.com/sourcecontrol/list/changesets|archive-date=January 2, 2018|url-status=dead}} 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.

Operation

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.{{R|1=overview|p1=14|2=rethinking|p2=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.{{R|rethinking|p=11}}

Security design

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.{{R|overview|p=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.

Project status

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.{{cite web|last1=Ricciuti|first1=Mike|title=Is Microsoft's 'Singularity' the OS of the future?|url=https://www.cnet.com/news/is-microsofts-singularity-the-os-of-the-future|website=CNET|access-date=January 16, 2022|date=March 5, 2008}} RDK 2.0 was later released on November 14, 2008.

Similar projects

See also

  • Language-based system, general kernel design using language-based protection instead of hardware protection.
  • Midori, a Microsoft-developed microkernel-based operating system based on and related to Singularity.

References

{{Reflist|refs=

{{cite web|title=An Overview of the Singularity Project|url=https://www.microsoft.com/en-us/research/wp-content/uploads/2005/10/tr-2005-135.pdf|publisher=Microsoft|access-date=January 16, 2022}}

{{cite web|last1=Hunt|first1=Galen|last2=Larus|first2=James|title=Singularity: Rethinking the Software Stack|url=https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/osr2007_rethinkingsoftwarestack.pdf|website=Microsoft|publisher=Microsoft Research Redmond|access-date=January 16, 2022}}

}}