JPS61120225A - Task starting method of electronic computer system - Google Patents

Task starting method of electronic computer system

Info

Publication number
JPS61120225A
JPS61120225A JP59240731A JP24073184A JPS61120225A JP S61120225 A JPS61120225 A JP S61120225A JP 59240731 A JP59240731 A JP 59240731A JP 24073184 A JP24073184 A JP 24073184A JP S61120225 A JPS61120225 A JP S61120225A
Authority
JP
Japan
Prior art keywords
task
initialization
work area
resident
control
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
JP59240731A
Other languages
Japanese (ja)
Inventor
Toshiaki Higashihara
東原 敏昭
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP59240731A priority Critical patent/JPS61120225A/en
Publication of JPS61120225A publication Critical patent/JPS61120225A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To identify easily a part set by a task from an unset part by using previously an initialization pattern set to initialize the work area of the corresponding task when the task initialization is started. CONSTITUTION:Whether a resident or non-resident task is discriminated by an ID to a task control table through the task start processing having a work area initializing function when the task initialization is started. In case of a non-resident task, a program is read onto a main memory from an auxiliary memory with reference to a UNO, an SADDR, etc. A state flag is decided during execution of a task to discriminate the initial start from the restart of the task. Then the contents of a register under an interruption state are recovered in a restart mode to reset the control to the task. While a flag showing the propriety for initialization of a work area initialization table is decided in an initialization start mode. The head address of the work area is calculated when the initialization is needed for setting an initialization pattern PATN for work area capacity. Then the control is shifted to the task.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、電子計算機システムに於けるタスク起動方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a task activation method in an electronic computer system.

〔発明の背景〕[Background of the invention]

従来のタスク起動方式では、タスク初期起動時、ワーク
エリアの初期化を行なっていない。
In the conventional task starting method, the work area is not initialized when the task is initially started.

タスクには、そのタスクのプログラムが、常時主記憶上
に存在する常駐タスクと、タスク初期起動時、補助記憶
装置内に格納されたプログラムを、主記憶上に読み込む
非常駐タスクがある。
There are two types of tasks: resident tasks, whose program always resides in the main memory, and non-resident tasks, which read the program stored in the auxiliary storage device into the main memory when the task is initially activated.

補助記憶装置内のプログラムは、命令部(グロシジャ部
)と初期値データをもっており、タスクのワークエリア
(作業用エリア)は、タスク起動時、主記憶上に、その
容量分のエリアが、確保されるのみで、内容は不定であ
る。
The program in the auxiliary storage device has an instruction part (glossy part) and initial value data, and the task work area (work area) is secured in the main memory when the task starts. The content is unspecified.

タスク起動時点のワーク内容は、常駐タスクの場合は、
前回動作終了時点のワーク内容であり、非常駐タスクの
場合は、前回、その主記憶上で、動作したタスクの残骸
データである。
If the task is a resident task, the work content at the time of task startup is as follows:
This is the work content at the end of the previous operation, and in the case of a non-resident task, it is the residual data of the task that was operated last time on its main memory.

このように、タスク起動時に、そのタスクのワークエリ
アを初期化しない方式では、プログラムデバッグで、タ
スクワークデータの解析を行なう場合、そのタスクによ
って設定されたデータであるか、主記憶上の残骸データ
であるかどうかの識別が難しいという欠点がある。
In this way, when a task's work area is not initialized when the task is started, when analyzing task work data during program debugging, it is necessary to use data set by the task or residual data in main memory. The disadvantage is that it is difficult to identify whether

(新版 情報処理ハンドブック 発行所オーム社昭和5
5年3月30日第1版第1刷発行、132頁) 〔発明の目的〕 本発明の目的は、タスクのワークエリアを、そのタスク
が設定し九部分と未設定の部分とに、容易に識別する方
法を提供することにある。
(New Edition Information Processing Handbook Publisher: Ohmsha 1933)
(Published on March 30, 2015, 1st edition, p. 132) [Object of the Invention] An object of the present invention is to easily divide the work area of a task into a portion set by the task and a portion not set. The objective is to provide a method of identification.

〔発明の概要〕[Summary of the invention]

本発明は、タスク初期起動時に、該当タスクのワークエ
リアを、あらかじめ設定されている初期化パターンで、
初期化することにより、そのタスクによシ設定された部
分と未設定部を容易に識別できるようにしたものである
According to the present invention, when a task is initially started, the work area of the corresponding task is set in a preset initialization pattern.
By initializing it, it is possible to easily identify the portions set by the task and the portions not set.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例を、第1図から第4図により説
明する。
Hereinafter, one embodiment of the present invention will be described with reference to FIGS. 1 to 4.

