Computer System Structure

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

1. CPU Protection

1.1. Timer interrupts computer after specified period to ensure operating system maintains control over CPU

1.2. When timer interrupts, control transfers to the operating system.

1.3. Load-timer is a privileged instruction

2. Storage Hierarchy

2.1. Caching is copying information into faster storage system; main memory can be viewed as a last cache for secondary storage.

2.2. The storage systems organized in hierarchy is speed , cost and volatility

3. IO priotection

3.1. User program must executes a system call to request that the operating system to perform I/O.

3.2. User program could never gain control of the computer in monitor mode

4. Interrupt Handling

4.1. Interrupt service routine

4.1.1. Part of the operating system which takes action in response to the condition that caused the interrupt

4.1.2. When the CPU is interrupted, it stops what it is doing and immediately transfers execution to a fixed location

4.1.3. Interrupt vector provide the address of the interrupt service routine for the interrupting device.

5. Computer-System Operation

5.1. Each device controller is in charge of a specific type of device.

5.2. Each device controller has a local buffer.

5.3. Device controller informs CPU that it has finished its operation by causing an interrupt.

6. Use of A System Call to Perform I/O

7. Memory protection

7.1. Base register

7.2. holds the smallest legal physical memory address.

7.3. Limit register

7.4. contains the size of the range

8. Modes of Operation

8.1. User Mode

8.1.1. 1. user program executes in user mode

8.1.2. 2. certain areas of memory are protected from user access

8.1.3. 3. certain instructions may not be executed

8.2. Kernel Mode

8.2.1. 1. monitor executes in kernel mode

8.2.2. 2. privileged instructions may be executed

8.2.3. 3. protected areas of memory may be accessed

9. Dual-Mode Operation

9.1. Privileged instructions can be issued only in monitor mode.

9.2. Mode bit is added to computer hardware to indicate the current mode: kernel (0) or user (1).

10. Storage Structure

10.1. Main memory only large storage media that the CPU can access directly.

10.2. Secondary storage extension of main memory that provides nonvolatile storage capacity.

11. Asynchronous I/O Structure

11.1. After I/O starts, control returns to user program without waiting for I/O completion

11.2. System call will request to the operating system to allow user to wait for I/O completion.

12. Two I/O Methods

13. Synchronous I/O Structure

13.1. After I/O starts, control returns to user program only upon I/O completion.

13.2. Wait instruction idles the CPU until the next interrupt

13.3. At most one I/O request is outstanding at a time, no simultaneous I/O processing.