Mid-term 1 Flashcards
Bootstrap
Loads operating system kernel and stored in ROM. Initializes all aspects of system
Caching
Copying information into faster storage system; main memory can be viewed as a cache for secondary storage
Advantages of multiprocessors
- Increased throughput
- Economy of scale
- Increased reliability
Dual-mode
User mode, Kernel mode - allows OS to protect itself. Allows ability to distinguish between kernel code and user code. Some instructions are ‘privelaged’: only run in kernel mode.
API
Application Programming Interface - provides interface for application programmers.
- Program portability (same code runs on any machine with same API)
- Less detailed, more abstracted
System Call
Provides an interface to the services made available my an operating system
Types of system calls
- Process control
- File manipulation
- Device manipulation
- Info maintenance
- Communications
- Protection
Command Interpreters
CLI’s (Command Line Interface). Systems with multiple interpreters call them shells. Main function is to get and execute the next user-specified command
OS Structures - Simple
Only one or two levels of code - provides most functionality in least space, but is vulnerable
OS Structures - Layered
Lower levels independent of upper levels - More secure, but more overhead since layers can only communicate with one directly below it
OS Structures - Microkernels
OS built from many user processes - moves as many processes as possible to the ‘user’ space, small kernel. More reliable and secure, suffers performance overhead from user to kernel
OS Structures - Modules
Core kernel with dynamically loadable modules - Uses OO approach. Similar to layers, but more flexible
Virtual Machine
Software implementation of a computer that executes programs like a physical machine. System Machines exist independently on hardware, Process Machines run as an app inside an OS
Process Parts
- Program Code
- Program Counter
- Stack
- Data Section
- Heap
Process States