Get Started. It's Free
or sign up with your email address
Computer System Architecture by Mind Map: Computer System Architecture

1. Operation

1.1. A general-purpose computer consists >=1 CPU

1.1.1. can execute concurrently

1.2. A general-purpose computer consists a number of device controllers.

1.2.1. in charge of a specific type of device.

1.2.2. has a local buffer

1.2.3. informs CPU that it has finished its operation by causing an interrupt

1.2.3.1. Interrupt indicates the occurrence

2. Storage Structure

2.1. Main Memory

2.1.1. only large storage media that the CPU can access directly

2.1.2. A volatile storage device

2.1.2.1. lose its contents when power is turned off.

2.2. Secondary storage

2.2.1. extension of main memory that provides nonvolatile storage capacity/

2.2.2. Capable to hold large quantities of data permanently.

2.3. storage hierarchy

2.3.1. storage system organised in hierarchy

2.3.1.1. speed

2.3.1.2. cost

2.3.1.3. volatility

2.3.2. Caching

2.3.2.1. Copy inför into faster storage system

2.3.2.1.1. main memory can be viewed as a last cache for 2ndary storage

2.4. Storage device hierarchy

2.4.1. 1. register

2.4.2. 2. Cache

2.4.3. 3. main memory

2.4.4. 4. electronic disk

2.4.5. 5. magnetic disk

2.4.6. 6. optical disk

2.4.7. 7. magnetic tapes

3. protection

3.1. I/O protection

3.1.1. privileged instructions.

3.1.1.1. user can't issue I/O instruction directly.

3.1.1.2. User must executes a system, call to request the OS to perform I/O

3.1.2. Must ensure the user couldn't gain control of the computer in monitor mode

3.1.2.1. e.g, a user program, as part of its execution, stores a new address in the interrupt vector

3.2. Memory protection

3.2.1. must provide memory protection at least for the interrupt vector and the interrupt service routines.

3.2.2. Two register are used

3.2.2.1. Base register

3.2.2.1.1. holds the smallest legal physical memory address

3.2.2.2. limit register

3.2.2.2.1. contains the size of the range

3.2.3. memory outside the defined range is protected.

3.3. Hardware Address Protection

3.3.1. when in kernel mode, the OS has unrestricted access to both monitor and user's memory

3.3.1.1. OS is allowed to load users' programs into users' memory

3.3.1.1.1. to access and modify parameters of system calls.

3.3.2. The load instructions for the base and limit registers are privilege instruction.

3.4. CPU protection

3.4.1. Timer

3.4.1.1. Interrupts computer after specified period to ensure OS maintains control over CPU

3.4.1.1.1. Every time the clock ticks, the counter is decremented

3.4.1.1.2. when time reaches the value 0, an interrupt occurs.

3.4.2. timer interrupts, control transfer to the OS.

3.4.3. Load- timer is a privileged instruction.