Computer System Software

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

1. Computer System Operation

1.1. General purpose computer system

1.1.1. CPU and device execute concurrently

1.2. Device controller sent interrupt to CPU when finished its operation.

1.2.1. Interrupt indicate the concurrence of an event from either hardware or software

1.2.2. CPU stop current execution

1.2.2.1. CPU store execution to fixed location

1.2.2.1.1. Fixed location contain starting address and ISR.

1.2.2.1.2. Saved return address loaded after interrupt service

1.3. Device Controller

1.3.1. Synchronize the access of memory

1.3.2. Contain local buffer

2. I/O structure

2.1. (a) Synchronous I/O structure

2.1.1. Control return to user program after I/O start upon I/O completion

2.1.1.1. CPU idle while waiting for instruction

2.1.1.2. Wait loop

2.1.1.3. No simultaneous I/o processing

2.2. (b) Asynchronous I/O structure

2.2.1. Control returns to user program without waiting for I/O completion

2.2.1.1. System Call

2.2.1.1.1. Request OS to allow user to wait for I/O completion

2.2.1.2. Device Stauts Table

2.2.1.2.1. Contain each I/O device

2.2.1.2.2. Indicate its type, address and state.

2.3. Contain type and value common to all the input and output structure

3. Storage Structure

3.1. Main memory

3.1.1. CPU can access directly

3.1.2. Volatile

3.2. Secondary memory

3.2.1. Provide non-volatile storage capacity

3.2.2. Capable to hold large qualities of data permanently

3.3. Storage System Hierarchy

3.3.1. Speed

3.3.2. Cost

3.3.3. Volatility

3.3.4. Electronic Disk

3.3.4.1. Normal Operation

3.3.4.1.1. Volatile

3.3.4.2. Power Interrupted

3.3.4.2.1. data copied to non-volatile media

4. Dual mode operation

4.1. To ensure the proper execution of OS

4.2. User mode Mod bit : (1)

4.2.1. execute user program

4.2.2. Restriction

4.2.2.1. Not executable area of memory

4.2.2.2. Not executable instruction

4.3. Kernel mode Mode bit : (0)

4.3.1. a.k.a. system mode, monitor mode

4.3.2. Privileged instruction may be execute

4.3.3. Protected area of memory can be access

5. Protection of Computer System Software

5.1. I/O protection

5.1.1. All I/O instruction is privileged instruction

5.1.1.1. User program cannot issue directly

5.1.1.1.1. User program executes a system call to request OS to perform I/O

5.1.2. Must ensure user program unable to control computer in monitor mode

5.2. Memory protection

5.2.1. Computer system must provide protection at least for interrupt vector and ISR.

5.2.1.1. Memory beyond the defined range is protected

5.2.2. Two register are used

5.2.2.1. To determine the range of legal address

5.2.2.2. Base Register

5.2.2.2.1. Hold smallest legal physical memory address

5.2.2.3. Limit Register

5.2.2.3.1. Contain the size of range

5.3. Hardware address protection

5.3.1. Load instruction for the base register and limit register are privileged instruction

5.4. CPU protection

5.4.1. Timer

5.4.1.1. Interrupt CPU after specified period

5.4.1.1.1. Ensure OS maintain control over CPU

5.4.1.2. Every time clock ticks, COunter decremented

5.4.1.2.1. When Timer reach value 0, interrupt occur

5.4.2. Load timer is privileged instruction

6. Guideline

6.1. Main Topic

6.2. Point

6.3. Description

6.4. Working step