JPH01263733A - Program execution control system - Google Patents

Program execution control system

Info

Publication number
JPH01263733A
JPH01263733A JP9277788A JP9277788A JPH01263733A JP H01263733 A JPH01263733 A JP H01263733A JP 9277788 A JP9277788 A JP 9277788A JP 9277788 A JP9277788 A JP 9277788A JP H01263733 A JPH01263733 A JP H01263733A
Authority
JP
Japan
Prior art keywords
task
program
parallel
execution
activation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9277788A
Other languages
Japanese (ja)
Inventor
Shinji Yoshihara
吉原 信二
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP9277788A priority Critical patent/JPH01263733A/en
Publication of JPH01263733A publication Critical patent/JPH01263733A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To cancel the overhead of a task preparing erasing at the time of execution and to improve a processing efficiency by executing the execution control of a multitask construction program only with the information between respective means and the entry of an empty task control table in a multitask program construction. CONSTITUTION:A program library part 9 stores a parallel execution program executed in parallel beforehand. A task activation request means 4 designates a parallel execution program 10, for example, by designating the name and informs a task execution control part 7. The task execution control part 7, after it is confirmed by an empty task control table 8 that the empty task is present, informs a purpose program executing means 6 of this. The information is received, the designated parallel execution program is executed as a dynamic link from a program library part and after the execution, the effect is written to the empty task control table 8.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置分野に利用される。[Detailed description of the invention] [Industrial application field] INDUSTRIAL APPLICABILITY The present invention is utilized in the field of information processing equipment.

本発明はマルチタスク構造プログラムのプログラム実行
制御方式に関する。
The present invention relates to a program execution control system for multi-task structured programs.

〔概要〕〔overview〕

本発明は、複数のプログラムを1本のマルチタスク構造
プログラムとして並列に実行するプログラム実行制御方
式において、 並列に実行される並列実行プログラムをあらかじめ格納
しておき、所定の手順によりこの格納された前記並列実
行プログラムに動的リンクしてその並列タスクを実行さ
せ、その実行管理を行うことにより、 処理の効率化を図ったものである。
The present invention provides a program execution control method for executing a plurality of programs in parallel as one multitask structure program, in which parallel execution programs to be executed in parallel are stored in advance, and the stored programs are processed according to a predetermined procedure. It aims to improve processing efficiency by dynamically linking to a parallel execution program, executing the parallel task, and managing its execution.

〔従来の技術〕[Conventional technology]

従来、マルチタスク構造プログラムにおいて並列にプロ
グラムを実行するときは、起動するときに新しくタスク
を生成して、そのプログラムが終了したときに消去して
いた。
Conventionally, when executing a multi-task structure program in parallel, a new task is generated when the program is started and deleted when the program is terminated.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

前述した従来のプログラム実行制御方式におけるタスク
管理方法では、並列にプログラムを実行する度にタスク
が生成および消去が行われるので、頻繁にプログラムを
並列に実行する場合には、タスク生成消去時間がオーバ
ーヘッドとなり、処理効率が低下する欠点があった。
In the task management method in the conventional program execution control method described above, tasks are created and deleted each time a program is executed in parallel. Therefore, when programs are frequently executed in parallel, task creation and deletion time is an overhead. Therefore, there was a drawback that processing efficiency decreased.

本発明の目的は、前記の欠点を除去することにより、実
行時のタスク生成消去時間を削減し、処理効率を向上で
きるプログラム実行制御方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a program execution control method that can reduce task creation/deletion time during execution and improve processing efficiency by eliminating the above-mentioned drawbacks.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、複数のプログラムを1本のマルチタスク構造
プログラムして並列に実行する手段を備えたプログラム
実行制御方式において、前記手段には、通常に実行され
る通常実行プログラムおよびその通常タスクが格納され
た通常タスク部と、並列に実行される並列実行プログラ
ムがあらかじめ格納されたプログラムライブラリ部と、
前記並列実行プログラムによる並列タスクが格納された
並列タスク部と、前記並列タスクの起動を管理する空タ
スク管理表を有し前記並列タスクの起動を制御するタス
ク起動制御手段とを設け、前記通常タスク部は、特定の
前記並列実行プログラムを指定してそのプログラムを実
行する前記並列タスクの起動要求を前記タスク起動手段
へ通知するタスク起動要求手段を含み、前記並列タスク
部は、前記タスク起動制御部から通知された前記並列実
行プログラムを前記プログラムライブラリ部から動的リ
ンクして実行し実行終了後その旨を前記空タスク管理表
に書き込む目的プログラム実行手段を含むことを特徴と
する。
The present invention provides a program execution control method comprising a means for executing a plurality of programs in parallel as one multi-task structure program, wherein the means stores a normal execution program to be normally executed and its normal tasks. a normal task part that has been executed, a program library part that stores in advance parallel execution programs to be executed in parallel,
A parallel task unit storing parallel tasks executed by the parallel execution program; and task activation control means having an empty task management table for managing activation of the parallel tasks and controlling activation of the parallel tasks; The unit includes a task activation request unit that notifies the task activation unit of a request to activate the parallel task that specifies the specific parallel execution program and executes the program, and the parallel task unit is configured to control the task activation control unit. The target program execution means dynamically links and executes the parallel execution program notified from the program library section, and writes a notification to that effect in the empty task management table after the execution is completed.