第4図は、タスク構造を示す。タスクのワークエリア長
記憶部WLとプログラム部C8ECTと固定データ部F
XDと、タスク中断時のレジスタ情報の保存部08WK
とタスクワークエリアWKよシ構成されている。
FIG. 4 shows the task structure. Task work area length memory section WL, program section C8ECT, and fixed data section F
XD and register information storage section 08WK when a task is interrupted
It is composed of a task work area WK.

第3図は、タスク制御テーブルの構造を示す。FIG. 3 shows the structure of the task control table.

タスクの実行禁止フラグD1一時停止状態フラグW1実
行中状態フラグR1起動要求フラグQの状態フラグがあ
る。
There is a task execution prohibition flag D1 a temporary stop state flag W1 an execution state flag R1 a start request flag Q state flags.

また、常駐タスクと非常駐タスクを識別する7ラグID
、タスクが配置される主記憶上の先頭アドレス記憶部L
P、タスク先頭からワークエリア先頭までの相対アドレ
ス記憶部WTP、非常駐タスクの場合、該当プログラム
が格納されている補助記憶装置のユニット番号記憶部U
NO1補助記憶装置内アドレス記憶部5ADDRより構
成されている。
In addition, there is a 7-lag ID that identifies resident tasks and non-resident tasks.
, the start address storage part L on the main memory where tasks are placed
P, Relative address storage unit WTP from the beginning of the task to the beginning of the work area, In the case of a non-resident task, unit number storage unit U of the auxiliary storage device in which the relevant program is stored.
It is composed of an address storage section 5ADDR in the NO1 auxiliary storage device.

第2図は、タスクワークエリア初期化用テーブルであシ
、主記憶上に配置する。本テーブルは、タスク初期起動
時、そのタスクのワークエリアを初期化するか否かを決
定するワークエリア初期化実行要否フラグEと、初期化
パターンPATNによシ構成される。
FIG. 2 shows a task work area initialization table, which is placed on the main memory. This table is composed of a work area initialization execution necessity flag E, which determines whether or not to initialize the work area of a task when the task is initially activated, and an initialization pattern PATN.

第1図は、本発明のタスク初期起動時のワークエリア初
期化機能をもつタスク起動処理プログラムのフローチャ
ートt−示す。
FIG. 1 shows a flowchart of a task activation processing program having a work area initialization function at the initial activation of a task according to the present invention.

タスク制御テーブル301のIDにより、常駐タスクか
非常駐タスクを判別する(201 )。非常駐タスクの
場合は、301のUNO,5ADDR。
Based on the ID in the task control table 301, it is determined whether the task is a resident task or a non-resident task (201). For non-resident tasks, 301 UNO, 5ADDR.

LPt−参照して、補助記憶装置から主記憶上に、プロ
グラムを読み込む。(202) 301のタスク実行中、状態フラグRe判定し、タスク
が、初期起動(R==0)、再起動(R,=1)かを判
別する。(203) タスクが、再起動の時は、401の08WKより、中断
時のレジスタ内容を回復し、タスクに制御を戻す。(2
08) ・ タスク初期起動時には、タスクワークエリア初期化
用テーブル101の初期化要否フラグEt−判定し、初
期化要(E=1 )、否(E=O)かを判定する。(2
04) タスクワークエリア初期化要の場合には、301のLP
とWTPとを加算し、該当タスクのワークエリア先頭ア
ドレスを算出する。(205)205で求めた、ワーク
エリア先頭アドレスからワークエリア容量分(401の
WLの内容)、101の初期化パターンPA’rNを設
定する(206)、。
LPt-Reference is made to read the program from the auxiliary storage device onto the main memory. (202) During the execution of the task 301, the status flag Re is determined to determine whether the task is initially activated (R==0) or restarted (R,=1). (203) When the task is restarted, the contents of the register at the time of suspension are restored from 08WK of 401, and control is returned to the task. (2
08) When a task is initially activated, the initialization necessity flag Et- of the task work area initialization table 101 is determined to determine whether initialization is necessary (E=1) or not (E=O). (2
04) If task work area initialization is required, LP 301
and WTP are added to calculate the work area start address of the corresponding task. (205) The initialization pattern PA'rN of 101 is set for the work area capacity (contents of WL 401) from the work area start address obtained in 205 (206).

