Slide-2-OS Operating System Components and Structure-2024
Slide-2-OS Operating System Components and Structure-2024
Operating System
Structure
The Kernel
• Cons:
– If one layer stops working, entire system will stop
– Mapping overhead between layers
– Difficult to categorize into layers
Microkernel OS
• Move as much functionality as possible from the kernel into user
space.
• Only a few essential functions in the kernel
– primitive memory management (address space)
– I/O and interrupt management
– Inter-Process Communication (IPC)
– basic scheduling
A. Frank - P. Weisberg
Microkernel OS
• Communication between components of the OS is provided by
message passing.
Microkernel System Structure
messages messages
microkernel
hardware
Benefits of a Microkernel
• Extensibility/Reliability
– easier to extend a microkernel
– easier to port the operating system to new architectures
– more reliable (less code is running in kernel mode)
– more secure
– small microkernel can be rigorously tested.
• Portability
– Environment mostly independent on the instruction set architecture.
Virtual Machine
• A Virtual Machine is a software that creates a virtualized
environment between the computer platform and the end user
in which the end user can operate software.
Description
• A virtual machine provides an interface identical to the
underlying bare hardware.
• The operating system creates the illusion of multiple
processes, each executing on its own processor with its own
(virtual) memory.
Virtualization
• Virtualization is an abstraction that decouples the physical
hardware from the operating system to deliver greater IT resource
utilization and flexibility.
• Allows multiple virtual machines, with heterogeneous operating
systems to run in isolation, side-by-side on the same physical
machine.
Virtualization contd..
• Each virtual machine has its own set of virtual hardware
(e.g., RAM, CPU, etc.) upon which an operating system
and applications are loaded.
• The OS creates the illusion of multiple processes, each
executing on its own processor with its own (virtual)
memory.
History
• Virtualization was first introduced in the 1960s to allow
partitioning of large, mainframe hardware.
• In the 1990s, researchers began to see how virtualization could
solve some of the problems associated with the proliferation of
less expensive hardware, including underutilization, escalating
management costs and vulnerability.
Virtual Machine Monitor
• The host software that provides virtualization is often referred to
as a virtual machine monitor (VMM) or hypervisor.
• The VMM gives each virtual machine an illusion of a complete
computer to itself.
46
Architecture
Features
• Each virtual machine has its own set of virtual hardware (e.g.,
RAM, CPU, NIC, etc.) upon which an operating system and
applications are loaded.
• The operating system sees a consistent, normalized set of hardware
regardless of the actual physical hardware components.
Benefits
1. Partitioning
- Multiple applications and operating systems can be supported
within a single physical system.
- There is no overlap of memory as each Virtual Memory has
its own memory space.
Benefits
2. Isolation
- Virtual machines are completely isolated from the host
machine and other virtual machines. If a virtual machine
crashes, all others are unaffected.
- Data does not leak across virtual machines.
Summary
• Virtual machines are a number of discrete identical
execution environments on a single computer, each of which
runs an operating system.
• This can allow applications written for one OS to be
executed on a machine which runs a different OS which
provide a greater level of isolation between processes than is
achieved when running multiple processes on the same
instance of an OS.