〔作用〕[Effect]

プログラムライブラリ部は、並列に実行される並列実行
プログラムをあらかじめ格納する。タスク起動要求手段
は、前記並列実行プログラムを例えばその名前を指定す
ることで指定してタスク実行制御部へ通知する。タスク
実行制御部は、空タスクがあることを空タスク管理表に
より確かめた後で、これを目的プログラム実行手段へ通
知する。
The program library section stores in advance parallel execution programs to be executed in parallel. The task activation request means specifies the parallel execution program, for example, by specifying its name, and notifies the task execution control section. After confirming that there is an empty task using the empty task management table, the task execution control unit notifies the target program execution means of this fact.

目的プログラム実行手段は、この通知を受は指定された
前記並列実行プログラムを前記プログラムライブラリ部
から動的リンクとして実行し、実行終了後その旨を空タ
スク管理表に書き込む。
Upon receiving this notification, the target program execution means executes the designated parallel execution program as a dynamic link from the program library section, and writes a notification to that effect in the empty task management table after the execution is completed.

従って、並列タスクの実行は、各手段間の通知および空
タスク管理表への書き込みにより自動的に行われ、従来
のように並列実行プログラムの生成および消去を行う必
要がなく、処理効率を向上させることが可能となる。
Therefore, execution of parallel tasks is automatically performed by notification between each means and writing to the empty task management table, and there is no need to create and delete parallel execution programs as in the past, improving processing efficiency. becomes possible.

〔実施例〕〔Example〕

以下、本発明の実施例について図面を参照して説明する
Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例を示すブロック構成図である
FIG. 1 is a block diagram showing one embodiment of the present invention.

本実施例は、複数のプログラムを1本のマルチタスク構
造プログラムして並列に実行する手段を備えたプログラ
ム実行制御方式において、通常に実行される通常実行プ
ログラム3およびその通常タスクが格納された通常タス
ク部2と、並列に実行される並列実行プログラムlOが
あらかじめ格納されたプログラムライブラリ部9と、並
列実行プログラム10による並列タスクが格納された並
列タスク部5と、並列タスクの実行を管理する空タスク
管理表8を有し前記並列タスクの起動を制御するタスク
起動制御手段7を備え、通常タスク部2は、特定の並列
実行プログラム10を指定してそのプログラムを実行す
る前記並列タスクの起動要求をタスク起動制御手段7へ
通知するタスク起動要求手段4を含み、並列タスク部5
は、タスク起動制御手段7から通知された並列実行プロ
グラム10をプログラムライブラリ部9から動的すンク
して実行し実行終了後その旨を空タスク管理表8へ通知
する目的プログラム実行手段6を含んでいる。なお、1
はマルチタスク構造プログラムが格納されたマルチタス
ク構造プログラム部である。
This embodiment is a program execution control method that is equipped with a means for executing a plurality of programs in one multitask structured program in parallel. A task part 2, a program library part 9 in which a parallel execution program 1O to be executed in parallel is stored in advance, a parallel task part 5 in which parallel tasks by a parallel execution program 10 are stored, and a space for managing the execution of parallel tasks. The normal task unit 2 includes a task activation control means 7 having a task management table 8 and controlling activation of the parallel task, and the normal task unit 2 specifies a specific parallel execution program 10 and requests activation of the parallel task to execute the program. The parallel task unit 5 includes a task activation request unit 4 that notifies the task activation control unit 7 of the task activation control unit 7.
includes a target program execution means 6 that dynamically downloads and executes the parallel execution program 10 notified from the task start control means 7 from the program library section 9, and notifies the empty task management table 8 of the fact after the execution is completed. I'm here. In addition, 1
is a multitask structure program section in which a multitask structure program is stored.

