OS Organization - PowerPoint PPT Presentation

About This Presentation
Title:

OS Organization

Description:

ROM Routines. OS Requirements (cont) Provide resource abstractions. Manage resource sharing ... ROM Routines. Program. State. Process. Program. State. Process ... – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 19
Provided by: garyj7
Category:
Tags: organization | rom

less

Transcript and Presenter's Notes

Title: OS Organization


1
OS Organization
2
OS Requirements
  • Provide resource abstractions
  • Process abstraction of CPU/memory use
  • Address space
  • Concurrency
  • Thread abstraction of CPU within address space
  • Resource abstraction
  • Anything a process can request that can block
    the process if it is unavailable
  • NT uses object abstraction to reference
    resources
  • File abstraction of secondary storage use

3
DOS -- Resource Abstraction Only
Program
Program
Libraries
Program
OS Services
ROM Routines
Processor(s)
Main Memory
Devices
4
OS Requirements (cont)
  • Provide resource abstractions
  • Manage resource sharing
  • Time/space-multiplexing
  • Exclusive use of a resource
  • Isolation
  • Managed sharing

5
Abstraction Sharing
Libraries
THREADS
  • OS Services
  • Abstraction
  • Manage sharing

ROM Routines
Processor(s)
Main Memory
Devices
6
OS Design Constraints
  • Performance
  • Protection and security
  • Correctness
  • Maintainability
  • Commercial factors
  • Standards and open systems

7
Performance
  • The OS is an overhead function ? should not use
    too much of machines resources
  • Minimum functionality is to implement
    abstractions
  • Additional function must be traded off against
    performance
  • DOS one process
  • UNIX low level file system

8
Protection Security
  • Multiprogramming ? resource sharing
  • Therefore, need software-controlled resource
    isolation
  • Security policy Sharing strategy chosen by
    computers owner
  • Protection mechanism Tool to implement a family
    of security policies

9
Correctness Maintainability
  • Security depends on correct operation of software
    ? trusted vs untrusted software
  • Maintainability relates to ability of software to
    be changed
  • If either is sufficiently important, can limit
    the function of the OS
  • Guiding a manned spaceship
  • Managing a nuclear reactor

10
Processor Modes
  • Mode bit Supervisor or User mode
  • Supervisor mode
  • Can execute all machine instructions
  • Can reference all memory locations
  • User mode
  • Can only execute a subset of instructions
  • Can only reference a subset of memory locations

11
Kernels
  • The part of the OS critical to correct operation
    (trusted software)
  • Executes in supervisor mode
  • The trap instruction is used to switch from user
    to supervisor mode, entering the OS

12
The trap Instruction
Mode
S
trap
Trusted Code
User
Supervisor
13
Requesting OS Service
call()
trap
return
14
Basic OS Organization
Processor(s)
Main Memory
Devices
15
Typical UNIX Organization
Process
Process
Libraries
Process
User
Supervisor
Device Drivers
Kernel
Processor(s)
Main Memory
Devices
16
Microkernel Organization
Process
Process
Libraries
Process
User
Supervisor
Server
Server
Server
Device Drivers
Microkernel
Processor(s)
Main Memory
Devices
17
NT Organization
Process
Process
T
T
Process
T
T
T
T
Libraries
T
T
T
Subsystem
Subsystem
Subsystem
User
Supervisor
I/O Subsystem
NT Executive
NT Kernel
Hardware Abstraction Layer
Processor(s)
Main Memory
Devices
18
Monitoring the Kernel
Process
Process
T
Task Manager
T
Process
T
T
T
T
Libraries
T
T
T
pview
Subsystem
Subsystem
Subsystem
pstat
User
Supervisor
I/O Subsystem
NT Executive
NT Kernel
Hardware Abstraction Layer
Processor(s)
Main Memory
Devices
Write a Comment
User Comments (0)
About PowerShow.com