JPH08241212A - Task management device and control method thereof - Google Patents
Task management device and control method thereofInfo
- Publication number
- JPH08241212A JPH08241212A JP6892795A JP6892795A JPH08241212A JP H08241212 A JPH08241212 A JP H08241212A JP 6892795 A JP6892795 A JP 6892795A JP 6892795 A JP6892795 A JP 6892795A JP H08241212 A JPH08241212 A JP H08241212A
- Authority
- JP
- Japan
- Prior art keywords
- task
- pointer
- priority
- address
- state
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000012544 monitoring process Methods 0.000 claims abstract description 15
- 238000007726 management method Methods 0.000 description 104
- 238000010586 diagram Methods 0.000 description 12
- 230000000694 effects Effects 0.000 description 3
- 230000004913 activation Effects 0.000 description 1
- 239000008187 granular material Substances 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
Abstract
(57)【要約】
【目的】 リアルタイム処理を必要とする複数のタスク
を効率よく管理することができるタスク管理装置及びそ
の制御方法を提供する。
【構成】 タスク監視手段1が受信したタスクの優先度
を決定し、その決定に従ってタスク状態管理手段21が
タスク状態管理テーブル2内で優先度毎にデイジーチェ
イン状に接続したタスク構造体4に当該タスクのアドレ
スを格納し、タスク状態管理テーブル2の実行可能状態
タスクポインタ12内で優先度が最も高く最先のタスク
を実行中タスクポインタ11に複写し、タスク処理部3
が実行中タスクポインタ11に示すアドレスのタスク処
理を実行するタスク管理装置及びその制御方法である。
(57) [Summary] [Object] To provide a task management device and a control method thereof that can efficiently manage a plurality of tasks that require real-time processing. [Structure] The task monitoring unit 1 determines the priority of the received task, and the task state management unit 21 applies the task structure 4 connected in a daisy chain for each priority in the task state management table 2 according to the determination. The task address is stored, and the task having the highest priority and the earliest task in the ready state task pointer 12 of the task state management table 2 is copied to the running task pointer 11, and the task processing unit 3
Is a task management device for executing the task process of the address indicated by the running task pointer 11 and its control method.
Description
【0001】[0001]
【産業上の利用分野】本発明は、イベントドリブン方式
のタスク処理装置におけるタスク管理装置及びその制御
方法に係り、特に、異なる回線に同じ優先度を与えるこ
とを可能にすることによって、優先度の高い複数のイベ
ント処理のためのタスクを待たせることなく処理するこ
とができ、それによってリアルタイム処理が必要なイベ
ント処理のためのタスクを複数管理できるタスク管理装
置及びその制御方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a task management device and a control method thereof in an event driven type task processing device, and in particular, by making it possible to give different lines the same priority. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a task management device and a control method thereof that can process a plurality of high-level tasks for event processing without making them wait and thereby manage multiple tasks for event processing that require real-time processing.
【0002】[0002]
【従来の技術】従来のタスク管理装置について図8を使
って説明する。図8は、コードレス電話機から受け取っ
たイベントを処理する従来のイベントドリブン方式のタ
スク管理装置の動作を表す説明図である。イベントドリ
ブン方式とは、一連のイベントを監視して反応するタス
ク処理の様式である。2. Description of the Related Art A conventional task management device will be described with reference to FIG. FIG. 8 is an explanatory diagram illustrating the operation of a conventional event-driven task management device that processes an event received from a cordless telephone. The event driven method is a mode of task processing that monitors and reacts to a series of events.
【0003】例えば、コードレス電話機からのイベント
は、音声を送受信するイベントのほか、電話受信イベン
ト、電話回線切断イベントなどがあるが、ここでは説明
を簡単にするために、コードレス電話機からのイベント
はすべて音声データの受信イベントであるとする。従来
のタスク管理装置は、各回線に固定された優先度を設
け、待ち行列にある優先度の高いタスクから順に処理す
るものである。For example, the event from the cordless telephone includes an event for transmitting and receiving a voice, a telephone reception event, a telephone line disconnection event, etc. Here, all the events from the cordless telephone are described to simplify the explanation. It is assumed that this is an audio data reception event. The conventional task management device sets a fixed priority for each line and processes the tasks in the queue in order from the highest priority.
【0004】具体的には、図8に示すように、回線1に
は優先度1、回線2には優先度2、回線3には優先度
3、回線4には優先度4があらかじめ設定されている場
合について説明する。優先度は数字が小さいほど優先順
位が高いものである。Specifically, as shown in FIG. 8, a priority level 1 is preset for the line 1, a priority level 2 for the line 2, a priority level 3 for the line 3, and a priority level 4 for the line 4. The case will be described. The smaller the number, the higher the priority.
【0005】まず、回線4でデータを受信する(s1)
と、コードレス電話機の制御手段であるタスク管理装置
は、回線4のタスク処理(回線4で受信したデータに関
するタスク処理)を開始する。この回線4のタスク処理
が終了しないうちに、回線3でデータを受信する(s
2)と、回線3の優先度が回線4の優先度より高いため
に、回線4のタスクは待ち行列に入り、回線3のタスク
処理が開始される。尚、回線4のタスク処理は、処理途
中で中断されて待ち行列に入り、回線3のタスク処理が
終了すると他の優先度の高い回線においてデータが受信
されない限り中断部分から処理が再開されるものであ
る。First, data is received on the line 4 (s1).
Then, the task management device, which is the control means of the cordless telephone, starts the task processing of the line 4 (task processing regarding the data received on the line 4). Before the task processing on the line 4 is completed, the data is received on the line 3 (s
2) and the priority of the line 3 is higher than that of the line 4, the task of the line 4 enters the queue and the task processing of the line 3 is started. The task processing of the line 4 is interrupted in the middle of the processing and enters the queue, and when the task processing of the line 3 is completed, the processing is restarted from the interrupted portion unless data is received by the other high priority line. Is.
【0006】次に、回線3のタスク処理が終了しないう
ちに、回線1でデータを受信される(s3)と、回線1
の優先度が回線3の優先度より高いために、回線3のタ
スクは待ち行列に入り、タスク1の処理が開始される。
次に、回線1のタスク処理が終了しないうちに、回線2
がデータを受信する(s4)と、回線1の優先度が回線
2の優先度より高いために、回線2のタスクは待ち行列
に入り、回線1のタスク処理が続けられる。Next, when data is received on the line 1 (s3) before the task processing on the line 3 is completed, the line 1 is received.
Since the priority of is higher than the priority of line 3, the task of line 3 enters the queue and the processing of task 1 is started.
Next, before the task processing of line 1 is completed, line 2
When the data is received (s4), the priority of the line 1 is higher than that of the line 2, so that the task of the line 2 enters the queue and the task processing of the line 1 is continued.
【0007】回線1のタスク処理が終了する(s5)
と、待ち行列の中で最も優先度の高い回線2のタスクの
処理が開始され、回線2のタスクは待ち行列から除かれ
る。更に、回線2のタスク処理が終了する(s6)と、
待ち行列の中で最も優先度の高い回線3のタスクの処理
が開始され、回線3のタスクは待ち行列から除かれる。The task processing of line 1 ends (s5)
Then, the task of line 2 having the highest priority in the queue is started, and the task of line 2 is removed from the queue. Furthermore, when the task processing of the line 2 ends (s6),
Processing of the task of line 3 having the highest priority in the queue is started, and the task of line 3 is removed from the queue.
【0008】ここで、回線3の処理が終了しないうち
に、再び回線1でデータを受信する(s7)と、回線1
の優先度が回線3の優先度より高いために、回線3のタ
スクは再び待ち行列に入り、回線1のタスク処理が開始
される。Here, if the data is received again on the line 1 before the processing on the line 3 is completed (s7), the line 1 is received.
Since the priority of is higher than the priority of the line 3, the task of the line 3 is queued again and the task processing of the line 1 is started.
【0009】回線1のタスク処理が終了する(s8)
と、待ち行列の中で最も優先度の高い回線3のタスク処
理が開始され、回線3のタスクは待ち行列から除かれ
る。回線3のタスク処理が終了する(s9)と、待ち行
列に残っている回線4のタスク処理が開始され、回線4
のタスクは待ち行列から除かれる。回線4のタスク処理
が終了する(s10)と、すべての処理が終了する。The task processing of line 1 ends (s8)
Then, the task processing of the line 3 having the highest priority in the queue is started, and the task of the line 3 is removed from the queue. When the task processing of the line 3 is completed (s9), the task processing of the line 4 remaining in the queue is started and the line 4
Task is removed from the queue. When the task processing of the line 4 ends (s10), all the processing ends.
【0010】[0010]
【発明が解決しようとする課題】しかしながら、上記従
来のタスク管理装置では、異なる回線におけるタスクに
同一の優先度を設定することができないために、優先度
の最も高いタスク以外では処理が開始されるまでに長い
時間がかかることがあり、リアルタイムの処理を必要と
する複数のイベントを処理するタスクを管理することが
できないという問題点があった。However, in the above-mentioned conventional task management device, since the same priority cannot be set for tasks on different lines, processing is started for tasks other than the task with the highest priority. It may take a long time, and there is a problem that it is not possible to manage a task that processes multiple events that require real-time processing.
【0011】本発明は上記実情に鑑みて為されたもの
で、リアルタイム処理を必要とする複数のタスクを管理
することができるタスク管理装置及びその制御方法を提
供することを目的とする。The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a task management device and a control method thereof capable of managing a plurality of tasks requiring real-time processing.
【0012】[0012]
【課題を解決するための手段】上記従来例の問題点を解
決するための請求項1記載の発明は、タスク管理装置に
おいて、実行中のタスクのアドレスを示す実行中タスク
ポインタと、優先度毎に実行可能な状態のタスクのアド
レスを示す実行可能状態タスクポインタとを具備するタ
スク状態管理テーブルと、タスクの優先度を決定するタ
スク監視手段と、前記タスク状態管理テーブルにおける
実行中タスクポインタが示すアドレスのタスクを実行す
るタスク処理部と、同一優先度の実行可能状態タスクポ
インタにデイジーチェイン状に接続し、次の順番待ちの
タスクのアドレス情報を保持するタスク構造体と、前記
タスク監視手段の優先度の決定に従って当該優先度のタ
スクのアドレスを実行可能状態タスクポインタ又はそれ
に接続するタスク構造体に格納し、優先度が高い実行可
能状態タスクポインタのアドレスを前記実行中タスクポ
インタに複写するタスク状態管理手段とを有することを
特徴としている。According to a first aspect of the present invention for solving the above-mentioned problems of the prior art, a task management apparatus is provided with a running task pointer indicating an address of a task being executed, and for each priority. Indicates a task status management table having an executable status task pointer indicating the address of a task in the executable status, task monitoring means for determining the priority of the task, and an executing task pointer in the task status management table. A task processing unit that executes a task of an address, a task structure that is connected to an executable state task pointer of the same priority in a daisy chain, and holds address information of the next waiting task, and the task monitoring unit. A task that connects the address of the task of the priority according to the priority to the ready state task pointer or it Stored in the granulated material, it is characterized in that the address of the highest priority runnable task pointer and a task state management means for copying the running task pointer.
【0013】上記従来例の問題点を解決するための請求
項2記載の発明は、請求項1記載のタスク管理装置の制
御方法において、タスク監視手段がタスクの優先度を決
定し、タスク状態管理手段が当該決定の優先度の実行可
能状態タスクポインタの空き状態に応じて前記実行可能
状態タスクポインタ又はそれに接続するタスク構造体に
前記タスクのアドレスを格納して、優先度が高い実行可
能状態タスクポインタのアドレスを実行中タスクポイン
タに複写し、タスク処理手段が前記実行中タスクポイン
タに示すタスクを実行することを特徴としている。According to a second aspect of the invention for solving the problems of the conventional example, in the control method of the task management apparatus according to the first aspect, the task monitoring means determines the priority of the task and manages the task state. The means stores the address of the task in the ready-state task pointer or the task structure connected to the ready-state task pointer according to the empty state of the ready-state task pointer of the priority of the decision, and the ready-state task of high priority It is characterized in that the address of the pointer is copied to the running task pointer, and the task processing means executes the task indicated by the running task pointer.
【0014】上記従来例の問題点を解決するための請求
項3記載の発明は、請求項1記載のタスク管理装置にお
いて、タスク状態管理手段が、前記タスク処理部でのタ
スク処理が終了すると当該タスクの優先度のタスク状態
管理テーブルにおける実行可能状態タスクポインタを空
にし、前記実行可能状態タスクポインタに接続するタス
ク構造体があればそのアドレス情報を前記実行可能状態
タスクポインタに格納し、その後、優先度が高い実行可
能状態タスクポインタのアドレスを前記実行中タスクポ
インタに複写するタスク状態管理手段であることを特徴
としている。According to a third aspect of the present invention for solving the above-mentioned problems of the conventional example, in the task management apparatus according to the first aspect, the task state management means is provided when the task processing in the task processing section is completed. The ready state task pointer in the task state management table of the task priority is emptied, and if there is a task structure connected to the ready state task pointer, its address information is stored in the ready state task pointer, and thereafter, It is characterized in that it is a task state management means for copying the address of the high-priority executable task pointer to the in-execution task pointer.
【0015】上記従来例の問題点を解決するための請求
項4記載の発明は、請求項3記載のタスク管理装置の制
御方法において、タスク処理部でのタスク処理が終了す
ると、タスク状態管理手段が、処理が終了したタスクの
優先度の実行可能状態タスクポインタを空にし、前記実
行可能状態タスクポインタに接続するタスク構造体があ
ればそのアドレス情報を前記実行可能状態タスクポイン
タに格納し、その後、優先度が高い実行可能状態タスク
ポインタのアドレスを実行中タスクポインタに複写し、
前記タスク処理手段が前記実行中タスクポインタに示す
タスクを実行することを特徴としている。According to a fourth aspect of the present invention for solving the above-mentioned problems of the conventional example, in the control method of the task management apparatus according to the third aspect, when the task processing in the task processing section is completed, the task state management means is provided. Empties the ready state task pointer of the priority of the task that has finished processing, stores the address information in the ready state task pointer if there is a task structure connected to the ready state task pointer, and then , Copy the address of the task pointer in the ready state with a high priority to the running task pointer,
It is characterized in that the task processing means executes the task indicated by the in-execution task pointer.
【0016】[0016]
【作用】請求項1,2記載の発明によれば、タスク監視
手段で決定された優先度のタスク状態管理テーブルの実
行可能状態タスクポインタの空き状態に応じて実行可能
状態タスクポインタ又はそれに接続するタスク構造体に
当該タスクのアドレスを格納して、優先度が高い実行可
能状態タスクポインタのアドレスを実行中タスクポイン
タに複写し、タスク処理手段が実行中タスクポインタに
示すタスクを実行するタスク管理装置及びその制御方法
としているので、優先度の高い複数のイベント処理のた
めのタスクをあまり待たせることなく、効率的なタスク
処理を実現できる。According to the first and second aspects of the present invention, the executable state task pointer is connected to the executable state task pointer according to the free state of the executable state task pointer of the task state management table of the priority determined by the task monitoring means. A task management device that stores the address of the task in the task structure, copies the address of the high-priority ready-state task pointer to the running task pointer, and causes the task processing means to execute the task indicated by the running task pointer. And the control method thereof, it is possible to realize efficient task processing without causing the tasks for a plurality of high-priority event processing to wait for too long.
【0017】請求項3,4記載の発明によれば、タスク
状態管理手段が、処理終了タスクの優先度の実行可能状
態タスクポインタを空にし、その実行可能状態タスクポ
インタに接続するタスク構造体があればそのアドレス情
報を当該実行可能状態タスクポインタに格納し、その
後、優先度が高い実行可能状態タスクポインタのアドレ
スを実行中タスクポインタに複写し、タスク処理手段が
実行中タスクポインタに示すタスクを実行する請求項1
記載のタスク管理装置及びその制御方法としているの
で、優先度の高い複数のイベント処理のためのタスクを
あまり待たせることなく、効率的なタスク処理を実現で
きる。According to the third and fourth aspects of the invention, the task state management means empties the ready state task pointer of the priority of the processing end task and connects the task structure to the ready state task pointer. If there is, the address information is stored in the ready state task pointer, then the address of the ready state task pointer with a high priority is copied to the running task pointer, and the task processing means determines the task indicated by the running task pointer. Claim 1 to be executed
Since the task management device and the control method therefor are described, efficient task processing can be realized without causing the tasks for a plurality of high-priority event processing to wait for too long.
【0018】[0018]
【実施例】本発明の一実施例に係るタスク管理装置につ
いて、図面を参照しながら説明する。本発明の一実施例
に係るタスク管理装置は、従来のタスク管理装置に置き
換えて利用されるものであり、従来と同様に例として、
コードレス電話機のイベントを処理する場合について説
明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS A task management system according to an embodiment of the present invention will be described with reference to the drawings. A task management device according to an embodiment of the present invention is used by replacing it with a conventional task management device.
A case of processing an event of a cordless telephone will be described.
【0019】本発明の一実施例に係るタスク管理装置及
びその制御方法は、優先度毎にタスクのアドレスを格納
したタスク状態管理テーブルと、そのテーブルの優先度
毎にデイジーチェイン状に接続し、待ちタスクのアドレ
スを格納したタスク構造体とを設け、タスク状態管理テ
ーブルの優先度に従ってタスク処理部がタスク処理を行
い、また新規のタスクについては優先度に従ってタスク
状態管理手段がタスク状態管理テーブル又はタスク構造
体にアドレスを格納するもので、優先度の高い複数のタ
スクを効率的に処理できるものである。A task management apparatus and a control method therefor according to an embodiment of the present invention connect a task status management table storing task addresses for each priority and a daisy chain connection for each priority of the table, A task structure that stores the address of the waiting task is provided, and the task processing unit performs task processing according to the priority of the task status management table. For new tasks, the task status management means uses the task status management table or the task status management table according to the priority. Addresses are stored in the task structure, and multiple high-priority tasks can be efficiently processed.
【0020】図1は、本発明の一実施例に係るタスク管
理装置の構成ブロック図である。本実施例のタスク管理
装置は、図1に示すように、受信したデータ毎に優先度
を決めるタスク監視手段1と、同一優先度に分類され、
時間的に後に起動されたタスクのアドレス及び各タスク
のプログラムカウンタを内蔵したタスク構造体4と、実
行中のタスクのアドレスを指す実行中タスクポインタ及
び同一優先度に分類されたタスクのうち最先に受信した
タスク構造体4のアドレスを指す実行可能状態タスクポ
インタを内蔵するタスク状態管理テーブル2と、タスク
状態管理テーブル2及びタスク構造体4に内蔵されたポ
インタを書き換えるタスク状態管理手段21と、実行中
タスクポインタが指すタスク構造体4のプログラムカウ
ンタが指すプログラムを実行するタスク処理部3とから
構成されている。FIG. 1 is a configuration block diagram of a task management apparatus according to an embodiment of the present invention. As shown in FIG. 1, the task management device of this embodiment is classified into the same priority as the task monitoring means 1 that determines the priority for each received data,
The task structure 4 containing the address of the task started later in time and the program counter of each task, the running task pointer pointing to the address of the running task, and the task classified into the same priority A task state management table 2 that contains an executable state task pointer that points to the address of the task structure 4 that has been received, and task state management means 21 that rewrites the pointers contained in the task state management table 2 and the task structure 4. The task processing unit 3 executes the program indicated by the program counter of the task structure 4 indicated by the executing task pointer.
【0021】次に、本実施例のタスク管理装置の各部の
働きを説明する。タスク監視手段1は、予め設定された
優先度に関する情報を基に、受信したデータ毎にタスク
の優先度を決定するものである。Next, the operation of each part of the task management system of this embodiment will be described. The task monitoring means 1 determines the priority of the task for each received data based on the preset information on the priority.
【0022】タスク状態管理テーブル2は、実行中のタ
スク構造体4のアドレスを指し示す実行中タスクポイン
タ11と、同一優先度を持つタスクの内、最先に受信し
たタスクのアドレスを示す実行可能状態タスクポインタ
12とから構成されている。従って、実行可能状態タス
クポインタ12には、優先度1,2,…,の順でポイン
タが構成され、更に各ポインタには最先に受信したタス
クのアドレスが格納されている。The task status management table 2 has a running task pointer 11 that points to the address of the task structure 4 that is running, and a ready status that indicates the address of the task that was received first among the tasks that have the same priority. It is composed of a task pointer 12. Therefore, the executable task pointer 12 is composed of pointers in the order of priority 1, 2, ..., And each pointer stores the address of the task received first.
【0023】タスク構造体4は、同一優先度毎に分類さ
れており、時間的に後続のタスク構造体4のアドレスを
指すアドレス格納部41と、タスク処理のプログラムの
アドレスを指すプログラムカウンタ42とから構成され
ている。アドレス格納部41は、もし後続のタスクがな
ければ「NULL」になっている。The task structures 4 are classified according to the same priority, and an address storage unit 41 indicating the address of the task structure 4 which is succeeding in time, and a program counter 42 indicating the address of the task processing program are provided. It consists of The address storage unit 41 is "NULL" if there is no subsequent task.
【0024】タスク処理部3は、タスク状態管理テーブ
ル2の実行中タスクポインタ11に格納されたアドレス
が指し示すタスク構造体4に内蔵されたプログラムカウ
ンタ42が指しているプログラムを実行してタスク処理
を実行するものである。尚、タスク処理部3は、実行中
タスクポインタ11に処理対象のタスクが格納される
と、タスク状態管理手段21によって起動されるもので
ある。The task processing unit 3 executes the program pointed to by the program counter 42 incorporated in the task structure 4 pointed to by the address stored in the running task pointer 11 of the task state management table 2 to perform task processing. It is what you do. The task processing unit 3 is activated by the task state management unit 21 when the task to be processed is stored in the running task pointer 11.
【0025】タスク状態管理手段21は、タスク監視手
段1によって起動され、データを受信してタスクを待ち
行列に入れる要求があると、タスク構造体4を新規に生
成し、タスク監視手段1で決定されている優先度を基に
して、タスク状態管理テーブル2又は既に生成されたタ
スク構造体4に新規に生成したタスク構造体4がデイジ
ーチェイン状につながるように実行可能状態タスクポイ
ンタ12又は先に待ち行列にあるタスク構造体4のアド
レス格納部41を書き換えるものである。The task status managing means 21 is activated by the task monitoring means 1, and upon receiving a request to receive data and put a task in a queue, a task structure 4 is newly created and determined by the task monitoring means 1. The task status management table 2 or the task structure 4 that has already been generated is connected to the task status management table 2 or the task structure 4 that has already been generated so that the newly created task structure 4 is connected in a daisy-chained state, The address storage unit 41 of the task structure 4 in the queue is rewritten.
【0026】また、タスク状態管理手段21は、タスク
処理部3によって起動され、処理が終了したタスクのア
ドレスをタスク状態管理テーブル2から削除し、タスク
状態管理テーブル2の実行中タスクポインタ11に待ち
行列にあるタスク構造体4の中で最も優先度が高いもの
の内で最先に受信したもののアドレスを複写するもので
ある。Further, the task status management means 21 is started by the task processing unit 3 and deletes the address of the task for which the processing is completed from the task status management table 2 and waits for the running task pointer 11 of the task status management table 2. This is to copy the address of the task structure 4 having the highest priority among the task structures 4 in the matrix and received first.
【0027】次に、タスク状態管理手段21の動作につ
いて図3〜図7を用いて具体的に説明する。図3〜図7
は、タスク状態管理手段21の動作を例示するための説
明図である。本来ならば、実行可能状態タスクポインタ
は4つ以上の優先度の分類に対応しているが、図3〜図
7では説明を簡略化するために3つの優先度に分類する
場合について図示している。Next, the operation of the task state management means 21 will be concretely described with reference to FIGS. 3 to 7
FIG. 4 is an explanatory diagram for illustrating the operation of the task status management means 21. Originally, the ready-state task pointer corresponds to classification of four or more priorities, but FIGS. 3 to 7 illustrate the case of classification into three priorities to simplify the description. There is.
【0028】まず、同一優先度のタスクが待ち行列に入
っていない状態(当該優先度のタスク状態管理テーブル
2の実行可能状態タスクポインタ12が空の状態)でタ
スクを待ち行列に入れる要求があった時に、タスク状態
管理テーブル2内が完全に空の場合と、優先度の低いタ
スクが既に実行中である場合と、優先度の高いタスクが
既に実行されている場合とに分けて説明する。First, there is a request to put a task in the queue in a state where tasks with the same priority are not in the queue (the ready state task pointer 12 in the task state management table 2 of the priority is empty). When the task status management table 2 is completely empty, a task with a low priority is already being executed, and a task with a high priority is already being executed.
【0029】第一に、タスク状態管理テーブル2が完全
に空である場合は、タスク状態管理手段21は、タスク
状態管理テーブル2に内蔵されている該当する優先度の
実行可能状態タスクポインタ12と実行中タスクポイン
タ11に新規に生成したタスク構造体4のアドレスを複
写する。First, when the task status management table 2 is completely empty, the task status management means 21 stores the executable status task pointer 12 of the corresponding priority contained in the task status management table 2. The address of the newly created task structure 4 is copied to the executing task pointer 11.
【0030】例えば、図3に示すように、すべての実行
可能状態タスクポインタ12が「NULL」であった場
合に、新しく生成されたTCB2-1が指す優先度2のタ
スクが待ち行列に入る場合を示しており、図3におい
て、タスク状態管理手段21は、優先度2に対応する実
行可能状態タスクポインタ12を「NULL」から「T
CB2-1」に書き換え、同時に実行中タスクポインタ1
1も「TCB2-1」に書き換える。そして、TCB2-1
のタスクがタスク処理部3で実行される。For example, as shown in FIG. 3, when all ready-state task pointers 12 are "NULL", a task of priority 2 pointed to by the newly created TCB2-1 enters the queue. In FIG. 3, the task state management means 21 changes the executable state task pointer 12 corresponding to the priority 2 from “NULL” to “T”.
CB2-1 ", and simultaneously executing task pointer 1
1 is also rewritten as "TCB2-1". And TCB2-1
Task is executed by the task processing unit 3.
【0031】第二に、優先度の低いタスクが既に実行中
である場合には、タスク状態管理手段21はタスク状態
管理テーブル2に内蔵されている該当する優先度の実行
可能状態タスクポインタ12と実行中タスクポインタ1
1に新規に生成したタスク構造体4のアドレスを複写す
る。ここで、実行中であった優先度の低いタスクは、後
に優先度の高い全てのタスクのタスク処理が終了してか
らタスク処理を続けられることになる。Secondly, when a task with a low priority is already being executed, the task status management means 21 stores the ready status task pointer 12 of the corresponding priority in the task status management table 2. Running task pointer 1
The address of the newly created task structure 4 is copied to 1. Here, the task having the low priority that was being executed can continue the task processing after the task processing of all the tasks having the high priority is completed later.
【0032】例として、図4に示すように、TCB2-1
が指す優先度2のタスクが既に実行中である時に、TC
B1-1が指す優先度1のタスクが待ち行列に入る場合を
示しており、図4において、タスク状態管理手段21
は、優先度1に対応する実行可能状態タスクポインタ1
2を「TCB2-1」から「TCB1-1」に書き換え、同
時に実行中タスクポインタ11も「TCB1-1」に書き
換える。そして、TCB1-1のタスクがタスク処理部3
で実行される。As an example, as shown in FIG. 4, TCB2-1
When the task of priority 2 pointed to by is already running, TC
This shows the case where the task of priority 1 pointed to by B1-1 is in the queue, and in FIG.
Is the ready state task pointer 1 corresponding to the priority 1.
2 is rewritten from "TCB2-1" to "TCB1-1", and at the same time the running task pointer 11 is rewritten to "TCB1-1". Then, the task of TCB1-1 is the task processing unit 3
Run on.
【0033】第三に、優先度の高いタスクが既に実行さ
れている場合には、タスク状態管理手段21は、該当す
る優先度の実行可能状態タスクポインタ12に新規に生
成したタスク構造体4のアドレスを複写する。新規に待
ち行列に入った優先度の低いタスクは、後に優先度の高
い全てのタスクのタスク処理が終了してからタスク処理
が開始されることになる。Thirdly, when a task with a high priority has already been executed, the task state management means 21 stores the task structure 4 newly created in the ready state task pointer 12 of the relevant priority. Copy the address. A task with a low priority newly entering the queue will be started after the task processing of all the tasks with a high priority is completed later.
【0034】例として、図5に示すように、TCB1-1
が指す優先度1のタスクとTCB2-1が指す優先度2の
タスクがすでに待ち行列に入っている時に、TCB3-1
が指す優先度3のタスクが待ち行列に入る場合を示して
おり、図5において、タスク状態管理手段21は、優先
度3に対応する実行可能状態タスクポインタ12を「N
ULL」から「TCB3-1」に書き換える。As an example, as shown in FIG. 5, TCB1-1
When the task with priority 1 pointed to by and the task with priority 2 pointed by TCB2-1 are already in the queue, TCB3-1
5 shows a case where a task of priority 3 pointed to by is entered in the queue. In FIG. 5, the task state management means 21 sets the ready state task pointer 12 corresponding to priority 3 to “N”.
Rewrite from "ULL" to "TCB3-1".
【0035】次に、同一優先度のタスクが待ち行列に既
に入っている状態で新規のタスクを待ち行列に入れる要
求があった時のタスク状態管理手段21の動作を説明す
る。タスク状態管理手段21は、該当する優先度の待ち
行列にある最後のタスク構造体4に内蔵されているアド
レス格納部41に新規に生成したタスク構造体4へのア
ドレスを複写する。Next, the operation of the task state management means 21 when there is a request to put a new task in the queue while tasks of the same priority are already in the queue will be described. The task state management means 21 copies the address to the newly created task structure 4 in the address storage unit 41 built in the last task structure 4 in the queue of the corresponding priority.
【0036】例として、図6に示すように、TCB1-1
が指す優先度1のタスクとTCB2-1が指す優先度2の
タスクとTCB3-1が指す優先度3のタスクが既に待ち
行列に入っている時に、TCB2-2が指す優先度2のタ
スクが待ち行列に入る場合を示しており、図6におい
て、タスク状態管理手段21は、TCB2-1が指すタス
ク構造体4のアドレス格納部41を「NULL」から後
続のタスクへのアドレス「TCB2-2」に書き換える。
同一優先度のタスクはこのようにして、該当する優先度
の実行可能状態タスクポインタ12にデイジーチェイン
状にリンクされるものである。As an example, as shown in FIG. 6, TCB1-1
When the task with priority 1 pointed to by, the task with priority 2 pointed by TCB2-1 and the task with priority 3 pointed by TCB3-1 are already in the queue, the task with priority 2 pointed to by TCB2-2 FIG. 6 shows the case of entering the queue, and in FIG. 6, the task state management means 21 sets the address storage unit 41 of the task structure 4 pointed to by TCB2-1 to the address "TCB2-2" from "NULL" to the subsequent task. Rewrite
In this way, the tasks of the same priority are linked in a daisy-chain fashion to the ready-state task pointers 12 of the corresponding priority.
【0037】次に、タスク状態管理テーブル2に内蔵さ
れている実行中タスクポインタが指しているタスクのタ
スク処理が終了したときのタスク状態管理手段21の動
作を説明する。タスク状態管理手段21は、実行中のタ
スク処理が終了すると、実行中タスクポインタ11が示
すアドレスのタスク構造体4(タスク処理が終了したタ
スク構造体4)のアドレス格納部41の内容を実行可能
状態タスクポインタ12に複写して、タスク処理が終了
したタスク構造体4を削除する。Next, the operation of the task status management means 21 when the task processing of the task pointed to by the running task pointer contained in the task status management table 2 is completed will be described. When the task processing under execution ends, the task state management unit 21 can execute the contents of the address storage unit 41 of the task structure 4 (task structure 4 for which task processing has ended) at the address indicated by the executing task pointer 11. The task structure 4 whose task processing has been completed is deleted by copying it to the state task pointer 12.
【0038】そして、タスク状態管理手段21は、優先
度が高い実行可能状態タスクポインタ12を調べ、実行
可能状態タスクポインタ12が「NULL」でなけれ
ば、その実行可能状態タスクポインタ12が示すタスク
構造体4のアドレスで実行中タスクポインタ11の内容
を書き換える。すると、実行中タスクポインタ11が示
すアドレスのタスク構造体4におけるプログラムカウン
タ42のタスクがタスク処理部3で実行されることにな
る。Then, the task state management means 21 checks the ready state task pointer 12 having a high priority, and if the ready state task pointer 12 is not "NULL", the task structure indicated by the ready state task pointer 12 is shown. The contents of the running task pointer 11 are rewritten with the address of the body 4. Then, the task of the program counter 42 in the task structure 4 at the address indicated by the executing task pointer 11 is executed by the task processing unit 3.
【0039】また、調べて実行可能状態タスクポインタ
12が「NULL」であれば、タスク状態管理手段21
は、次に優先度が高い実行可能状態タスクポインタ12
を調べ、上記と同様の処理を行うものである。Also, if the executable state task pointer 12 is checked to be "NULL", the task state management means 21
Is the next-highest-priority ready-state task pointer 12
And performs the same processing as above.
【0040】そして、全ての実行可能状態タスクポイン
タ12が「NULL」であれば、タスク状態管理手段2
1は、タスク状態管理テーブル2に処理すべきタスクが
存在しないと判断して、実行中タスクポインタ11の内
容を「NULL」に書き変えて処理を終了する。尚、タ
スク状態管理手段21は、新たにタスクが受信される
と、タスク監視手段1により起動されるものである。If all the executable task pointers 12 are "NULL", the task status managing means 2
1 determines that there is no task to be processed in the task status management table 2, rewrites the content of the running task pointer 11 to "NULL", and ends the processing. The task status managing means 21 is activated by the task monitoring means 1 when a new task is received.
【0041】例えば、この場合のタスク状態管理手段2
1の動作を図7を用いて具体的に説明する。図7では、
アドレスTCB1-1が指す優先度1のタスクの処理が終
了した状態を示しており、この時、タスク状態管理手段
21は、まず、優先度1のTCB1-1の示しているタス
ク構造体4に内蔵されているアドレス格納部41の内容
である「NULL」を当該優先度1の実行可能状態タス
クポインタ12に複写する。For example, the task state management means 2 in this case
The operation of No. 1 will be specifically described with reference to FIG. In Figure 7,
This shows a state in which the processing of the task of priority 1 indicated by the address TCB1-1 has been completed. At this time, the task state management means 21 first writes in the task structure 4 indicated by the TCB1-1 of priority 1. The content "NULL" of the built-in address storage unit 41 is copied to the ready state task pointer 12 of the priority 1.
【0042】次に、タスク状態管理手段21は、優先度
1の実行可能状態タスクポインタ12を調べ、優先度1
の実行可能状態タスクポインタ12が「NULL」にな
っていることから、優先度1の待ち行列にはタスクが存
在しないと判断して、次に優先度2の実行可能状態タス
クポインタ12を調べる。Next, the task state management means 21 checks the ready state task pointer 12 of the priority 1 and checks the priority 1
Since the ready-state task pointer 12 of No. 1 is "NULL", it is determined that there is no task in the queue of priority 1 and the ready-state task pointer 12 of priority 2 is examined next.
【0043】そして、優先度2の実行可能状態タスクポ
インタ12は、「NULL」ではなく、「TCB2-1」
を示しているので、タスク状態管理手段21は、優先度
2のタスクへのアドレス「TCB2-1」を実行中タスク
ポインタ11に複写する。これにより、TCB2-1のタ
スクがタスク処理部3により実行される。Then, the ready state task pointer 12 of priority 2 is not "NULL" but "TCB2-1".
, The task state management means 21 copies the address “TCB2-1” to the task of priority 2 to the running task pointer 11. As a result, the task of TCB2-1 is executed by the task processing unit 3.
【0044】次に、本実施例のタスク管理装置によるタ
スク管理方法について、図2を参照しながら説明する。
図2は、本実施例のタスク管理装置によるコードレス電
話機のイベント処理の流れを示す説明図である。図2に
示す例において、回線1から3までには優先度1が回線
4には優先度2が割り当てられている。Next, a task management method by the task management device of this embodiment will be described with reference to FIG.
FIG. 2 is an explanatory diagram showing a flow of event processing of the cordless telephone by the task management device of this embodiment. In the example shown in FIG. 2, priority 1 is assigned to lines 1 to 3 and priority 2 is assigned to line 4.
【0045】まず、優先度2の回線4がデータを受信す
ると、本実施例のタスク管理装置に内蔵されているタス
ク状態管理手段21は、タスク状態管理テーブル2の優
先度2の実行可能状態タスクポインタ12に回線4のタ
スクへのアドレス「TCB2-1」を複写し、同時に実行
中タスクポインタ11にも「TCB2-1」を複写するの
で、タスク処理部3は、回線4のタスク処理を行う(s
30)。そして、待ちタスクは無い状態である。First, when the line 4 having the priority 2 receives the data, the task state management means 21 incorporated in the task management apparatus of the present embodiment causes the task 2 of the task state management table 2 to execute the executable state tasks of the priority 2. Since the address "TCB2-1" to the task of line 4 is copied to the pointer 12 and "TCB2-1" is also copied to the running task pointer 11 at the same time, the task processing unit 3 performs the task processing of line 4. (S
30). And there is no waiting task.
【0046】次に、回線4のタスク処理が終了しないう
ちに、回線3がデータを受信すると、タスク状態管理手
段21は、タスク状態管理テーブル2の優先度1の実行
可能状態タスクポインタ12に回線3のタスクへのアド
レス「TCB1-1」を複写し、TCB1-1の指すタスク
の優先度がTCB2-1の指すタスクの優先度より高いた
めに、実行中タスクポインタ11にも「TCB2-1」を
複写することとなり、タスク処理部3は、回線4のタス
クを待たせて回線3のタスク処理を行う(s31)。Next, when the line 3 receives the data before the task processing of the line 4 is completed, the task state management means 21 sends the line to the ready state task pointer 12 of the priority 1 in the task state management table 2. The address "TCB1-1" to the task of No. 3 is copied, and the priority of the task indicated by TCB1-1 is higher than the priority of the task indicated by TCB2-1. Is copied, and the task processing unit 3 causes the task of the line 4 to wait and performs the task processing of the line 3 (s31).
【0047】次に、回線3のタスク処理が終了しないう
ちに、回線1がデータを受信すると、タスク状態管理手
段21は、回線1のタスクへのアドレス「TCB1-2」
を回線3のタスクへのアドレス「TCB1-1」が指すタ
スク構造体4のアドレス格納部41に複写して、回線1
のタスクを回線3のタスクの後にデイジーチェイン状に
待ち行列に入れるが、実行中タスクポインタ11の書き
換えは行わないので、回線1,4のタスクを待たせて回
線3のタスク処理が続行される(s32)。Next, when the line 1 receives the data before the task processing of the line 3 is completed, the task state management means 21 causes the task "TCB1-2" for the task of the line 1 to be received.
Is copied to the address storage unit 41 of the task structure 4 pointed to by the address "TCB1-1" of the line 3 task, and the line 1
Task of line 3 is queued in a daisy-chain after the task of line 3, but the task pointer 11 under execution is not rewritten, so the tasks of line 1 and 4 are made to wait and the task processing of line 3 is continued. (S32).
【0048】次に、回線3のタスク処理が終了しないう
ちに、回線2がデータを受信すると、タスク状態管理手
段21は、同じように回線2のタスクへのアドレス「T
CB1-3」を回線1へのアドレス「TCB1-2」が指す
タスク構造体4のアドレス格納部41に複写して、回線
2のタスクを回線1のタスクの後にデイジーチェイン状
に待ち行列に入れるが、実行中タスクポインタ11の書
き換えは行わないので、回線2,1,4のタスクを待た
せて回線3のタスク処理が続行される(s33)。Next, when the line 2 receives the data before the task processing of the line 3 is completed, the task state management means 21 similarly sends the address "T" to the task of the line 2
CB1-3 "is copied to the address storage unit 41 of the task structure 4 pointed to by the address" TCB1-2 "to the line 1, and the task of line 2 is placed in a daisy-chained queue after the task of line 1. However, since the task pointer 11 being executed is not rewritten, the tasks of the lines 2, 1 and 4 are made to wait and the task processing of the line 3 is continued (s33).
【0049】次に、回線3のタスク処理が終了すると、
タスク状態管理手段21は、回線3のタスクへのアドレ
ス「TCB1-1」のタスク構造体4のアドレス格納部4
1に格納されている「TCB1-2」(タスク1のアドレ
ス)をタスク状態管理テーブル2の優先度1の実行可能
状態タスクポインタ12に複写し、同時に実行中タスク
ポインタ11にもTCB1-2を複写するので、回線1の
タスク処理が行われる(s34)。次に、回線1のタス
ク処理が終了すると、同じようにして回線1のタスクに
デイジーチェイン状につながれた回線2のタスク処理が
行われる(s35)。Next, when the task processing of the line 3 is completed,
The task state management means 21 uses the address storage unit 4 of the task structure 4 having the address “TCB1-1” for the task on the line 3.
“TCB1-2” (address of task 1) stored in 1 is copied to the ready state task pointer 12 of priority 1 of the task state management table 2, and at the same time TCB1-2 is also set in the running task pointer 11. Since copying is performed, task processing of line 1 is performed (s34). Next, when the task processing of the line 1 is completed, the task processing of the line 2 daisy-chained to the tasks of the line 1 is performed in the same manner (s35).
【0050】また、回線2のタスク処理が終了しないう
ちに、回線1がデータを受信すると、回線1のタスクは
回線2のタスクの次にデイジーチェイン状に待ち行列に
入り、回線2のタスク処理が続行される(s36)。回
線2のタスク処理が終了すると、回線2のタスクにデイ
ジーチェイン状につながれた回線1のタスク処理が行わ
れる(s37)。回線1のタスク処理が終了すると、処
理s30までで行われていた優先度の低い回線4のタス
ク処理が続行される(s38)。回線4のタスク処理が
終了すると、待ち行列は空となり(s39)、タスク状
態管理手段21での処理が終了する。If the line 1 receives data before the task processing of the line 2 is completed, the task of the line 1 is placed in a daisy-chained queue next to the task of the line 2 to process the task of the line 2. Is continued (s36). When the task processing of the line 2 is completed, the task processing of the line 1 daisy-chained to the task of the line 2 is performed (s37). When the task processing of the line 1 is completed, the task processing of the line 4 having a low priority, which has been performed up to the process s30, is continued (s38). When the task processing of the line 4 is completed, the queue becomes empty (s39), and the processing in the task status management means 21 is completed.
【0051】本実施例のタスク管理装置及びその制御方
法によれば、同一優先度に分類されたタスクを起動時間
順(受信順)に処理できるようにしているので、リアル
タイム処理を必要とする優先度の高いタスクをあまり待
たせることなく、複数タスクを効率的に管理することが
できる効果がある。According to the task management apparatus and the control method thereof of the present embodiment, the tasks classified into the same priority can be processed in the order of activation time (reception order). This has the effect of efficiently managing multiple tasks without having to wait for frequent tasks.
【0052】[0052]
【発明の効果】請求項1,2記載の発明によれば、タス
ク監視手段で決定された優先度のタスク状態管理テーブ
ルの実行可能状態タスクポインタの空き状態に応じて実
行可能状態タスクポインタ又はそれに接続するタスク構
造体に当該タスクのアドレスを格納して、優先度が高い
実行可能状態タスクポインタのアドレスを実行中タスク
ポインタに複写し、タスク処理手段が実行中タスクポイ
ンタに示すタスクを実行するタスク管理装置及びその制
御方法としているので、優先度の高い複数のイベント処
理のためのタスクをあまり待たせることなく、効率的な
タスク処理を実現できる効果がある。According to the first and second aspects of the present invention, the ready state task pointer or the ready state task pointer according to the free state of the ready state task pointer in the task state management table of the priority determined by the task monitoring means. A task that stores the address of the task in the connected task structure, copies the address of the high-priority ready state task pointer to the running task pointer, and causes the task processing means to execute the task indicated by the running task pointer. Since the management device and the control method thereof are used, there is an effect that efficient task processing can be realized without causing a task for a plurality of high-priority event processing to wait for a long time.
【0053】請求項3,4記載の発明によれば、タスク
状態管理手段が、処理終了タスクの優先度の実行可能状
態タスクポインタを空にし、その実行可能状態タスクポ
インタに接続するタスク構造体があればそのアドレス情
報を当該実行可能状態タスクポインタに格納し、その
後、優先度が高い実行可能状態タスクポインタのアドレ
スを実行中タスクポインタに複写し、タスク処理手段が
実行中タスクポインタに示すタスクを実行する請求項1
記載のタスク管理装置及びその制御方法としているの
で、優先度の高い複数のイベント処理のためのタスクを
あまり待たせることなく、効率的なタスク処理を実現で
きる効果がある。According to the third and fourth aspects of the invention, the task state management means empties the ready state task pointer of the priority of the processing end task and connects the task structure connected to the ready state task pointer. If there is, the address information is stored in the ready state task pointer, then the address of the ready state task pointer with a high priority is copied to the running task pointer, and the task processing means determines the task indicated by the running task pointer. Claim 1 to be executed
Since the task management device and the control method thereof are described, there is an effect that efficient task processing can be realized without waiting for a plurality of tasks for high-priority event processing.
【図1】本発明の一実施例に係るタスク管理装置の構成
ブロック図である。FIG. 1 is a configuration block diagram of a task management device according to an embodiment of the present invention.
【図2】本実施例のタスク管理装置によるコードレス電
話機のイベント処理の流れを示す説明図である。FIG. 2 is an explanatory diagram showing a flow of event processing of the cordless telephone by the task management device of the present embodiment.
【図3】本実施例のタスク管理装置におけるタスク状態
管理手段21の動作を例示するための説明図である。FIG. 3 is an explanatory diagram for illustrating the operation of a task status management means 21 in the task management device of this embodiment.
【図4】本実施例のタスク管理装置におけるタスク状態
管理手段21の動作を例示するための説明図である。FIG. 4 is an explanatory diagram for illustrating the operation of the task status management means 21 in the task management device of the present exemplary embodiment.
【図5】本実施例のタスク管理装置におけるタスク状態
管理手段21の動作を例示するための説明図である。FIG. 5 is an explanatory diagram for illustrating the operation of the task status management means 21 in the task management device of the present exemplary embodiment.
【図6】本実施例のタスク管理装置におけるタスク状態
管理手段21の動作を例示するための説明図である。FIG. 6 is an explanatory diagram for illustrating the operation of the task status management means 21 in the task management device of this embodiment.
【図7】本実施例のタスク管理装置におけるタスク状態
管理手段21の動作を例示するための説明図である。FIG. 7 is an explanatory diagram for illustrating the operation of the task status management means 21 in the task management device of the present exemplary embodiment.
【図8】コードレス電話機のタスク処理における従来の
タスク管理装置の動作を表す説明図である。FIG. 8 is an explanatory diagram showing an operation of a conventional task management device in task processing of a cordless telephone.
1…タスク監視手段、 2…タスク状態管理テーブル、
3…タスク処理部、4…タスク構造体、 21…タス
ク状態管理手段、 41…アドレス格納部、42…プロ
グラムカウンタ1 ... task monitoring means, 2 ... task state management table,
3 ... Task processing unit, 4 ... Task structure, 21 ... Task state management means, 41 ... Address storage unit, 42 ... Program counter
───────────────────────────────────────────────────── フロントページの続き (72)発明者 佐藤 健 秋田県南秋田郡天王町天王字長沼64 五洋 電子工業株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Ken Sato 64 Nagano, Tenno, Tenno-cho, Minami-Akita-gun, Akita Prefecture Goyo Denshi Kogyo Co., Ltd.
Claims (4)
タスクポインタと、優先度毎に実行可能な状態のタスク
のアドレスを示す実行可能状態タスクポインタとを具備
するタスク状態管理テーブルと、タスクの優先度を決定
するタスク監視手段と、前記タスク状態管理テーブルに
おける実行中タスクポインタが示すアドレスのタスクを
実行するタスク処理部と、同一優先度の実行可能状態タ
スクポインタにデイジーチェイン状に接続し、次の順番
待ちのタスクのアドレス情報を保持するタスク構造体
と、前記タスク監視手段の優先度の決定に従って当該優
先度のタスクのアドレスを実行可能状態タスクポインタ
又はそれに接続するタスク構造体に格納し、優先度が高
い実行可能状態タスクポインタのアドレスを前記実行中
タスクポインタに複写するタスク状態管理手段とを有す
ることを特徴とするタスク管理装置。1. A task status management table comprising a running task pointer that indicates the address of a task that is running, and a ready status task pointer that indicates the address of a task that is in a ready status for each priority. A task monitoring unit that determines the priority, a task processing unit that executes the task at the address indicated by the running task pointer in the task status management table, and a daisy-chain connection to the executable status task pointers of the same priority, The task structure holding the address information of the next waiting task and the address of the task of the priority according to the priority of the task monitoring means are stored in the executable task pointer or the task structure connected to it. , Copy the address of high-priority ready state task pointer to the running task pointer And a task status management means for performing the task management.
し、タスク状態管理手段が当該決定の優先度の実行可能
状態タスクポインタの空き状態に応じて前記実行可能状
態タスクポインタ又はそれに接続するタスク構造体に前
記タスクのアドレスを格納して、優先度が高い実行可能
状態タスクポインタのアドレスを実行中タスクポインタ
に複写し、タスク処理手段が前記実行中タスクポインタ
に示すタスクを実行することを特徴とする請求項1記載
のタスク管理装置の制御方法。2. The task monitoring means determines the priority of the task, and the task status management means determines the priority of the task and the task connected to the executable status task pointer according to the free state of the executable status task pointer of the determined priority. The address of the task is stored in a structure, the address of the high-priority ready state task pointer is copied to the running task pointer, and the task processing means executes the task indicated by the running task pointer. The control method of the task management device according to claim 1.
部でのタスク処理が終了すると当該タスクの優先度のタ
スク状態管理テーブルにおける実行可能状態タスクポイ
ンタを空にし、前記実行可能状態タスクポインタに接続
するタスク構造体があればそのアドレス情報を前記実行
可能状態タスクポインタに格納し、その後、優先度が高
い実行可能状態タスクポインタのアドレスを前記実行中
タスクポインタに複写するタスク状態管理手段であるこ
とを特徴とする請求項1記載のタスク管理装置。3. The task status management means empties the ready status task pointer in the task status management table of the priority of the task when the task processing in the task processing unit is completed, and connects to the ready status task pointer. If there is a task structure to be stored, its address information is stored in the ready state task pointer, and then the address of the ready state task pointer with high priority is copied to the running task pointer. The task management device according to claim 1, wherein
と、タスク状態管理手段が、処理が終了したタスクの優
先度の実行可能状態タスクポインタを空にし、前記実行
可能状態タスクポインタに接続するタスク構造体があれ
ばそのアドレス情報を前記実行可能状態タスクポインタ
に格納し、その後、優先度が高い実行可能状態タスクポ
インタのアドレスを実行中タスクポインタに複写し、前
記タスク処理手段が前記実行中タスクポインタに示すタ
スクを実行することを特徴とする請求項3記載のタスク
管理装置の制御方法。4. When the task processing in the task processing unit is completed, the task state management means empties the ready state task pointer of the priority of the finished task and connects the task to the ready state task pointer. If there is a structure, its address information is stored in the ready-state task pointer, then the address of the ready-state task pointer with a high priority is copied to the running task pointer, and the task processing means executes the running task. 4. The control method of the task management device according to claim 3, wherein the task indicated by the pointer is executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6892795A JPH08241212A (en) | 1995-03-03 | 1995-03-03 | Task management device and control method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6892795A JPH08241212A (en) | 1995-03-03 | 1995-03-03 | Task management device and control method thereof |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH08241212A true JPH08241212A (en) | 1996-09-17 |
Family
ID=13387785
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6892795A Pending JPH08241212A (en) | 1995-03-03 | 1995-03-03 | Task management device and control method thereof |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH08241212A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7614053B2 (en) * | 2004-02-20 | 2009-11-03 | Sony Computer Entertainment Inc. | Methods and apparatus for task management in a multi-processor system |
| US8028292B2 (en) | 2004-02-20 | 2011-09-27 | Sony Computer Entertainment Inc. | Processor task migration over a network in a multi-processor system |
-
1995
- 1995-03-03 JP JP6892795A patent/JPH08241212A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7614053B2 (en) * | 2004-02-20 | 2009-11-03 | Sony Computer Entertainment Inc. | Methods and apparatus for task management in a multi-processor system |
| US8028292B2 (en) | 2004-02-20 | 2011-09-27 | Sony Computer Entertainment Inc. | Processor task migration over a network in a multi-processor system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5613114A (en) | System and method for custom context switching | |
| US6996821B1 (en) | Data processing systems and method for batching tasks of the same type in an instruction cache | |
| US6199121B1 (en) | High speed dynamic chaining of DMA operations without suspending a DMA controller or incurring race conditions | |
| EP0969383A2 (en) | Method for efficient non-virtual main memory management | |
| EP0528221A2 (en) | Asynchronous or synchronous operation of event signaller by event management services in a computer system | |
| EP0528222A2 (en) | Notification of event handlers in broadcast or propagation mode by event management services in a computer system | |
| EP0528220A2 (en) | Dynamically established event monitors in event management services of a computer system | |
| JPH06180654A (en) | Method and apparatus for switching message between transtting-side process and plurality of receiving-side processes | |
| EP0547991A2 (en) | Adaptive method for starting tasks in a multi-tasking operating system | |
| US7770177B2 (en) | System for memory reclamation based on thread entry and release request times | |
| JP2001175460A (en) | Program distribution management system | |
| JP2821345B2 (en) | Asynchronous I/O control method | |
| JP3245500B2 (en) | Event management method in multi-programming | |
| CN119356625B (en) | Drive task management method, device and storage medium of tape library system | |
| JP2001256062A (en) | Interrupt processing method and arithmetic processing device using the method | |
| JPH08241212A (en) | Task management device and control method thereof | |
| JP2000315192A (en) | Client server system, server, application management method, and recording medium | |
| EP1011045B1 (en) | Object-oriented job scheduler | |
| JPH08190491A (en) | Task switching method | |
| JPH0895771A (en) | Service processing system | |
| JPH08297585A (en) | Data transfer method by operating system | |
| CN121614084A (en) | Data storage method, device and equipment based on embedded platform | |
| JPH04167152A (en) | Idle memory control system | |
| JPH0424828A (en) | Multi-task control system | |
| JP3110373B2 (en) | Microcomputer and its task control method |