Method and apparatus for fast context cloning in a data processing system
US-10353826-B2 · Jul 16, 2019 · US
US10983772B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-10983772-B2 |
| Application number | US-201816190172-A |
| Country | US |
| Kind code | B2 |
| Filing date | Nov 14, 2018 |
| Priority date | Feb 7, 2018 |
| Publication date | Apr 20, 2021 |
| Grant date | Apr 20, 2021 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
Provided is an environment for executing an application program included in a task to be periodically executed every fixed task cycle within a predetermined task cycle. A method includes: receiving input of a source code of the application program, and generating an execution module of the application program by adding, to the source code of the application program, a first command for interrupting the application program after executing the application program for a preset time within the task cycle and resuming execution of the application program in the next task cycle.
Opening claim text (preview).
What is claimed is: 1. A method for generating an application program comprised in a task to be periodically executed every fixed task cycle, the method comprising: receiving input of a source code of the application program; and generating an execution module of the application program by adding, to the source code of the application program, a first command for interrupting the application program after executing the application program for a preset time within a task cycle and resuming execution of the application program in a next task cycle, wherein the preset time is a set division time allocated from a start of execution of the application program to interruption in the task cycle and the task cycle is a control cycle in which the application program is periodically executed from beginning to end; and wherein the first command comprises: a command to save an execution state at a moment when the preset time elapses from the start of execution of the application program; and a command to restore the saved execution state in a subsequent task cycle, and wherein the first command further comprises a command for setting an interrupt timer so as to generate an interrupt event when the preset time elapses from the start of execution of the application program within the task cycle. 2. The method according to claim 1 , wherein the first command further comprises a command to determine whether or not the preset time has elapsed at each interruption point preset in the source code of the application program. 3. The method according to claim 2 , further comprising: inserting the interruption point into the source code of the application program. 4. The method according to claim 1 , wherein the step of generating the execution module generates the execution module comprising a first execution code and a second execution code, the first execution code is generated by adding the first command, and the second execution code is generated from the source code of the application program to which the first command is not added. 5. The method according to claim 2 , wherein the step of generating the execution module generates the execution module comprising a first execution code and a second execution code, the first execution code is generated by adding the first command, and the second execution code is generated from the source code of the application program to which the first command is not added. 6. The method according to claim 3 , wherein the step of generating the execution module generates the execution module comprising a first execution code and a second execution code, the first execution code is generated by adding the first command, and the second execution code is generated from the source code of the application program to which the first command is not added. 7. The method according to claim 4 , wherein the step of generating the execution module comprises: generating program definition information, in association with the execution module, comprising information indicating a state of an execution code comprised in the execution module. 8. The method according to claim 1 , wherein the step of generating the execution module comprises: further adding, to the source code of the application program, a second command for receiving setting of control parameters related to execution, interruption and resumption of the application program. 9. The method according to claim 2 , wherein the step of generating the execution module comprises: further adding, to the source code of the application program, a second command for receiving setting of control parameters related to execution, interruption and resumption of the application program. 10. The method according to claim 3 , wherein the step of generating the execution module comprises: further adding, to the source code of the application program, a second command for receiving setting of control parameters related to execution, interruption and resumption of the application program. 11. The method according to claim 8 , wherein the control parameters comprise information for selecting either to resume from a point where execution of the application program was interrupted or to execute the application program from the beginning. 12. The method according to claim 8 , further comprising: changing whether or not to enable receipt of the setting of the control parameters in a process of creating a user program referring to the execution module according to whether or not a function of interrupting the application program after executing the application program for the preset time within the task cycle is enabled. 13. An apparatus for generating an application program comprised in a task to be periodically executed every fixed task cycle, the apparatus comprising: a processor, being configured to: receive input of a source code of the application program; and generate an execution module of the application program by adding, to the source code of the application program, a first command for interrupting the application program after executing the application program for a preset time within a task cycle and resuming execution of the application program in a next task cycle, wherein the preset time is a set division time allocated from a start of execution of the application program to interruption in the task cycle and the task cycle is a control cycle in which the application program is periodically executed from beginning to end; and wherein the first command comprises: a command to save an execution state at a moment when the preset time elapses from the start of execution of the application program; and a command to restore the saved execution state in a subsequent task cycle, and wherein the first command further comprises a command for setting an interrupt timer so as to generate an interrupt event when the preset time elapses from the start of execution of the application program within the task cycle. 14. A non-transitory computer readable medium storing a program that causes a computer to generate an application program comprised in a task to be periodically executed every fixed task cycle, the program causing the computer to execute: receiving input of a source code of the application program; and generating an execution module of the application program by adding, to the source code of the application program, a first command for interrupting the application program after executing the application program for a preset time within a task cycle and resuming execution of the application program in a next task cycle, wherein the preset time is a set division time allocated from a start of execution of the application program to interruption in the task cycle and the task cycle is a control cycle in which the application program is periodically executed from beginning to end; and wherein the first command comprises: a command to save an execution state at a moment when the preset time elapses from the start of execution of the application program; and a command to restore the saved execution state in a subsequent task cycle, and wherein the first command further comprises a command for setting an interrupt timer so as to generate an interrupt event when the preset time elapses from the start of execution of the application program within the task cycle.
Related publications grouped by family.
Answers are generated from the same data shown on this page.