# US 2020/0004581 A1 · Computer apparatus, task initiation method, and computer readable medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0004581 A1
- Document ID: US20200004581A1
- Status: Published application
- Kind: A1
- Application number: 16/466,180
- Filed: 2017-01-25
- Published: 2020-01-02
- Earliest claimed: 2017-01-25
- Assignees: Mitsubishi Electric Corporation
- Applicants: Mitsubishi Electric Corporation
- Inventors: Chisato SATO; Yoshiaki KATAYAMA
- Web page: https://patentgrep.com/patent/US20200004581A1

## CPC

- G06F 9/4825: {Interrupt from clock, e.g. time of day}
- G06F 9/4837: {time dependent}
- G06F 9/4887: {involving deadlines, e.g. rate based, periodic}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A computer apparatus (100) includes an OS execution unit (120), an OS-dependent interrupt processing unit (110), and an OS-independent interrupt processing unit (130). When an OS-independent interrupt (201) due to a state of a device (200) occurs, the OS-independent interrupt processing unit (130) determines whether or not to initiate a task (145). When the task (145) is to be initiated, the OS-independent interrupt processing unit (130) turns on the flag (141) and causes the OS execution unit (120) to generate an OS-dependent interrupt (202). When the OS-dependent interrupt (202) is generated, the OS-dependent interrupt processing unit (110) determines whether or not the flag (141) is on, and when the flag (141) is on, initiates the task (145) and turns off the flag (141).

## Claims

### Claim 1

A computer apparatus to be connected with a device, the computer apparatus comprising:
processing circuitry to:
execute an operating system (OS) and generate an OS-dependent interrupt for initiating an OS-dependent task for which a remaining time is set in a timeout queue, the remaining time being a time until a next interrupt time at which a next OS-dependent task is to be initiated and being set as a counter value of an interrupt timer;
store a flag;
determine, when an OS-independent interrupt due to a state of the device occurs, whether or not to initiate an OS-independent task corresponding to the device and when the OS-independent task is to be initiated, turn on the flag and generate the OS-dependent interrupt by overwriting the counter value of the interrupt timer;
determine, when the OS-dependent interrupt is generated, whether or not the flag is on, and when the flag is on, initiate the OS-independent task and turn off the flag; and
obtain, when the OS-independent task is initiated, a previous execution time which is a time at which a previous OS-dependent task has been initiated and a current time, calculate an elapsed time from the previous execution time to the current time, and based on the elapsed time and the remaining time of a head task to be executed first among OS-dependent tasks, reset the counter value of the interrupt timer such that the head task is executed at the next interrupt time.

### Claim 2 (depends on 1)

The computer apparatus according to claim 1,
wherein when a value obtained by subtracting the elapsed time from the remaining time is greater than 0, the processing circuitry resets the counter value of the interrupt timer to the value obtained by subtracting the elapsed time from the remaining time, and when the value obtained by subtracting the elapsed time from the remaining time is equal to or less than 0, the processing circuitry resets the counter value of the interrupt timer such that the head task is executed immediately.

### Claim 3

(canceled)

### Claim 4

(canceled)

### Claim 5

A task initiation method of a computer apparatus to be connected to a device and including processing circuitry to execute an operating system (OS) and generate an OS-dependent interrupt for initiating an OS-dependent task for which a remaining time is set in a timeout queue. the remaining time being a time until a next interrupt time at which a next OS-dependent task is to be initiated and being set as a counter value of an interrupt timer, the task initiation method comprising:
determining, when an OS-independent interrupt due to a state of the device occurs, whether or not to initiate an OS-independent task corresponding to the device, and when the OS-independent task is to be initiated, turning on a flag and causing the processing circuitry to generate the OS-dependent interrupt by overwriting the counter value of the interrupt timer; and
determining, when the OS-dependent interrupt is generated by the processing circuitry, whether or not the flag is on, and when the flag is on, initiating the OS-independent task and turning off the flag, and
obtaining, when the OS-independent task is initiated, a previous execution time which is a time at which a previous OS-dependent task has been initiated and a current time, calculating an elapsed time from the previous execution time to the current time, and based on the elapsed time and the remaining time of a head task to be executed first among OS-dependent tasks, resetting the counter value of the interrupt timer such that the head task is executed at the next interrupt time.

### Claim 6

A non-transitory computer readable medium storing a task initiation program for a computer apparatus to be connected to a device and including processing circuitry to execute an operating system (OS) and generate an OS-dependent interrupt for initiating an OS-dependent task for which a remaining time is set in a timeout queue, the remaining time being a time until a next interrupt time at which a next OS-dependent task is to be initiated and being set as a counter value of an interrupt timer. the task initiation program causing the computer apparatus, which is a computer, to execute:
an OS-independent interrupt process to, when an OS-independent interrupt due to a state of the device occurs, determine whether or not to initiate an OS-independent task corresponding to the device, and when the OS-independent task is to be initiated, turn on a flag and cause the processing circuitry to generate the OS-dependent interrupt by overwriting the counter value of the interrupt timer;
an OS-dependent interrupt process to, when the OS-dependent interrupt is generated by the processing circuitry, determine whether or not the flag is on, and when the flag is on, initiate the OS-independent task and turn off the flag; and
a process to, when the OS-independent task is initiated, obtain a previous execution time which is a time at which a previous OS-dependent task has been initiated and a current time. calculate an elapsed time from the previous execution time to the current time, and based on the elapsed time and the remaining time of a head task to be executed first among OS-dependent tasks, reset the counter value of the interrupt timer such that the head task is executed at the next interrupt time.
