Operating system: Difference between revisions
imported>Markus Baumeister (Fixed, better kernel descriptions and lesser Windows oriented) |
imported>Markus Baumeister m (kernel not OS) |
||
Line 3: | Line 3: | ||
== Kernel == | == Kernel == | ||
The heart of an operating system is its [[kernel]]. It provides the basic [[service]]s all other parts of the operating system rely on. It also typically runs in special "[[privileged mode]]" allowing it unrestricted access to all hardware bypassing the [[memory management unit]] of the [[CPU]]. The exact amount and kind of services provided by the kernel depends on the architecture of the operation system. So called [[micro-kernel]] architectures only contain the most basic services within the kernel and run the rest in so called [[user space]] processes. But overall a kernel is responsible for | The heart of an operating system is its [[kernel]]. It provides the basic [[service]]s all other parts of the operating system rely on. It also typically runs in special "[[privileged mode]]" allowing it unrestricted access to all hardware bypassing the [[memory management unit]] of the [[CPU]]. The exact amount and kind of services provided by the kernel depends on the architecture of the operation system. So called [[micro-kernel]] architectures only contain the most basic services within the kernel and run the rest in so called [[user space]] processes. But overall a kernel is responsible for | ||
managing the resources provided by the computer, especially the [[CPU]] and the [[memory]], for providing hardware access, often in conjunction with the [[drivers]], and, on a higher layer, for providing hardware abstractions such as the [[file system]] or the [[network abstraction]], e.g. [[socket]]s. As such management tasks often involve the need to protect certain resources from user access, the | managing the resources provided by the computer, especially the [[CPU]] and the [[memory]], for providing hardware access, often in conjunction with the [[drivers]], and, on a higher layer, for providing hardware abstractions such as the [[file system]] or the [[network abstraction]], e.g. [[socket]]s. As such management tasks often involve the need to protect certain resources from user access, the kernel is also responsible for managing [[access right]]s and [[user identification]]. | ||
Some kernels are tied to one set of [[driver]]s or [[user interface]], while some are interchangeable in one or both. The [[Microsoft Windows]] and [[Macintosh OS]] series have only one user interface per kernel, but can interchange drivers to work with different types of hardware. In comparison, the [[BSD]] and [[Linux]] kernel has no defined hardware nor user interface, and there are several different drivers and interfaces available for it. | Some kernels are tied to one set of [[driver]]s or [[user interface]], while some are interchangeable in one or both. The [[Microsoft Windows]] and [[Macintosh OS]] series have only one user interface per kernel, but can interchange drivers to work with different types of hardware. In comparison, the [[BSD]] and [[Linux]] kernel has no defined hardware nor user interface, and there are several different drivers and interfaces available for it. |
Revision as of 14:05, 14 March 2007
An operating system (OS) is the software that is essential to the operation and normal use of a computer. The major components of an operating system are a kernel, drivers, user interface, and its core applications. These components are almost always bundled together.
Kernel
The heart of an operating system is its kernel. It provides the basic services all other parts of the operating system rely on. It also typically runs in special "privileged mode" allowing it unrestricted access to all hardware bypassing the memory management unit of the CPU. The exact amount and kind of services provided by the kernel depends on the architecture of the operation system. So called micro-kernel architectures only contain the most basic services within the kernel and run the rest in so called user space processes. But overall a kernel is responsible for managing the resources provided by the computer, especially the CPU and the memory, for providing hardware access, often in conjunction with the drivers, and, on a higher layer, for providing hardware abstractions such as the file system or the network abstraction, e.g. sockets. As such management tasks often involve the need to protect certain resources from user access, the kernel is also responsible for managing access rights and user identification.
Some kernels are tied to one set of drivers or user interface, while some are interchangeable in one or both. The Microsoft Windows and Macintosh OS series have only one user interface per kernel, but can interchange drivers to work with different types of hardware. In comparison, the BSD and Linux kernel has no defined hardware nor user interface, and there are several different drivers and interfaces available for it.
Drivers
Drivers define methods for accessing hardware in terms a particular operating system can handle. Drivers are generally written by the manufacturer, which means the hardware manufacturer can decide what operating system or systems their products support.
Drivers are often loaded on bootup to ensure correct operations of all hardware. This means that hardware can only be changed while the computer is off. Plug and play hardware, however, can load the driver into memory as it is plugged in, as long as the driver has already been installed. If drivers are visible from user space as with the kernel module concept in Linux, it is also possible for a user with sufficient access right to unload one driver and load another.
User interface
A user interface allows for humans to interact with a computer. If a system is not designed to be interacted with directly, the interface may be nonexistent, or perhaps only have a simple interface for debugging. The two major tasks of a user interface are to provide access to core functions, and to organize them into as seamless and intuitive a system as possible.
A command line-driven user interface (CLI), such as MS-DOS and Unix shells, of which there are many, work by parsing and executing text commands. Although they have largely phased out since the dawn of the fifth generation of computers, their low memory requirements make them useful for highly specialized purposes, such as computer repair, accessing a computer over a network or performing a large number of tasks in a sequential order very quickly.
A graphic user interface (or GUI). Graphic user interfaces generally emulate the system used in the Microsoft Windows series, with control panels to handle access system functions, icons, mouse-controlled pointers, context menus on a right click, multiple windows for multiple windows, and some analogue for the Start button. Some interfaces (such as BumpTop), while graphical, use completely different elements to present control structures.
Much rarer are voice-driven interfaces. These interfaces are usually used alongside with a GUI, although some computers are beginning to use them, due to purpose (such as certain GPS navigation systems) or experimentation.
Core applications
The core applications of an operating system are the applications that cannot be used. Without these applications, there is no difference between a computer and a television set to an empty channel. In the first generations of computers, the application and the operating system were identical; a new problem or program required an entire new operating system. Beginning with the fourth generation of computers, however, applications and kernels became distinct.
In the fourth generation of computers, the core application was the interpreter, which took in BASIC code (or, rarely, code from another programming language, such as COBOL, Fortran, or Pascal) and parsed it for output. Although coding in assembly language or machine language was possible, some code was usually interpreted, as that made development easier. (For example, a Commodore 64 program might only put time-intensive subroutines into assembly, keeping the code interpreted for ease of development, only compiling the code at the end of production.)
In the fifth generation of computers, the core application has become the web browser. Most operating systems on the market today are including less and less software; instead, they are relying on access to the internet, as online content delivery makes it possible for a code fix to be created, tested, and released in a matter of hours or days, instead of weeks or months. Additionally, if a person has a functional web browser, no matter how stark or barebone it is, it is possible to purchase all sorts of other software, making the need to include any other form of software a cost-increasing "frill."