主权项 |
1. An apparatus for processing an interrupt, the apparatus comprising:
a plurality of processing cores, each configured to process an interrupt; a monitor unit configured to
receive the interrupt,identify a processing mode of each processing core, from among an interrupt request (IRQ) mode in which another interrupt is currently being processed, and at least one other processing mode in which a program other than an interrupt is currently being processed, by detecting, in response to receiving the interrupt, a pin signal of each processing core or a signal of a mode bus connected to the pin,wherein the monitor unit comprises
a first monitor unit configured to detect an execution mode of each processing core of the plurality of processing cores,a second monitor unit configured to detect an interrupt masking status of each processing core of the plurality of processing cores, anda third monitor unit configured to detect the number of interrupts received by each processing core, and utilization of each processing core; and an interrupt distributing unit configured to
prevent the received interrupt from being provided to a processing core that is in the IRQ mode,select candidate processing cores to receive the interrupt, based on a processing mode of each processing core, where each respective processing mode is one of: an execution mode, a user mode, an interrupt request (IRQ) mode, and a supervisor mode,select a processing core from among the candidate processing cores to process the interrupt, based on a detected interrupt status and performance information of each candidate processing core, andprovide the received interrupt to the selected processing core. |