网站大量收购独家精品文档,联系QQ:2885784924

【精品资料】出错处理(Error Handling).ppt

  1. 1、本文档共69页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
出错处理(Error Handling) 常见错误 程序错误(programming errors) 暂时检查和错误(transient checksum errors) 永久检查和错误(permanent checksum errors) 寻道错误(seek errors) 控制器错误(controller errors) 出错处理(Error Handling) bad sectors ECC corrects the errors deal with in the controller deal with in the operating system 出错处理(Error Handling) 出错处理(Error Handling) substituting spare sectors for bad ones 控制器需要记录信息 内部表(one per track) 导言重写(rewriting preambles) 出错处理(Error Handling) deal with bad sectors in the operating system acquire a list of bad sectors build remapping tables can also use the former two ways 出错处理(Error Handling) deal with bad sectors in the operating system bad sectors are not in any files nor in the free list create a secret file containing all the bad sectors, keeping it out of the file system 出错处理(Error Handling) deal with bad sectors in the operating system backups: file by file: hide the bad block file sector by sector: smart backup utility program 出错处理(Error Handling) 寻道错误(seek errors) hard disks controllers can handle automatically floppy controllers set an error bit and leave it to the driver the driver: 发送校准命令(recalibrate command),重置控制器的0号柱面信息 出错处理(Error Handling) 控制器错误(controller errors) controller bugs need some hardware in design to reset itself the disk driver sets a bit to invoke the signal and reset the controller the disk driver print a message and give up Clocks - Clock Hardware 时钟硬件(PC机中) 实时时钟(Real Time Clock,RTC) 可编程间隔定时器(Programmable Interval Timer,PIT) 时间戳计数器(Time Stamp Counter,TSC)。 Clocks - Clock Hardware Clocks - Clock Hardware Programmable interval clock的工作模式 One-shot mode Square-wave mode 时钟滴答(Clock tick) Clocks - Clock Hardware Programmable interval clock 周期性地发生时钟中断 e.g. 晶体振荡频率500MHz, 32位寄存器, 则时钟中断的间隔为2nsec – 8.6sec Clocks - Clock Hardware 实时时钟RTC 在PC机断电后仍能保存时间 通过主板上的电池供电;通常与CMOS RAM集成到一块芯片上 也称为 CMOS Timer Clocks - Clock Hardware 实时时钟RTC 可在系统初启时读入 并转换为相对于某一基准时间的时钟滴答数 操作系统提供实用程序可以设置系统时钟和RTC并在二者之间同步 Clocks - Clock Hardware 时间戳记数器TSC Pentium之后的CPU中包含的64位的寄存器 在每一个

您可能关注的文档

文档评论(0)

精品资料 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档