本発明の特徴は、タスク起動要求手段4を含む通常タス
ク部2、目的プログラム実行手段6を含む並列タスク部
5、空タスク管理表8を含むタスク起動制御手段7、お
よび並列実行プログラム10が格納されたプログラムラ
イブラリ部9を設けたことにある。
The present invention is characterized in that a normal task part 2 including a task start requesting means 4, a parallel task part 5 including a target program execution means 6, a task start control means 7 including an empty task management table 8, and a parallel execution program 10 are stored. The reason is that a program library section 9 is provided.

次に、本実施例の動作について、第2図、第3図および
第4図に示す流れ図を参照して説明する。
Next, the operation of this embodiment will be explained with reference to the flowcharts shown in FIGS. 2, 3, and 4.

タスク起動要求手段4は、第2図の流れ図で示すように
、実行しようとする通常実行プログラム3の名前をタス
ク起動制御手段7への通信エリアにセットして(ステッ
プS1)、タスク起動制御手段7を呼び出す(ステップ
S2>。
As shown in the flowchart of FIG. 2, the task activation requesting means 4 sets the name of the normal execution program 3 to be executed in the communication area to the task activation control means 7 (step S1), and then sends the name of the normal execution program 3 to the task activation control means 7 (step S1). 7 (step S2>).

さらに、タスク起動制御手段7は、第3図の流れ図で示
すように、空タスク管理表8から一つ空タスクを取得し
て(ステップ5ll)、そのタスクが使用中になったこ
とを空タスク管理表8に記入しくステップ512) 、
タスク起動要求手段4からの通信エリアから実行する通
常実行プログラム30名前を取得しくステップ313)
 、その名前を目的プログラム実行手段6への通信エリ
アにセットして(ステップ514)、取得したタスクの
中の目的プログラム実行手段6を起動する(ステップ5
15)。
Furthermore, as shown in the flowchart of FIG. 3, the task activation control means 7 acquires one empty task from the empty task management table 8 (step 5ll), and informs the empty task that the task is in use. Fill in the management table 8 (step 512),
Step 313) To obtain the name of the normal execution program 30 to be executed from the communication area from the task start requesting means 4.
, sets the name in the communication area for the target program execution means 6 (step 514), and starts the target program execution means 6 in the acquired task (step 5).
15).

最後に、目的プログラム実行手段6は、第4図の流れ図
で示すように、タスク起動制御手段7からの通信エリア
から並列に実行する並列実行プログラム10の名前を取
得しくステップ521) 、その名前の並列実行プログ
ラム10をプログラムライブラリ部9に格納されたプロ
グラムライブラリから動的リンクして(ステップ522
) 、実行しくステップ523)、実行が終了したら、
そのタスクが空いたことを空タスク管理表8に記入する
(ステップ524)。
Finally, as shown in the flowchart of FIG. 4, the target program execution means 6 acquires the name of the parallel execution program 10 to be executed in parallel from the communication area from the task start control means 7 (Step 521), and selects the name of the parallel execution program 10. The parallel execution program 10 is dynamically linked from the program library stored in the program library section 9 (step 522).
), execute step 523), and when the execution is finished,
The fact that the task is vacant is entered in the vacant task management table 8 (step 524).

なお、前述の実施例においては、並列実行プログラムの
指定にその名前を用いたけれども、これはプログラム番
号などのコードでもよい。
In the above-described embodiment, the name was used to specify the parallel execution program, but this may also be a code such as a program number.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、各手段間の通知と空タス
ク管理表の記入だけでマルチタスク構造プログラム、の
実行制御を行うことにより、実行時のタスク生成消去の
オーバーヘッドを解消し、処理効率を向上できる効果が
ある。
As explained above, the present invention eliminates the overhead of creating and deleting tasks during execution by controlling the execution of a multi-task structure program simply by notifying each means and filling out an empty task management table, thereby improving processing efficiency. It has the effect of improving

