Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Chapter 1 Introduction
1.1 What operating System Do
A computer system can be divided roughly into four components
1. hardware
2. operating system
3. application program
4. users
Hardware: CPU, memory, I/O device
Operating system provides an environment for other programs
User view:
PC is designed for ease of use, with some attention paid to performance
and none
paid to resource utilization
System View:
Resource allocator: CPU time, memory space, file-storage space, I/O
devices
operating systems usually refers to the kernel (or including system programs)
CPU and the device controllers can execute in parallel competing for
memory cycles
The CPU can only load instructions only from memory, so any programs to run
must be stored there
main memory (random-access memory, RAM) - implemented in a semiconductor
technology called dynamic random-access memory (DRAM)
Depending on the I/O controller, more than one devices can be attached
A device controller maintains some local buffer storage and a set of special-
purpose registers
typically, operating system has a device driver for each device controller
blade servers
job scheduling: select jobs from job pool if no enough memory for them all
swapping and virtual memory can be used to achieve reasonable response time
virtual memory abstracts main memory into a large, uniform array of storage,
separation logical memory as
viewed by the user from physical memory.
virtual machine manager (VMM): more privileged than users and less than
kernel
timer: to disable a user to program to get stuck and not return to OS,
usually implemented by a fixed-rate clock and a counter
Cache
cache management: cache size, replacement policy affects performance
cache coherency: generally a hardware issue
I/O subsystem
A memory-management component that includes buffering, caching, and
spooling
A general device-driver interface
Drivers for specific hardware devices