以下关于CPU与I/O设备交换数据所用控制方式的叙述中,正确的是( )。
- A.中断方式下,CPU与外设是串行工作的
- B.中断方式下,CPU需要主动查询和等待外设
- C.DMA方式下,CPU与外设可并行工作
- D.DMA方式下,需要CPU执行程序传送数据
正确答案及解析
正确答案
解析
中断方式下的数据传送是当I/O接口准备好接收数据或准备好向CPU传送数据时, 就发出中断信号通知CPU。对中断信号进行确认后,CPU保存正在执行的程序的现场, 转而执行提前设置好的I/O中断服务程序,完成一次数据传送的处理。这样,CPU就不需要主动查询外设的状态,在等待数据期间可以执行其他程序,从而提高了 CPU的利用率。采用中断方式管理I/O设备,CPU和外设可以并行地工作。
程序查询方式下,CPU通过执行程序查询外设的状态,判断外设是否准备好接收数 据或准备好了向CPU输入的数据。
直接内存存取(Direct Memory Access, DMA)方式的基本思想是通过硬件控制实现主存与I/O设备间的直接数据传送,数据的传送过程由DMA控制器(DMAC)进行控制,不需要CPU的干预。在DMA方式下,由CPU启动传送过程,即向设备发出“传送一块数据”的命令,在传送过程结束时,DMAC通过中断方式通知CPU进行一些后续处理工作。
综合来看由于DMA方式下数据的传送过程由DMA控制器(DMAC)进行控制,不需要CPU的干预,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
- 查看答案