JPH0328935A - Process execution control system - Google Patents

Process execution control system

Info

Publication number
JPH0328935A
JPH0328935A JP16447289A JP16447289A JPH0328935A JP H0328935 A JPH0328935 A JP H0328935A JP 16447289 A JP16447289 A JP 16447289A JP 16447289 A JP16447289 A JP 16447289A JP H0328935 A JPH0328935 A JP H0328935A
Authority
JP
Japan
Prior art keywords
task
processing
control
state
level
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.)
Granted
Application number
JP16447289A
Other languages
Japanese (ja)
Other versions
JP2504833B2 (en
Inventor
Fumio Aono
青野 文雄
Takashi Suzuki
孝 鈴木
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
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP16447289A priority Critical patent/JP2504833B2/en
Publication of JPH0328935A publication Critical patent/JPH0328935A/en
Application granted granted Critical
Publication of JP2504833B2 publication Critical patent/JP2504833B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To prevent such a case where the process carried out by a higher rank process task is invalidated by a lower rank process task by discontinuing the process of a 1st task with the end of the process of 2nd task when the 1st task executing a process interrupts the process due to the execution of the 2nd task of a higher level. CONSTITUTION:A task control part 1 which controls the task of a process program consists of a task state control part 10 which performs the overall control of a task, a task state changing part 11 which changes the task state with an instruction of the part 10, an inter-task communication control part 12 which controls and executes the inter-task communication, and a task control request accepting part 13 which accepts the request given to the produced process for the task control. Then the process of a 1st task 2 is discontinued with the end of the process of a 2nd task 3 if the process carried out by the task 2 is interrupted owing to the execution of the task 3 having a higher level than the task 2. Thus, justice of the task operation is secured.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報処理装置の状態を管理し情報処理装置に
対して様々な操作を行なう複数の動作レベルを持つRA
Sプロセッサの処理プログラムの制御方式に関し、特に
動作レベルが異なるタスク間の制御を可能とすることに
よりタスクの動作を正常に行う処理実行管理方式に関す
る.〔従来の技術〕 従来、複数のレベルを持つプロセッサにおいて低いレベ
ルで実行中のタスクが情報処理装置からの割り込みなど
により高位のレベルでの実行が必要な処理タスクが発生
した場合低位のタスクは待状態に戻らず高位レベルのタ
スクが終了するまで待たされ、高位のレベルの処理タス
クが実行を終了した時点で処理を再開していた. 〔発明が解決しようとする課題〕 これにより、低位の処理タスクと高位の処理タスクが同
一の情報処理装厘を取り扱うタスクであるならば高位の
タスクにより実施された処理が低位の処理タスクにより
無効化されるという問題があった. 本発明の目的は、低位の処理タスクにより高位の処理タ
スクが実施した処理が無効化される事が無い様にタスク
自体での処理の管理を行うことにより上記問題を解決す
ることにある. 〔課題を解決するための手段〕 本発明によれば、複数の情報処理装置と前記情報処理装
置の状態を管理する複数の処理レベルを持ち処理すべき
内容により処理の動作レベルを変更するRASプロセッ
サの処理実行管理方式において、処理実行中の第1のタ
スクが高位レベルの第2のタスクの実行にともない処理
を中断していた場合、前記第1のタスクの処理終了にと
もない前記第2のタスクの処理を中止することを特徴と
する処理実行管理方式が得られる. 〔実施例〕 本発明を図面を参照して説明する. 第1図は本発明を実現する装置の一実施例を示すブロッ
ク図である。1はRASプロセッサで動作する処理プロ
グラムのタスクを制御するタスク制御部であり、タスク
全体の管理を行うタスク状態管理部10、タスク状態管
理部からの指示によりタスクの状態を変更するタスク状
態変更部11、タスク間の通信を制御、実施するタスク
間通信制御部12、発生した処理に対してタスク制御を
要求する場合などの要求を受け付けるタスク制御要求受
付部13とからなる.2は情報処理装置に対して発生す
る処理タスクAであり、3は同一の情報処理装置に対し
て発生する処理タスクBである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an RA having multiple operation levels that manages the state of an information processing device and performs various operations on the information processing device.
This paper relates to a control method for a processing program of an S processor, and in particular to a processing execution management method that allows tasks to operate normally by enabling control between tasks with different operation levels. [Prior Art] Conventionally, in a processor with multiple levels, when a task being executed at a lower level is interrupted by an information processing device, etc., and a processing task that needs to be executed at a higher level occurs, the lower task is placed in a wait state. The system did not return to the state and was forced to wait until the higher-level task finished, and then resumed processing when the higher-level processing task finished executing. [Problem to be solved by the invention] As a result, if a low-level processing task and a high-level processing task are tasks that handle the same information processing equipment, the processing performed by the high-level task is invalidated by the low-level processing task. There was a problem that it became digitized. An object of the present invention is to solve the above problem by managing the processing within the task itself so that the processing performed by a higher-level processing task is not invalidated by a lower-level processing task. [Means for Solving the Problems] According to the present invention, there is provided a RAS processor that has a plurality of information processing devices and a plurality of processing levels that manage the states of the information processing devices, and that changes the processing operation level depending on the content to be processed. In the process execution management method, if the first task currently executing the process has been interrupted due to the execution of the second task at a higher level, the second task A process execution management method is obtained that is characterized by canceling the process. [Example] The present invention will be explained with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of an apparatus for realizing the present invention. Reference numeral 1 denotes a task control unit that controls tasks of a processing program running on the RAS processor, a task state management unit 10 that manages the entire task, and a task state change unit that changes the state of a task according to instructions from the task state management unit. 11, an inter-task communication control unit 12 that controls and implements communication between tasks, and a task control request reception unit 13 that accepts requests such as requesting task control for processing that has occurred. 2 is a processing task A that occurs to the information processing device, and 3 is a processing task B that occurs to the same information processing device.

第2図(A).(B),(C>は本発明の動作を説明す
るフローチャートである。例えば、RASプロセッサは
、8レベルの処理レベルを有しているとする.レベルは
O〜7が有るものとし、レベルOが最高位の処理レベル
、レベル7が最低位の処理レベルとする.いま、情報処
理装置に対して処理を実行する処理プログラム(以下タ
スクとする)Aが処理100により発生したとする。本
タスクAは第5レベルの処理であるとする。処理タスク
Aはタスク制御部1に対してタスクの登録要求を行う。
Figure 2 (A). (B) and (C> are flowcharts explaining the operation of the present invention. For example, it is assumed that the RAS processor has eight processing levels. There are levels O to 7, and level O It is assumed that level 7 is the highest processing level and level 7 is the lowest processing level.Now, assume that a processing program (hereinafter referred to as a task) A that executes processing on an information processing device is generated by process 100.This task It is assumed that A is a fifth level process.Processing task A requests the task control unit 1 to register a task.

タスク制御部1のタスク制御要求受付部13が処理10
1により要求の正当性を確かめタスク状態管理部10に
対してタスク登録要求を発行する。タスク状態管理部1
0は処理102により要求の内容を識別してタスク状態
変更部11に対して新規タスクの登録を指示する。タス
ク状態変更部11では、処理103により要求のあった
処理に対するタスクの登録を行い、タスク状態管理部I
Oに制御を戻す.タスク状態変更部11はこの時に要求
のあったタスクがどの処理装置を管理するものであるか
を識別して図示されていない内部のタスク制御テーブル
に処理装置の登録も一緒に行う。すると、タスク状態管
理部10は、処理104により要求元のタスクAに対し
て実行を指示する.そして、タスクAは処理105によ
り処理を開始する.登録が完了するとタスク制御部1は
処理タスクAに対して処理終了を通知し、処理タスクA
が動作を開始する. この時にタスクAの制御対象である情報処理装置からタ
スクAよりも優先して実施しなければならないタスクB
の起動を促すものが割り込みなどにより通知があった場
合、処理106により現在タスクAが実行中の第5レベ
ルよりも優先度の高い第2レベルでの処理を実施する。
The task control request reception unit 13 of the task control unit 1 performs processing 10.
1, the validity of the request is confirmed and a task registration request is issued to the task state management unit 10. Task status management section 1
0 identifies the content of the request in process 102 and instructs the task state change unit 11 to register a new task. The task state change unit 11 registers the task for the requested process in step 103, and then registers the task in the task state management unit I.
Return control to O. At this time, the task state change unit 11 identifies which processing device the requested task is to manage, and also registers the processing device in an internal task control table (not shown). Then, the task state management unit 10 instructs the requesting task A to execute in process 104. Then, task A starts processing in process 105. When the registration is completed, the task control unit 1 notifies the processing task A of the completion of processing, and the processing task A
starts working. At this time, task B must be executed with priority over task A from the information processing device that is the control target of task A.
If there is a notification due to an interrupt or the like that prompts the activation of task A, processing at the second level, which has a higher priority than the fifth level at which task A is currently being executed, is executed in step 106.

この場合、処理106によりタスクAは第5レベルの処
理であるためタスク制御を受けられず、見かけ上は実行
が一時停止した形となる。
In this case, task A is not subject to task control due to processing 106 because it is a fifth-level process, and execution appears to have been temporarily stopped.

タスクBは、タスクAと同様にタスク制御部に対してタ
スクの登録処理を行い、処理を開始する。
Task B, like task A, performs task registration processing with the task control unit and starts processing.

この処理の中で情報処理装置の制御をすべて中断させな
ければならない状態が発生したとすると処理108によ
りタスク制御部1に対して対象の情報処理装置に対する
制御中止要求を依頼する。
If a situation occurs during this process in which all control of the information processing apparatus must be interrupted, a request is made to the task control unit 1 to suspend control of the target information processing apparatus in process 108.

タスク制御要求受付部13は処理109により要求の正
当性を確認しタスク状態制御部10に対して通知する。
The task control request reception unit 13 confirms the validity of the request in step 109 and notifies the task state control unit 10 of the validity of the request.

通知を受けたタスク状態制御部10は処理110により
タスク状態変更部11に対して要求に該当するタスクの
状態を中断状態に変更するように依頼する。タスク状態
変更部l1は処理111により該当するタスクを要求の
状態に変更しタスク状態管理部10に制御を戻す.タス
ク状態管理部10は、処理112によりタスク間通信制
御部12に対して通信データのセット要求を発行する。
The task state control unit 10 that has received the notification requests the task state change unit 11 to change the state of the task corresponding to the request to a suspended state through process 110. The task state change unit l1 changes the corresponding task to the requested state through process 111 and returns control to the task state management unit 10. The task state management unit 10 issues a communication data set request to the intertask communication control unit 12 in process 112.

タスク間通信制御部13は要求を受けて処理113によ
り通信データを該当タスクにセットする。
Upon receiving the request, the inter-task communication control unit 13 sets the communication data to the corresponding task through process 113.

本処理がすべて終了するとタスクBに制御を返しタスク
Bは、処理114により処理を完了するとタスクの削除
をタスク制御部lに依頼し自らの処理を終了する. ここで、第2レベルの処理が無くなったために中断状態
であった第5レベルの処理が処理115により再び動き
出す.そして、再びタスクの状態変更要求をタスク制御
部1に依頼するとタスク制御要求受付部13は処理11
6により要求の正当性を再び確認し、タスク状態管理部
10に対して制御を渡す.タスク状態管理部10の処理
117によりタスクAに対して中断指示が有るのを検出
して処理をタスクAの処理を消去させる手続きを取り、
タスクAに対して中止指示を発行する.タスクAでは、
処理118により中止指示があったことを認識して処理
を中止させる.このように、タスク間での制御通信を可
能とすることにより動作レベルが違った場合でも処理を
タスク間での処理のやり取りが実施でき情報処理装置の
状態などを保有するテーブルの更新矛盾を防ぐことが出
来る. 〔発明の効果〕 以上説明したように本発明は、同一情報処理装置の処理
を行う別々処理タスクが動作レベルを変えて動作してい
てもその処理を中止させるな゛どの事が可能となりタス
クの動作の正当性を保証できる。
When all of this processing is completed, control is returned to task B. When task B completes the processing in step 114, it requests the task control unit l to delete the task and ends its own processing. Here, the fifth level processing, which has been suspended due to the lack of second level processing, is started again by processing 115. Then, when the task control unit 1 is again requested to change the state of the task, the task control request receiving unit 13 performs processing 11.
6, the validity of the request is confirmed again and control is passed to the task state management unit 10. A process 117 of the task state management unit 10 detects that there is an instruction to interrupt task A, and takes a procedure to erase the process of task A.
Issue an abort instruction to task A. In task A,
The process 118 recognizes that there is an instruction to cancel and cancels the process. In this way, by enabling control communication between tasks, processing can be exchanged between tasks even if the operating levels are different, and conflicts in updating the table that holds the status of the information processing device can be prevented. It is possible. [Effects of the Invention] As explained above, the present invention makes it possible to stop the processing even if separate processing tasks that perform processing on the same information processing device are operating at different operation levels. The correctness of the operation can be guaranteed.

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

第1図は本発明を実施する装置の一実施例を示すブロッ
ク図、第2図(A).(B),(C)は本発明の動作を
説明するフローチャートである。 1・・・タスク制御部、2・・・タスクA、3・・・タ
スクB、10・・・タスク状態管理部、11・・・タス
ク状態変更部、12・・・タスク間通信制御部、13・
・・タスク制御要求受付部.
FIG. 1 is a block diagram showing an embodiment of an apparatus for implementing the present invention, and FIG. 2(A). (B) and (C) are flowcharts explaining the operation of the present invention. DESCRIPTION OF SYMBOLS 1... Task control unit, 2... Task A, 3... Task B, 10... Task state management unit, 11... Task state change unit, 12... Inter-task communication control unit, 13.
...Task control request reception unit.

Claims (1)

【特許請求の範囲】[Claims] 複数の情報処理装置と前記情報処理装置の状態を管理す
る複数の処理レベルを持ち処理すべき内容により処理の
動作レベルを変更するRASプロセッサの処理実行管理
方式において、処理実行中の第1のタスクが高位レベル
の第2のタスクの実行にともない処理を中断していた場
合、前記第1のタスクの処理終了にともない前記第2の
タスクの処理を中止することを特徴とする処理実行管理
方式。
In a processing execution management method for a RAS processor that has a plurality of information processing devices and a plurality of processing levels that manage the states of the information processing devices and changes the processing operation level depending on the content to be processed, a first task during processing execution. A process execution management method characterized in that, if the process has been interrupted due to the execution of a second task at a higher level, the process of the second task is stopped upon completion of the process of the first task.
JP16447289A 1989-06-26 1989-06-26 Process execution management method Expired - Fee Related JP2504833B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16447289A JP2504833B2 (en) 1989-06-26 1989-06-26 Process execution management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16447289A JP2504833B2 (en) 1989-06-26 1989-06-26 Process execution management method

Publications (2)

Publication Number Publication Date
JPH0328935A true JPH0328935A (en) 1991-02-07
JP2504833B2 JP2504833B2 (en) 1996-06-05

Family

ID=15793829

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16447289A Expired - Fee Related JP2504833B2 (en) 1989-06-26 1989-06-26 Process execution management method

Country Status (1)

Country Link
JP (1) JP2504833B2 (en)

Also Published As

Publication number Publication date
JP2504833B2 (en) 1996-06-05

Similar Documents

Publication Publication Date Title
US6301634B1 (en) Real time control method for a robot controller
US8108196B2 (en) System for yielding to a processor
EP0333617A2 (en) Process for creating a temporary suspension of tasks running in a virtual machine data processing system
JPH05282260A (en) Computer network and its operation method
US7389507B2 (en) Operating-system-independent modular programming method for robust just-in-time response to multiple asynchronous data streams
US6795873B1 (en) Method and apparatus for a scheduling driver to implement a protocol utilizing time estimates for use with a device that does not generate interrupts
JPH0468461A (en) Resource management system
JPH0328935A (en) Process execution control system
JPH05120039A (en) Task scheduling system
JP2553526B2 (en) Multitasking processor
JPH11249917A (en) Parallel computers, their batch processing method, and storage medium
JPH0296833A (en) Different type job control system
JP3107433B2 (en) Task state management method for computer systems
JPH0126093B2 (en)
JPH0981526A (en) Multiprocessor system
JPH05265779A (en) Inter-task communication system
JPH09265405A (en) Exclusive access method for shared resource
JPH01306943A (en) Asynchronous input-output control system
JPH01185733A (en) Input/output emulation system
JPS6252900B2 (en)
JPH02293953A (en) Specific system information obtaining method
JPH061466B2 (en) Lock exclusive control method
JPH01259430A (en) Subtracting method for interval timer value
JPH02244371A (en) Exclusive control method for multiprocessor system
JPH02211575A (en) Multi-processor type information processor

Legal Events

Date Code Title Description
S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees