对“μ-80”行式打印机的“软”改造
A “Soft” Reform for μ-80 Line Printer
-
摘要: 本文介绍了一种利用实时钟使打印机具有“软”中断能力的方法。
时钟中断处理程序定时地去查询打印机的状态,决定是否再次启动打印机。于是CPU和打印机能同时地进行工作,从而使CPU得到充分利用,整个系统的利用率也相应提高。Abstract: This paper presents a method which enables a μ-80 line printer to possess the abiliy of “soft-interruption” with the aid of a real-time clock.
The clock interrupt processing program tests the state of the printer intermittently, and decides whether the printer will be started again. As a result, CPU can work simultaneously with the printer. Thus CPU can be fully utilized and the utilization factor of the system is heightened accordingly.