Professional Documents
Culture Documents
Chương trình
người dùng
(a) Tiến hành ngắt tuần tự
Chương trình
người dùng
(b) Tiến hành ngắt lồng (nested)
Example: Handling interrupt has priority
t = 25
t = 40
t = 25
Serve interrupt
of Disk
t = 35
Interrupt handling in IBM-PC
Interrupt 00h: divide 0
Interrupt 01h: execute each command
Interrupt 02h: NMI (unshaded interrupt)
Interrupt 03h: Stop
Interrupt 04h: Overflow error
Interrupt 05h: Hard Copy (PrtScr)
Interrupt 06h-07h: not in use
Interrupt 08h -0Fh: These interrupts are generated by
the interrupt 8259 controller
The interrupt 8259 controller
There are 8 sources that generate interrupts (devices)
simultaneously
Each device is assigned a priority
Bộ thời gian
Bàn phím
COM 2
COM 1
Đĩa mềm
Máy in song song
Interrupt requests on the AT machine
7 6 5 4 3 2 1 0 bit