Electronic device with plurality of processes executing processings corresponding to interrupts, interrupt processing method, and recording
First Claim
1. An electronic device comprising:
- a memory that stores an interrupt process program;
a processor that executes the interrupt process program, whereinwhen the processor executes the interrupt process program, the processor controlsa plurality of processes and operates as;
a plurality of interrupt waiting units that correspond to the plurality of processes, respectively; and
an interrupt handler that processes interrupts of the plurality of processes,wherein each of the plurality of interrupt waiting units sets an interrupt waiting flag to wait for an occurrence of an interrupt and waits for a process corresponding to each of the plurality of interrupt waiting units,the interrupt handler, when the interrupt occurred, sets an interrupt style of the occurred interrupt and clears all of interrupt waiting flags that have been set, theneach of the plurality of interrupt waiting units confirm the interrupt style to determine whether or not the interrupt style is matched with the process corresponding to each of the plurality of interrupt waiting units,the plurality of interrupt waiting units include a first interrupt waiting unit that corresponds to a first process associated with the interrupt style that has been set and a second interrupt waiting unit that corresponds to a second process not associated with the interrupt style that has been set,the interrupt waiting flags include a first interrupt waiting flag corresponding to the first process and a second interrupt waiting flag corresponding to the second process,the first interrupt waiting unit operates the first process when the first interrupt waiting flag was cleared,the second interrupt waiting unit set the second interrupt waiting flag when the second interrupt waiting flag was cleared.
1 Assignment
0 Petitions
Accused Products
Abstract
An electronic device includes a plurality of processes, an interrupt waiting unit for each of the processes, and an interrupt handler. The interrupt handler processes the interrupt. The interrupt waiting unit sets an interrupt waiting flag to wait for an occurrence of the interrupt. The interrupt handler, when the interrupt occurred, sets an interrupt style of the occurred interrupt and releases the interrupt waiting flag from the set state. The interrupt waiting unit, when the interrupt waiting flag was released from the set state, sets the interrupt waiting flag if the interrupt style set by the interrupt handler is not an interrupt style matched with the process, and operates the process if the interrupt style set by the interrupt hander is the interrupt style matched with the one of the processes. The interrupt waiting flag is located to each of the processes.
-
Citations
5 Claims
-
1. An electronic device comprising:
-
a memory that stores an interrupt process program; a processor that executes the interrupt process program, wherein when the processor executes the interrupt process program, the processor controls a plurality of processes and operates as; a plurality of interrupt waiting units that correspond to the plurality of processes, respectively; and an interrupt handler that processes interrupts of the plurality of processes, wherein each of the plurality of interrupt waiting units sets an interrupt waiting flag to wait for an occurrence of an interrupt and waits for a process corresponding to each of the plurality of interrupt waiting units, the interrupt handler, when the interrupt occurred, sets an interrupt style of the occurred interrupt and clears all of interrupt waiting flags that have been set, then each of the plurality of interrupt waiting units confirm the interrupt style to determine whether or not the interrupt style is matched with the process corresponding to each of the plurality of interrupt waiting units, the plurality of interrupt waiting units include a first interrupt waiting unit that corresponds to a first process associated with the interrupt style that has been set and a second interrupt waiting unit that corresponds to a second process not associated with the interrupt style that has been set, the interrupt waiting flags include a first interrupt waiting flag corresponding to the first process and a second interrupt waiting flag corresponding to the second process, the first interrupt waiting unit operates the first process when the first interrupt waiting flag was cleared, the second interrupt waiting unit set the second interrupt waiting flag when the second interrupt waiting flag was cleared. - View Dependent Claims (2, 3, 4)
-
-
5. A non-transitory computer-readable recording medium storing an interrupt process program to control an electronic device, the interrupt process program causing a computer of the electronic device to operate as:
-
a plurality of processes; a plurality of interrupt waiting units that correspond to the plurality of processes, respectively; and an interrupt handler that processes interrupts of the plurality of processes, wherein each of the plurality of interrupt waiting units sets an interrupt waiting flag to wait for an occurrence of an interrupt and waits for a process corresponding to each of the plurality of interrupt waiting units, the interrupt handler, when the interrupt occurred, sets an interrupt style of the occurred interrupt and clears all of interrupt waiting flags that have been set, then each of the plurality of interrupt waiting units confirm the interrupt style to determine whether or not the interrupt style is matched with the process corresponding to each of the plurality of interrupt waiting units, the plurality of interrupt waiting units include a first interrupt waiting unit that corresponds to a first process associated with the set interrupt style that has been set and a second interrupt waiting unit that corresponds to a second process not associated with the set interrupt style that has been set, the interrupt waiting flags include a first interrupt waiting flag corresponding to the first process and a second interrupt waiting flag corresponding to the second process, the first interrupt waiting unit operates the first process when the first interrupt waiting flag was cleared, the second interrupt waiting unit set the interrupt waiting flag when the second interrupt waiting flag was cleared, and the interrupt waiting flag is located to each of the plurality of processes.
-
Specification