Claims
- 1. A data processing system which performs a plurality of processes sequentially, said data processing system comprising:
- program memory means for storing therein a plurality of task programs which correspond to respective tasks;
- execution means for executing one of the tasks based on a corresponding one of the plurality of task programs stored in said program memory means, wherein each of the plurality of processes is performed by executing several of the tasks and some of the tasks are executed commonly in different processes;
- flag storage means for storing first flags each corresponding to respective malfunctions of said data processing system and respective user's operations, second flags each corresponding to respective statuses of performance of the plurality of processes and groups of third flags each of the groups corresponding to respective processes and each of a third flag corresponding to respective statuses of execution of tasks in the plurality of processes;
- flag management means for setting flags in response to an occurrence of respective malfunctions and respective user's operations and at a start of respective tasks, and resetting each of the flags in response to an end of execution of respective tasks;
- first check means for checking the first flags and the second flags in a predetermined order until a set flag is located in response to an end of execution of each task;
- first scheduling means for selecting one of the plurality of processes to be performed next in accordance with a set first flag if one of the first flags is found to be set by said first check means or in accordance with a set second flag if one of the second flags is found to be set by said first check means;
- second check means for checking the third flags of a group corresponding to a process selected by said first scheduling means in a predetermined order until a set flag is located in response to the end of the execution of each task;
- second scheduling means for selecting a task to be executed next among tasks corresponding to the process selected by said first scheduling means in accordance with a third flag found to be set by said second check means; and
- control means for controlling said execution means to execute a task selected by said second scheduling means.
- 2. A data processing system according to claim 1, further comprising relocation means for relocating an input/output address corresponding to the task programs stored in said program memory means when a power is supplied to said data processing system.
- 3. A data processing system according to claim 1, further comprising:
- pulse generation means for generating a pulse which accompanies execution of tasks by said execution means; and
- pulse counting means for counting a number of pulses generated by said pulse generation means, wherein said first and second check means determines the end of execution of each tasks in accordance with the number of pulses counted by said pulse counting means.
- 4. A data processing method for processing data in a system wherein a plurality of processes are sequentially performed, said method comprising the steps of:
- storing a plurality of task programs which correspond to respective tasks in a memory, wherein each of the plurality of processes is performed by executing several of the tasks and some of the tasks are executed commonly in different processes;
- setting first flags each corresponding to respective malfunctions of said system and respective user's operations in response to occurrence of respective malfunctions and user's operations;
- setting second flags each corresponding to respective statuses of performance of the plurality of processes and groups of third flag each groups corresponding to respective processes and each of the third flags corresponding to respective statuses of execution of tasks in the plurality of processes at start of respective tasks;
- resetting each flags in response to end of respective tasks;
- checking the first and the second flags in a predetermined order until a set flag is located in response to an end of execution of each task;
- selecting one of the plurality of processes to be performed next in accordance with a set first flag if one of the first flags is found to be set or in accordance with a set second flag is one of the second flag is found to be set;
- checking the third flags of the group corresponding to a selected process in a predetermined order until a set flag is located in response to the end of execution of each tasks;
- selecting a task to be executed next among tasks corresponding to the selected process in accordance with a third flag found to be set; and
- executing a selected task on the basis of the plurality of task programs.
Priority Claims (2)
Number |
Date |
Country |
Kind |
58-97273 |
May 1983 |
JPX |
|
58-97274 |
May 1983 |
JPX |
|
Parent Case Info
This application is a continuation of application Ser. No. 08/029,297 filed Mar. 8, 1993, abandoned, which is a continuation of application Ser. No. 07/391,719 filed Aug. 7, 1989, abandoned, which is a continuation of Ser. No. 06/615,106 filed May 29, 1984, abandoned.
US Referenced Citations (18)
Foreign Referenced Citations (5)
Number |
Date |
Country |
075632 |
Apr 1983 |
EPX |
2714441 |
Jan 1978 |
DEX |
2803865 |
Aug 1978 |
DEX |
2030331 |
Apr 1980 |
GBX |
1573135 |
Aug 1980 |
GBX |
Continuations (3)
|
Number |
Date |
Country |
Parent |
29297 |
Mar 1993 |
|
Parent |
391719 |
Aug 1989 |
|
Parent |
615106 |
May 1984 |
|