Operating Systems: Structures and Implementation - Fall 2004 (CMSC 412) - Title - Prof. Mi, Study notes of Operating Systems

Announcements for a university course on operating systems, including project deadlines and required readings. It also discusses various operating system structures such as simple, layered, hybrid, and microkernel systems. The document also touches upon the concepts of policy and mechanism, and the use of virtual machines.

Typology: Study notes

Pre 2010

Uploaded on 02/13/2009

koofers-user-z0s
koofers-user-z0s 🇺🇸

10 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
1
CMSC 412
Fall 2004
Operating Systems Structures
Announcements
Project #1
Posted. Due next Tuesday.
Reading
Chapter 2-3
Chapter 5 (next time)
pf3
pf4
pf5

Partial preview of the text

Download Operating Systems: Structures and Implementation - Fall 2004 (CMSC 412) - Title - Prof. Mi and more Study notes Operating Systems in PDF only on Docsity!

CMSC 412

Fall 2004

Operating Systems Structures

Announcements

  • Project #
    • Posted. Due next Tuesday.
  • Reading
    • Chapter 2-
    • Chapter 5 (next time)

OS Implementation

  • What language should I build my OS in? - High- vs. low-level languages
  • How should I structure it to manage complexity? - Balance reliability, maintainability, and performance

OS Structure: Simple

  • Any part of the system may use the functionality of the rest of the system - MS-DOS (user programs can call low level I/O routines)

OS Structure: Hybrid

  • Layering has problems on its own
    • May be difficult to communicate information easily
    • May be inefficient
  • Hybrid
    • Use layered, modular approach, but permit “back doors” to improve information flow at the cost of abstraction

Modules

  • Most modern operating systems implement kernel modules - Uses object-oriented approach - Each core component is separate - Each talks to the others over known interfaces - Each is loadable as needed within the kernel
  • Hybrid approach: similar to layers but with more flexible

Policy vs. Mechanism

  • Policy - what to do
    • users should not be able to read other users files
  • Mechanism- how to accomplish the goal
    • file protection properties are checked on open system call
  • Want to be able to change policy without having to change mechanism - change default file protection
  • Extreme examples of each:
    • micro-kernel OS - all mechanism, no policy
    • MacOS - policy and mechanism bound together

Microkernel System Structure

  • Goal: make the kernel as small as possible.
  • Communication takes place between user modules using message passing via the kernel.
  • Benefits:
    • easier to extend a microkernel
    • easier to port the OS to new architectures
    • more reliable and secure (less code running in kernel mode)
  • Drawback:
    • More overhead for operation

Virtual Machines (Cont.)

(a) Nonvirtual machine (b) virtual machine Non-virtual Machine (^) Virtual Machine

VMware Architecture