【図面の簡単な説明】 第1図は本発明の一実施例を示すブロック構成図。 第2図はそのタスク起動要求手段の流れ図。 第3図はそのタスク起動制御手段の流れ図。 第4図はその目的プログラム実行手段の流れ図。 1・・・マルチタスク構造プログラム部、2・・・通常
タスク部、3・・・通常実行プログラム、4・・・タス
ク起動要求手段、5・・・並列タスク部、6・・・目的
プログラム実行手段、7・・・タスク起動制御手段、8
・・・空タスク管理表、9・・・プログラムライブラリ
部、10・・・並列実行プログラム、S1〜S2.51
1〜S15.521〜S24・・・ステップ。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a flowchart of the task activation requesting means. FIG. 3 is a flowchart of the task activation control means. FIG. 4 is a flowchart of the target program execution means. DESCRIPTION OF SYMBOLS 1... Multitask structure program part, 2... Normal task part, 3... Normal execution program, 4... Task start request means, 5... Parallel task part, 6... Target program execution Means, 7...Task activation control means, 8
...Empty task management table, 9.Program library section, 10.Parallel execution program, S1 to S2.51
1-S15.521-S24...step.

Claims (1)

【特許請求の範囲】 1、複数のプログラムを1本のマルチタスク構造プログ
ラムして並列に実行する手段を備えたプログラム実行制
御方式において、 前記手段には、通常に実行される通常実行プログラム(
3)およびその通常タスクが格納された通常タスク部(
2)と、並列に実行される並列実行プログラム(10)
があらかじめ格納されたプログラムライブラリ部(9)
と、前記並列実行プログラムによる並列タスクが格納さ
れた並列タスク部(5)と、前記並列タスクの起動を管
理する空タスク管理表(8)を有し前記並列タスクの起
動を制御するタスク起動制御手段(7)とを設け、前記
通常タスク部は、特定の前記並列実行プログラムを指定
してそのプログラムを実行する前記並列タスクの起動要
求を前記タスク起動手段へ通知するタスク起動要求手段
(4)を含み、 前記並列タスク部は、前記タスク起動制御部から通知さ
れた前記並列実行プログラムを前記プログラムライブラ
リ部から動的リンクして実行し実行終了後その旨を前記
空タスク管理表に書き込む目的プログラム実行手段(6
)を含む ことを特徴とするプログラム実行制御方式。
[Scope of Claims] 1. A program execution control method comprising means for executing a plurality of programs in parallel as one multi-task structured program, the means comprising: a normally executed program (
3) and the normal task section (where the normal task is stored)
2) and a parallel execution program (10) that is executed in parallel
Program library section (9) pre-stored with
and a task activation control unit comprising a parallel task unit (5) storing parallel tasks by the parallel execution program, and an empty task management table (8) for managing activation of the parallel tasks, and controlling activation of the parallel tasks. means (7), wherein the normal task unit specifies a particular parallel execution program and notifies the task activation means of a request for activation of the parallel task for executing the program; task activation request means (4); The parallel task unit is a target program that dynamically links and executes the parallel execution program notified from the task activation control unit from the program library unit, and writes a notification to that effect in the empty task management table after the execution is completed. Execution means (6
) A program execution control method characterized by comprising:
JP9277788A 1988-04-14 1988-04-14 Program execution control system Pending JPH01263733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9277788A JPH01263733A (en) 1988-04-14 1988-04-14 Program execution control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9277788A JPH01263733A (en) 1988-04-14 1988-04-14 Program execution control system

Publications (1)

Publication Number Publication Date
JPH01263733A true JPH01263733A (en) 1989-10-20

Family

ID=14063853

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9277788A Pending JPH01263733A (en) 1988-04-14 1988-04-14 Program execution control system

Country Status (1)

Country Link
JP (1) JPH01263733A (en)

Similar Documents

Publication Publication Date Title
JPH01263733A (en) Program execution control system
JPH0559456B2 (en)
JPH0863205A (en) Programmable controller
JPS583177A (en) Data processing system
JPS6351288B2 (en)
JPH0679283B2 (en) Interruption processing control method
JPS60156144A (en) Optimum distributed controlling system of load of periodic processing
JPS63201756A (en) File replacing method for on-line system
JPH06187134A (en) Load module updating method
JP2571260B2 (en) Operating environment selection processing method using logic clock
JPH0833831B2 (en) Occupation management method for shared resources
JP2663600B2 (en) Control table relocation processing method
JPH01252346A (en) Control device for numerical control machine tool
JPH01121932A (en) Program loading system
JPS62194559A (en) Memory scheduling system of program in virtual storage system
JPH064317A (en) Parallel processing method
JP2000285031A (en) Method and device for automatically duplicating computer file
JPH05233332A (en) Schedule correcting system
JPS63156255A (en) Overlaying method by interpreter
JPS62135951A (en) Network system
JPH01185729A (en) Overlay structure program execution system
JPH04178740A (en) Task scheduling system
JPH03231333A (en) Program producing device and controller
JPH0282312A (en) Disk management device
JPS63273138A (en) Overlay system for multi-task