题目详情

在中断响应过程中,CPU保护程序计数器的主要目的是______。

  • A.为了实现中断嵌套
  • B.使CPU能找到中断服务程序的入口地址
  • C.为了使CPU在执行完中断服务程序后能返回到被中断程序的断点处
  • D.为了使CPU与I/O设备并行工作

正确答案及解析

正确答案
C
解析

本题考查计算机中断原理的基础知识。当系统产生中断后,CPU响应中断的过程大致分为以下几个阶段:(1)关中断。(2)保留断点:CPU响应中断后,把主程序执行的位置和有关数据信息保留到堆栈,以备中断处理完毕后,能返回主程序并正确执行。(3)保护现场:为了使中断处理程序不影响主程序的运行,故要把断点处的有关寄存器的内容和标志位的状态全部推入堆栈保护起来。这样,当中断处理完成后返回主程序时,CPU能够恢复主程序的中断前状态,保证主程序的正确动作。(4)给出中断入口,转入相应的中断服务程序:系统由中断源提供的中断向量形成中断入口地址,使CPU能够正确进入中断服务程序。(5)恢复现场:把所保存的各个内部寄存器的内容和标志位的状态,从堆栈弹出,送回CPU中原来的位置。(6)开中断与返回:在中断服务程序的最后,要开中断(以便CPU能响应新的中断请求)和安排一条中断返回指令,将堆栈内保存的主程序被中断的位置值弹出,运行被恢复到主程序。

包含此试题的试卷

你可能感兴趣的试题

单选题

Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.

  • A.Artificial Intelligence
  • B.Cloud Computing
  • C.Internet of Things
  • D.Big Data
查看答案
单选题

In project human resource management , ( )is not a source of power for the project manager.

  • A.referent power
  • B.expert power
  • C.reward power
  • D.audit power
查看答案
单选题

At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.

  • A.detail feasibility analysis
  • B.opportunity analysis
  • C.economic feasibility analysis
  • D.risk analysis
查看答案
单选题

( )is a grid that shows the project resources assigned to each work package.

  • A.Stakeholder engagement assessment matrix
  • B.Requirements traceability matrix
  • C.Probability and impact matrix
  • D.Responsibility assignment matrix
查看答案
单选题

Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.

  • A.digital
  • B.networking
  • C.intelligentize
  • D.informatization
查看答案

相关题库更多 +