Computer science 学习笔记-操作系统(1)

本文系统地介绍了操作系统的内部工作原理,包括计算机系统概述、处理器寄存器、指令执行流程等内容,并详细解析了内存层次结构、缓存内存管理及I/O通信技术。

小半年后将迎来一次重要的考试,从现在开始把以前学习的内容和新学到的内容做一个系统的整理。

Operating Systems - Internals and Design Principles

1 Computer System Overview

1.1 Basic Elements

Processor, Main memory, I/O modules, System bus

1.2 Processor Registers

PC - Program counter      IR - Instruction register

MAR - Memory address register  MBR - Memory buffer register

I/O AR - I/O address register   I/O BR - I/O buffer register

User-visible registers - Data, Address, Index, Segment pointer, Stack pointer

Control ans status registers - PC, IR, Condition codes(flags)

1.3 Instruction execution

Fetch and Execute

1.4 Interrupts

Short and long I/O wait

1.5 The memory hierarchy

As one goes down the hierarchy, occur:

a. Decreasing cost per bit

b. Increasing capacity

c. Increasing access time

d. Decreasing frequency of access to the memory by the processor

1.6 Cache memory

Cache size, Block size, Mapping function, Replacement algorithm, Write policy.

Hit ratio increases then decreases when the block size keeps increasing.

Replace the block that is least likely to be needed in the near future.

least-recently-used (LRU) is a hardware mechanism.

1.6 I/O communication techniques

Programmed I/O, Interrupt-driven I/O, Direct memory access (DMA).

Review

In general, what are the strategies for exploiting spatial locality and temporal locality?

http://www.cnblogs.com/yanlingyin/archive/2012/02/11/2347116.html (局部性原理浅析)

 

 

转载于:https://www.cnblogs.com/fatlyz/archive/2013/02/07/2908973.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值