301のタスク実行中状態フラグRt−1とし、タスク
忙制御を渡す。、(207) 〔発明の効果〕 本発明によれば、タスクエリアの内容が、初期化バター
/か、それ以外のデータであるかによって、ワークエリ
アもそのタスクが設定した部分と未設定の部分に、容易
に識別することができる。
The task execution state flag of 301 is set to Rt-1, and task busy control is passed. , (207) [Effect of the Invention] According to the present invention, depending on whether the contents of the task area are initialization butter/data or other data, the work area can also be divided into a part set by the task and a part not set. can be easily identified.

【図面の簡単な説明】[Brief explanation of drawings]

第2図は、タスクワークエリア初期化用テーブル構成図
、第号図は、本発明のタスク起動処理プログラムのフロ
ーチャート、第3図は、タスク制御テーブル図、第4図
は、タスク構造を示す図である。 101・・・タスクワークエリア初期化用テーブル、2
04〜206・・・タスク起動処理プログラムのタスク
ワークエリア初期化部。
Fig. 2 is a diagram showing the configuration of a table for initializing the task work area, Fig. 3 is a flowchart of the task activation processing program of the present invention, Fig. 3 is a diagram of the task control table, and Fig. 4 is a diagram showing the task structure. It is. 101...Task work area initialization table, 2
04-206...Task work area initialization section of the task activation processing program.

Claims (1)

【特許請求の範囲】[Claims] 1、タスクワークエリア初期化実行要否フラグと前記タ
スクワークエリアの初期化パターンをもつテーブルを設
け、タスク初期起動時に、前記テーブルを参照し、初期
化実行要の場合には、前記タスクのワークエリアを、前
記初期化パターンで初期化することを特徴とする電子計
算機システムのタスク起動方法。
1. Provide a table with a task work area initialization execution necessity flag and an initialization pattern of the task work area, and when a task is initially started, refer to the table, and if initialization execution is required, the work of the task is A method for starting a task in a computer system, characterized in that an area is initialized using the initialization pattern.
JP59240731A 1984-11-16 1984-11-16 Task starting method of electronic computer system Pending JPS61120225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59240731A JPS61120225A (en) 1984-11-16 1984-11-16 Task starting method of electronic computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59240731A JPS61120225A (en) 1984-11-16 1984-11-16 Task starting method of electronic computer system

Publications (1)

Publication Number Publication Date
JPS61120225A true JPS61120225A (en) 1986-06-07

Family

ID=17063859

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59240731A Pending JPS61120225A (en) 1984-11-16 1984-11-16 Task starting method of electronic computer system

Country Status (1)

Country Link
JP (1) JPS61120225A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6441034A (en) * 1987-08-06 1989-02-13 Mitsubishi Electric Corp Data processor
JPS6441033A (en) * 1987-08-06 1989-02-13 Mitsubishi Electric Corp Data processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6441034A (en) * 1987-08-06 1989-02-13 Mitsubishi Electric Corp Data processor
JPS6441033A (en) * 1987-08-06 1989-02-13 Mitsubishi Electric Corp Data processor

Similar Documents

Publication Publication Date Title
US5768568A (en) System and method for initializing an information processing system
JP3838840B2 (en) Computer
TW452734B (en) Method and apparatus for configuring and booting disk drives
US20030145191A1 (en) Computer system and method of controlling the same
KR20010086400A (en) Method for making memory management table and memory device
JPS61120225A (en) Task starting method of electronic computer system
JPH08234991A (en) Information processing method and device
JP4597032B2 (en) Computer system, basic program startup method, and loader program
JP3101825B2 (en) Fault diagnosis device for multitasking system
JP3130798B2 (en) Bus transfer device
KR900008402A (en) The processor system most appropriate for the save and restore method and its implementation.
JP2551075B2 (en) Overlay structure program execution method
JPS628831B2 (en)
JPH0540637A (en) Load system for basic input/output ststem
JPH06202861A (en) Automatic application restarting device
JP3330767B2 (en) Information processing apparatus and trace acquisition method in information processing apparatus
JPH06250827A (en) Computer system
JPH09330253A (en) Memory dump method and memory damp system applying the same
JP2000222198A (en) Information processor
JPH0496122A (en) Information processor
JP2664168B2 (en) Starting method of information processing device
JPS61221825A (en) Program executing device
JPH11338690A (en) Flash memory, firmware use system device and firmware rewriting method
JPS6345660A (en) Starting method for personal computer using ram disk
JP2020087021A (en) Information processing device, image forming device and program