IP Library › Granted Patent US 10,983,823
Granted Patent B2
US 10,983,823 · App. 16/466,180 · Granted Apr 20, 2021

Computer apparatus, task initiation method, and computer readable medium

Inventors: Chisato Sato (Tokyo, JP); Yoshiaki Katayama (Tokyo, JP)
Assignee: MITSUBISHI ELECTRIC CORPORATION
G06F9/4837G06F9/4887
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,983,823
App. No.
16/466,180
Granted
Apr 20, 2021
Kind
B2
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 (17)

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.

2. 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.

3. 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;

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.

4. 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.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 4, 2019
From: SATO, CHISATO; KATAYAMA, YOSHIAKI
To: MITSUBISHI ELECTRIC CORPORATION
Reel/Frame 049360/0257 →
Continuity (1)
Related Publication 20200004581A1 · Jan 2, 2020