JPH05127926A - Task controller - Google Patents

Task controller

Info

Publication number
JPH05127926A
JPH05127926A JP28671091A JP28671091A JPH05127926A JP H05127926 A JPH05127926 A JP H05127926A JP 28671091 A JP28671091 A JP 28671091A JP 28671091 A JP28671091 A JP 28671091A JP H05127926 A JPH05127926 A JP H05127926A
Authority
JP
Japan
Prior art keywords
task
unit
control information
register
identification number
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
JP28671091A
Other languages
Japanese (ja)
Inventor
Kazumi Harada
一巳 原田
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 JP28671091A priority Critical patent/JPH05127926A/en
Publication of JPH05127926A publication Critical patent/JPH05127926A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce overhead required for task switching by grouping tasks by means of a common characteristic and exchanging the register of a peculiar part without exchanging the register of a common part at the time of switching the tasks. CONSTITUTION:A task control information extraction part 5 extracts task control information which is inputted from a task input interface 1 with the tasks and which provides information on the state of the tasks and on priority, and they are stored in a task control information storage part 6. A task control part 7 exchanges the tasks by information on a task storage peculiar register part 14, a task storage common register part 15 and a task control information storage part 6 through CPU and a task input/output interface 8. When the next task is in the same group as the present task, the common part is left as it is and the task of the peculiar part is exchanged.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はコンピューターのマルチ
タスキングに利用する。特に、タスク切り換え技術に関
する。
FIELD OF THE INVENTION The present invention is used for computer multitasking. In particular, it relates to task switching technology.

【0002】[0002]

【従来の技術】複数のタスクにより動作するオペレーテ
ィングシステムでは、実行するタスクごとにレジスタを
割り当てて、ディスパッチ処理においてタスクを切り換
える場合には、現タスク(現在まで実行していたタス
ク)のレジスタの内容を特定の記憶領域に退避し、次タ
スク(次に実行しようとしているタスク)のレジスタの
内容を特定の記憶領域から読出していた。
2. Description of the Related Art In an operating system operating by a plurality of tasks, when assigning a register for each task to be executed and switching the task in the dispatch processing, the contents of the register of the current task (the task that has been executed up to now) Was saved in a specific storage area, and the content of the register of the next task (the task to be executed next) was read from the specific storage area.

【0003】図4および図5を参照して従来例を説明す
る。図4は従来例のブロック図である。図5は従来例の
タスク制御部7の動作を示すフローチャートである。
A conventional example will be described with reference to FIGS. 4 and 5. FIG. 4 is a block diagram of a conventional example. FIG. 5 is a flowchart showing the operation of the task control unit 7 of the conventional example.

【0004】タスク入力インターフェース1から入力さ
れたタスクは、タスク識別番号付与部2にてタスク制御
のための整数によるタスク識別番号を付与される。タス
ク別レジスタアドレス指定部3によりタスク識別番号に
したがってタスクをタスク格納レジスタ部4に格納す
る。
The task input from the task input interface 1 is given a task identification number by an integer for task control in the task identification number giving section 2. The task-specific register address designation unit 3 stores the task in the task storage register unit 4 according to the task identification number.

【0005】タスクと共に入力されたその他のタスク制
御情報はタスク制御情報抽出部5により抽出され、タス
クの状態および優先順位などのデータがタスク制御情報
格納部6に格納される。
Other task control information input together with the task is extracted by the task control information extracting section 5, and data such as task status and priority order is stored in the task control information storing section 6.

【0006】タスク制御部7では図5に示すフローチャ
ートのとおり、タスク制御が行われる。現在CPUで実
行中の現タスクの次に実行する次タスクをタスク制御情
報格納部6のタスク制御情報を参照して判断し、そのタ
スクが現タスクと同じか否か判断する。その結果、次タ
スクが現タスクと同じであればタスクの切り換えは実行
せず、その次のタスクを同様に検証する。次タスクが現
タスクと異なれば、現タスクをタスク格納レジスタ部4
に格納して退避させ、次のタスクをタスク格納レジスタ
部4から読出す。このようにして、すべてのタスクが実
行されるまでこの動作は繰り返される。
The task control section 7 performs task control as shown in the flowchart of FIG. The next task to be executed next to the current task currently being executed by the CPU is determined by referring to the task control information in the task control information storage unit 6, and it is determined whether the task is the same as the current task. As a result, if the next task is the same as the current task, task switching is not executed and the next task is similarly verified. If the next task is different from the current task, the current task is stored in the task storage register unit 4
Then, the next task is read from the task storage register unit 4. In this way, this operation is repeated until all tasks have been performed.

【0007】また、ある種のオペレーティングシステム
では、一定のレジスタについてはオペレーティングシス
テムがタスク切り換えを行う場合に、内容の入れ換えを
行う対象から外し、全てのタスクで共有している場合も
ある。
Further, in a certain type of operating system, when a certain register is exchanged by the operating system for a certain register, the contents may be excluded from the target for exchanging the contents and may be shared by all the tasks.

【0008】[0008]

【発明が解決しようとする課題】この一定のレジスタに
ついてはオペレーティングシステムがタスク切り換えを
行う場合に、内容の入れ換えを行う対象から外し、全て
のタスクで共有する方式では、タスクがそのレジスタを
計算機資源と見て資源管理を行わねばならず効率的では
ない。
In the method in which the contents of a certain register are excluded from the target of exchanging the contents when the operating system switches the task and the contents are shared by all the tasks, the task allocates the register to the computer resource. Seeing that, resource management has to be done and it is not efficient.

【0009】また、タスク切り換えを行うときに、レジ
スタの内容を単純に入れ換える従来の方式には、次の問
題点がある。
Further, the conventional method of simply exchanging the contents of the registers when switching tasks has the following problems.

【0010】まず、タスク切り換えに伴うレジスタ入れ
換えのオーバーヘッドが大きくなってしまうという問題
点がある。
First, there is a problem that the overhead of register replacement accompanying task switching becomes large.

【0011】最近のマイクロプロセッサでは、レジスタ
のビット長の拡張やレジスタ本数の増加により、一つの
マイクロプロセッサのレジスタの内容を入れ換えること
のオーバーヘッドが大きくなっている。たとえば、従来
の日本電気株式会社製のμPD70116(V30)で
は、演算などの処理を行うための16ビットレジスタが
8本であったものが、最近のμPD70616(V6
0)では、32ビットレジスタが32本となっていて、
入れ換えをおこなうべき情報量は8倍にもなっている。
In recent microprocessors, the overhead of exchanging the contents of registers in one microprocessor is increasing due to the expansion of the bit length of the registers and the increase in the number of registers. For example, the conventional μPD70116 (V30) manufactured by NEC Corporation had eight 16-bit registers for performing processing such as calculation, but the recent μPD70616 (V6)
In 0), there are 32 32-bit registers,
The amount of information that needs to be replaced is eight times larger.

【0012】さらに、高精度の浮動少数点演算や高次元
の行列演算を行うために、一つまたは複数のコプロセッ
サを付加することでマイクロプロセッサの機能拡張を図
ることが行われるが、このようなコプロセッサもレジス
タを内蔵している場合があり、レジスタの内容を入れ換
えることのオーバーヘッドを増加させる原因になってい
る。たとえば前記μPD70616(V60)用の浮動
小数点演算コプロセッサμPD72691(FPP)の
レジスタは80ビット長のレジスタが32本となってお
り、入れ換えを行うべき情報量は24倍にもなる。
Further, in order to perform high-precision floating-point calculation and high-dimensional matrix calculation, the function of the microprocessor is expanded by adding one or more coprocessors. Some coprocessors also have built-in registers, which increases the overhead of exchanging the contents of registers. For example, the floating point arithmetic coprocessor μPD72691 (FPP) for the μPD70616 (V60) has 32 registers each having an 80-bit length, and the amount of information to be exchanged is 24 times.

【0013】次に、タスク間通信に伴うオーバーヘッド
が大きくなってしまうという問題点がある。
Next, there is a problem that the overhead associated with communication between tasks becomes large.

【0014】たとえば、特定のタスクに浮動小数点演算
などの演算処理を実行させ、また別の特定のタスクには
その制御処理を実行させ、演算処理の結果を共有メモリ
やメッセージなどのタスク間通信手段により演算処理の
タスクから制御処理のタスクに通知する手段と、タスク
間の同期手段により、全体として一定の処理を進めるこ
とがある。このようなソフトウェアでは、専用のレジス
タを持つコプロセッサで浮動少数点演算を行うときは、
制御処理を行うタスクはこれらの浮動小数点演算用のレ
ジスタを使用しておらず、タスク間通信手段により結果
を通知することは基本的に無駄であり、大きなオーバー
ヘッドとなる。
For example, a specific task is caused to perform arithmetic processing such as floating point arithmetic, and another specific task is caused to perform its control processing, and the result of the arithmetic processing is communicated between tasks such as shared memory or message. By means of the means for notifying the task of the control processing from the task of the arithmetic processing and the means for synchronizing the tasks, a certain processing may be performed as a whole. In such software, when performing floating point arithmetic with a coprocessor that has dedicated registers,
The task that performs the control process does not use these registers for floating point arithmetic, and the notification of the result by the inter-task communication means is basically useless and becomes a large overhead.

【0015】本発明はこのような背景に行われたもので
あり、複数のタスクをグループ化し、そのグループごと
にタスク切り換えの際に入れ換えるレジスタを指定する
ことでレジスタの入れ換えに伴うオーバーヘッドを最小
限に抑え、効率のよいマルチタスク環境を形成する装置
の提供を目的とする。
The present invention has been made against such a background. By grouping a plurality of tasks and designating the registers to be swapped at the time of task switching for each group, the overhead accompanying the swapping of registers is minimized. It is an object of the present invention to provide an apparatus that suppresses the temperature and forms an efficient multitask environment.

【0016】[0016]

【課題を解決するための手段】本発明はタスクを入力す
るタスク入力インターフェースと、このタスク入力イン
ターフェースから入力されたタスクにタスク識別番号を
付与するタスク識別番号付与部と、このタスク識別番号
付与部により識別番号を付与された各タスクにそれぞれ
格納されるレジスタのアドレスを指定するタスク別レジ
スタアドレス指定部と、このタスク別レジスタアドレス
指定部により指定されたアドレスに各タスクを格納する
タスク格納レジスタ部と、前記タスク入力インターフェ
ースを介してタスクと共に入力されたタスク制御情報を
抽出するタスク制御情報抽出部と、このタスク制御情報
抽出部から抽出されたタスク制御情報を格納するタスク
制御情報格納部と、このタスク制御情報格納部に格納さ
れたタスク制御情報にしたがってタスクを制御するタス
ク制御部とを備えたタスク制御装置において、前記識別
番号を付与された各タスクを類似したタスクごとにグル
ープに分類して前記タスク別レジスタアドレス指定部に
あたえるタスクグループ分類手段を設け、前記タスク格
納レジスタ部には、この分類された一つのグループに属
する各タスクをその固有部分と共有部分とに分けて格納
する手段を含み、前記タスク制御部には入出力インター
フェースに接続されたCPUで実行されるタスクを切り
換えるときに、現在実行中のタスクと次に実行予定のタ
スクが同じグループに属するときには、そのタスクの固
有部分を切り換える手段を含むことを特徴とする。
The present invention provides a task input interface for inputting a task, a task identification number assigning section for assigning a task identification number to a task input from the task input interface, and this task identification number assigning section. Task-specific register address designating section for designating the address of the register to be stored in each task assigned with the identification number, and a task storage register section for storing each task at the address designated by the task-specific register address designating section A task control information extraction unit that extracts task control information input together with a task via the task input interface; and a task control information storage unit that stores the task control information extracted from the task control information extraction unit, The task control information stored in this task control information storage In a task control device having a task control unit for controlling tasks according to the above, task groups classified by assigning the identification number to each task into similar groups Means is provided, and the task storage register section includes means for storing each task belonging to this classified one group by dividing it into a unique part and a shared part, and the task control section has an input / output interface. When the task to be executed by the connected CPU is switched, when the currently executing task and the task to be executed next belong to the same group, a means for switching the unique part of the task is included.

【0017】[0017]

【作用】タスク入力インターフェースから入力されたタ
スクは、タスク識別番号付与部にて整数によるタスク識
別番号を付与される。
The task input from the task input interface is assigned an integer task identification number by the task identification number assigning section.

【0018】タスクグループ分類部では、このタスク識
別番号によりタスクを内容および動作が類似したグルー
プごとに分類し、この分類されたタスクグループごとに
整数によるタスクグループ識別番号がタスクグループ識
別番号付与部により付与される。
The task group classification unit classifies tasks by the task identification number into groups having similar contents and operations, and the task group identification number assigning unit assigns an integer task group identification number to each of the classified task groups. Granted.

【0019】このグループ分類の過程で各タスクの持つ
固有部分と共有部分は明らかにされており、この固有部
分はタスク別固有レジスタアドレス指定部により指定さ
れたアドレスで、タスク格納固有レジスタ部に格納され
る。同様にして、共通部分はタスク別共有レジスタアド
レス指定部により指定されたアドレスで、タスク格納共
有レジスタ部に格納される。
In the course of this group classification, the unique part and shared part of each task have been clarified, and this unique part is stored in the task storing peculiar register part at the address specified by the task-specific peculiar register address specifying part. To be done. Similarly, the common part is stored in the task storage shared register part at the address designated by the task-specific shared register addressing part.

【0020】タスク入力インターフェースからタスクと
共に入力され、タスクの状態および優先順位などの情報
を提供するタスク制御情報はタスク制御情報抽出部によ
り抽出され、タスク制御情報格納部に格納される。
The task control information input from the task input interface together with the task and providing information such as the status and priority of the task is extracted by the task control information extraction unit and stored in the task control information storage unit.

【0021】タスク制御部は前記タスク格納固有レジス
タ部、タスク格納共有レジスタ部およびタスク制御情報
格納部の情報により、CPUとタスク入出力インターフ
ェースを介してタスクの切り換えを行う。
The task control unit switches the task via the CPU and the task input / output interface according to the information of the task storage specific register unit, the task storage shared register unit and the task control information storage unit.

【0022】このとき本発明の特徴とするところは、次
タスクが現タスクと同じタスクグループであるときに、
共通部分はそのままにして固有部分のタスク切り換えを
行う点にある。
At this time, the feature of the present invention is that when the next task is the same task group as the current task,
The task is to switch the task of the unique part while leaving the common part as it is.

【0023】[0023]

【実施例】図1を参照して本発明実施例装置の構成を説
明する。図1は本発明実施例装置の構成を示す図であ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of an apparatus according to an embodiment of the present invention will be described with reference to FIG. FIG. 1 is a view showing the arrangement of an apparatus according to the present invention.

【0024】本発明はタスクを入力するタスク入力イン
ターフェース1と、このタスク入力インターフェース1
から入力されたタスクにタスク識別番号を付与するタス
ク識別番号付与部2と、このタスク識別番号付与部2に
より識別番号を付与された各タスクにそれぞれ格納され
るレジスタのアドレスを指定するタスク別レジスタアド
レス指定部3と、このタスク別レジスタアドレス指定部
3により指定されたアドレスに各タスクを格納するタス
ク格納レジスタ部4と、タスク入力インターフェース1
を介してタスクと共に入力されたタスク制御情報を抽出
するタスク制御情報抽出部5と、このタスク制御情報抽
出部5から抽出されたタスク制御情報を格納するタスク
制御情報格納部6と、このタスク制御情報格納部6に格
納されたタスク制御情報にしたがってタスクを制御する
タスク制御部7とを備えたタスク制御装置において、前
記識別番号を付与された各タスクを類似したタスクごと
にグループに分類してタスク別レジスタアドレス指定部
3に与えるグループ分類手段を設け、タスク格納レジス
タ部4には、この分類された一つのグループに属する各
タスクをその固有部分と共有部分とに分けて格納する手
段を含み、タスク制御部7にはタスク入出力インターフ
ェース8に接続されたCPUで実行されるタスクを切り
換えるときに、現在実行中のタスクと次に実行予定のタ
スクが同じグループに属するときには、そのタスクの固
有部分を切り換える手段を含むことを特徴とする。
The present invention is a task input interface 1 for inputting a task, and the task input interface 1
Task identification number assigning section 2 that assigns a task identification number to the task input from the task identification register, and a task-specific register that specifies the address of the register that is stored in each task that has been assigned an identification number by the task identification number assigning section 2. An address designation unit 3, a task storage register unit 4 for storing each task at an address designated by the task-specific register address designation unit 3, and a task input interface 1
Task control information extraction unit 5 that extracts task control information input together with a task via the task, task control information storage unit 6 that stores the task control information extracted from this task control information extraction unit 5, and this task control In a task control device including a task control unit 7 that controls a task according to the task control information stored in the information storage unit 6, each task assigned with the identification number is classified into groups for each similar task. A group categorizing means is provided to the task-specific register address designating section 3, and the task storing register section 4 includes means for storing each task belonging to the one categorized group by dividing it into a unique part and a shared part. , The task control unit 7 has a function for switching the task executed by the CPU connected to the task input / output interface 8 when When executing task and the execution plan to the next task belongs to the same group, characterized in that it comprises a means for switching a specific part of the task.

【0025】次に、本発明実施例装置の動作を図1およ
び図2を参照して説明する。図2はタスクの固有部分お
よび共有部分を示す図である。
Next, the operation of the apparatus of the present invention will be described with reference to FIGS. FIG. 2 is a diagram showing a unique part and a shared part of a task.

【0026】タスク入力インターフェース1から入力さ
れたタスクは、タスク識別番号付与部2にて整数による
タスク識別番号を付与される。
The task input from the task input interface 1 is assigned an integer task identification number by the task identification number assigning section 2.

【0027】タスクグループ分類部10では、このタス
ク識別番号によりタスクを内容および動作が類似したグ
ループごとに分類し、この分類されたタスクグループご
とに整数によるタスクグループ識別番号がタスクグルー
プ識別番号付与部11により付与される。
The task group classification unit 10 classifies the tasks by the task identification number into groups having similar contents and operations, and the task group identification number by an integer is assigned to each of the classified task groups. It is given by 11.

【0028】図2に示すように、このグループ分類の過
程で各タスクの持つ固有部分20および21と共有部分
22は明らかにされており、この固有部分20および2
1はタスク別固有レジスタアドレス指定部12により指
定されたアドレスで、タスク格納固有レジスタ部14に
格納される。同様にして、共通部分はタスク別共有レジ
スタアドレス指定部13により指定されたアドレスで、
タスク格納共有レジスタ部15に格納される。
As shown in FIG. 2, the unique parts 20 and 21 and the common part 22 of each task are clarified in the process of the group classification, and the unique parts 20 and 2 are shown.
1 is an address designated by the task-specific peculiar register address designating section 12 and is stored in the task storage peculiar register section 14. Similarly, the common portion is the address designated by the task-specific shared register address designating unit 13,
It is stored in the task storage shared register unit 15.

【0029】タスク入力インターフェース1からタスク
と共に入力され、タスクの状態および優先順位などの情
報を提供するタスク制御情報はタスク制御情報抽出部5
により抽出され、タスク制御情報格納部6に格納され
る。
The task control information, which is input from the task input interface 1 together with the task and provides information such as the status and priority of the task, is the task control information extraction unit 5.
And is stored in the task control information storage unit 6.

【0030】タスク制御部7はタスク格納固有レジスタ
部14、タスク格納共有レジスタ部15およびタスク制
御情報格納部6の情報により、CPUとタスク入出力イ
ンターフェース8を介してタスクの切り換えを行う。
The task control unit 7 switches tasks via the CPU and the task input / output interface 8 according to the information in the task storage specific register unit 14, the task storage shared register unit 15, and the task control information storage unit 6.

【0031】このとき本発明の特徴とするところは、次
タスクが現タスクと同じタスクグループであるときに、
共通部分はそのままにして固有部分のタスク切り換えを
行う点にあるが、この動作を図3を参照して説明する。
図3は本発明実施例装置のタスク制御部の動作を示すフ
ローチャートである。
At this time, the feature of the present invention is that when the next task is the same task group as the current task,
The task is switched to the unique portion while leaving the common portion as it is. This operation will be described with reference to FIG.
FIG. 3 is a flow chart showing the operation of the task control unit of the apparatus of the present invention.

【0032】タスク制御部7はタスク制御情報格納部6
の情報により、次タスクを決定する。そのタスクが現タ
スクと同じか否か判断し、同じであればその次の次タス
クを検証する。このとき現タスクと次タスクが異なれ
ば、このタスクが属するタスクグループ識別番号からタ
スクグループを検証し、タスクグループが同じか否か判
断する。これもまた異なれば、現タスクと次タスクの間
には共有部分は存在しないことになるので、現タスクの
すべてのレジスタは次タスクと入れ換えられる。手順と
しては、まず最初のグループ分類のときに共有部分とし
た部分がタスク格納共有レジスタ部15に格納され退避
する。次に、次タスクの共有部分に相当する部分がタス
ク格納共有レジスタ部15から読出されてCPU側のレ
ジスタに格納される。続いて現タスクの固有部分とした
部分がタスク格納固有レジスタ部14に格納され退避す
る。次に、次タスクの固有部分に相当する部分がタスク
格納固有レジスタ部14から読出されてCPU側のレジ
スタに格納されすべてのレジスタが入れ換えられる。
The task control section 7 is a task control information storage section 6
The next task is decided based on the information. It is determined whether the task is the same as the current task, and if the task is the same, the next next task is verified. At this time, if the current task and the next task are different, the task group is verified from the task group identification number to which this task belongs, and it is determined whether the task groups are the same. If this is also different, there is no shared part between the current task and the next task, so all registers of the current task are replaced with the next task. As a procedure, first, a portion which is a shared portion in the first group classification is stored in the task storage shared register unit 15 and saved. Next, a portion corresponding to the shared portion of the next task is read from the task storage shared register unit 15 and stored in the register on the CPU side. Subsequently, the part that is the unique part of the current task is stored in the task storage unique register unit 14 and saved. Next, a portion corresponding to the unique portion of the next task is read from the task storage unique register unit 14 and stored in the CPU side register, and all the registers are replaced.

【0033】次に、本発明実施例装置の特徴である同じ
グループであったときの、タスク切り換え手順を説明す
る。同じタスクグループ識別番号を持つ現タスクと次タ
スクは共有部分を共用することが可能である。したがっ
て入れ換えを要する部分は固有部分である。まず、現タ
スクの固有部分がタスク格納固有レジスタ部14に格納
され退避する。次に、次タスクの固有部分がタスク格納
固有レジスタ部14から読出されCPU側のレジスタに
格納される。このようにして全レジスタを入れ換えるこ
となく、次タスクがCPUに入力され実行される。
Next, the task switching procedure for the same group, which is a feature of the apparatus of the present invention, will be described. The current task and the next task having the same task group identification number can share the shared part. Therefore, the part that needs to be replaced is a unique part. First, the peculiar part of the current task is stored in the task storage peculiar register unit 14 and saved. Next, the peculiar part of the next task is read from the task storing peculiar register unit 14 and stored in the register on the CPU side. In this way, the next task is input to the CPU and executed without replacing all registers.

【0034】[0034]

【発明の効果】タスクをグループ分類して共有部分と固
有部分とに分けることにより、共有部分のレジスタを入
れ換えることなく共用し、タスク切り換えのオーバーヘ
ッドを小さくすることができる。
By classifying the tasks into the shared part and the unique part by grouping the tasks, the registers of the shared part can be shared without being exchanged, and the task switching overhead can be reduced.

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

【図1】本発明実施例装置のブロック図。FIG. 1 is a block diagram of an apparatus according to an embodiment of the present invention.

【図2】タスクの固有部分および共有部分を示す図。FIG. 2 is a diagram showing a unique part and a shared part of a task.

【図3】本発明実施例装置のタスク制御部の動作を示す
フローチャート。
FIG. 3 is a flowchart showing the operation of the task control unit of the device of the present invention.

【図4】従来例のブロック図。FIG. 4 is a block diagram of a conventional example.

【図5】従来例のタスク制御部の動作を示すフローチャ
ート。
FIG. 5 is a flowchart showing the operation of a task control unit of a conventional example.

【符号の説明】[Explanation of symbols]

1 タスク入力インターフェース 2 タスク識別番号付与部 3 タスク別レジスタアドレス指定部 4 タスク格納レジスタ部 5 タスク制御情報抽出部 6 タスク制御情報格納部 7 タスク制御部 8 タスク入出力インターフェース 10 タスクグループ分類部 11 タスクグループ識別番号付与部 12 タスク別固有レジスタアドレス指定部 13 タスク別共有レジスタアドレス指定部 14 タスク格納固有レジスタ部 15 タスク格納共有レジスタ部 20、21固有部分 22 共有部分 1 task input interface 2 task identification number assignment unit 3 task-specific register address designation unit 4 task storage register unit 5 task control information extraction unit 6 task control information storage unit 7 task control unit 8 task input / output interface 10 task group classification unit 11 tasks Group identification number assigning unit 12 Task-specific peculiar register address designation unit 13 Task-specific shared register address designation unit 14 Task storage unique register unit 15 Task storage shared register unit 20, 21 Unique portion 22 Shared portion

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 タスクを入力するタスク入力インターフ
ェースと、このタスク入力インターフェースから入力さ
れたタスクにタスク識別番号を付与するタスク識別番号
付与部と、このタスク識別番号付与部により識別番号を
付与された各タスクにそれぞれ格納されるレジスタのア
ドレスを指定するタスク別レジスタアドレス指定部と、
このタスク別レジスタアドレス指定部により指定された
アドレスに各タスクを格納するタスク格納レジスタ部
と、前記タスク入力インターフェースを介してタスクと
共に入力されたタスク制御情報を抽出するタスク制御情
報抽出部と、このタスク制御情報抽出部から抽出された
タスク制御情報を格納するタスク制御情報格納部と、こ
のタスク制御情報格納部に格納されたタスク制御情報に
したがってタスクを制御するタスク制御部とを備えたタ
スク制御装置において、 前記識別番号を付与された各タスクを類似したタスクご
とにグループに分類して前記タスク別レジスタアドレス
指定部に与えるタスクグループ分類手段を設け、 前記タスク格納レジスタ部には、この分類された一つの
グループに属する各タスクをその固有部分と共有部分と
に分けて格納する手段を含み、 前記タスク制御部には、入出力インターフェースに接続
されたCPUで実行されるタスクを切り換えるときに、
現在実行中のタスクと次に実行予定のタスクが同じグル
ープに属するときには、そのタスクの固有部分を切り換
える手段を含むことを特徴とするタスク制御装置。
1. A task input interface for inputting a task, a task identification number assigning unit for assigning a task identification number to a task input from this task input interface, and an identification number assigned by this task identification number assigning unit. A task-specific register address specification unit that specifies the address of the register stored in each task,
A task storage register unit for storing each task at an address designated by the task-specific register address designation unit, a task control information extraction unit for extracting task control information input together with the task via the task input interface, Task control including a task control information storage unit that stores task control information extracted from the task control information extraction unit, and a task control unit that controls a task according to the task control information stored in the task control information storage unit The apparatus is provided with task group classification means for classifying each task assigned with the identification number into groups for each similar task, and giving the task-specific register address designation section to the task storage register section. Each task belonging to another group is divided into its unique part and shared part. Includes means for separately storing, on the task control unit, when switching the tasks performed by the CPU connected to the input-output interface,
A task control device comprising means for switching a unique part of a task when a task currently being executed and a task to be executed next belong to the same group.
JP28671091A 1991-10-31 1991-10-31 Task controller Pending JPH05127926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28671091A JPH05127926A (en) 1991-10-31 1991-10-31 Task controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28671091A JPH05127926A (en) 1991-10-31 1991-10-31 Task controller

Publications (1)

Publication Number Publication Date
JPH05127926A true JPH05127926A (en) 1993-05-25

Family

ID=17707998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28671091A Pending JPH05127926A (en) 1991-10-31 1991-10-31 Task controller

Country Status (1)

Country Link
JP (1) JPH05127926A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6430594B1 (en) 1997-02-17 2002-08-06 Nec Corporation Real-time operating system and a task management system therefor
WO2003091878A3 (en) * 2002-04-25 2004-11-25 Livedevices Ltd Reduced overhead context-saving in static priority scheduled operating systems
WO2003093995A3 (en) * 2002-04-30 2004-12-29 Livedevices Ltd Dispatch in priority pre-emptive real-time operating systems
US7082607B2 (en) * 2002-04-25 2006-07-25 Livedevices Limited Reduced-overhead context-saving in static priority scheduled operating systems
US7386707B2 (en) 2002-01-09 2008-06-10 Matsushita Electric Industrial Co., Ltd. Processor and program execution method capable of efficient program execution
US7735087B2 (en) 2003-03-13 2010-06-08 Panasonic Corporation Task switching apparatus, method and program
US7783401B2 (en) 2006-08-10 2010-08-24 Denso Corporation Method and device for managing tasks of in-vehicle electronic control unit
WO2010097847A1 (en) * 2009-02-24 2010-09-02 パナソニック株式会社 Processor device and multi-threaded processor device
US7904390B2 (en) * 2001-09-20 2011-03-08 Sony Corporation Management system and management method for charging object apparatus, management apparatus and charging object apparatus
JP2012064086A (en) * 2010-09-17 2012-03-29 Fujitsu Ltd Information processor, and control method and control program for the same

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6430594B1 (en) 1997-02-17 2002-08-06 Nec Corporation Real-time operating system and a task management system therefor
US7904390B2 (en) * 2001-09-20 2011-03-08 Sony Corporation Management system and management method for charging object apparatus, management apparatus and charging object apparatus
US9823946B2 (en) 2002-01-09 2017-11-21 Socionext Inc. Processor and program execution method capable of efficient program execution
US8719827B2 (en) 2002-01-09 2014-05-06 Panasonic Corporation Processor and program execution method capable of efficient program execution
US8006076B2 (en) 2002-01-09 2011-08-23 Panasonic Corporation Processor and program execution method capable of efficient program execution
US7930520B2 (en) 2002-01-09 2011-04-19 Panasonic Corporation Processor and program execution method capable of efficient program execution
US7386707B2 (en) 2002-01-09 2008-06-10 Matsushita Electric Industrial Co., Ltd. Processor and program execution method capable of efficient program execution
US7921281B2 (en) 2002-01-09 2011-04-05 Panasonic Corporation Processor and program execution method capable of efficient program execution
EP1770517A3 (en) * 2002-04-25 2007-05-23 Livedevices Limited Improvements relating to reduced-overhead context-saving in static priority scheduled operating systems
EP1770517A2 (en) * 2002-04-25 2007-04-04 Livedevices Limited Improvements relating to reduced-overhead context-saving in static priority scheduled operating systems
WO2003091878A3 (en) * 2002-04-25 2004-11-25 Livedevices Ltd Reduced overhead context-saving in static priority scheduled operating systems
US7082607B2 (en) * 2002-04-25 2006-07-25 Livedevices Limited Reduced-overhead context-saving in static priority scheduled operating systems
WO2003093995A3 (en) * 2002-04-30 2004-12-29 Livedevices Ltd Dispatch in priority pre-emptive real-time operating systems
US7950016B2 (en) 2003-03-13 2011-05-24 Panasonic Corporation Apparatus for switching the task to be completed in a processor by switching to the task assigned time slot
US7735087B2 (en) 2003-03-13 2010-06-08 Panasonic Corporation Task switching apparatus, method and program
US8276156B2 (en) 2003-03-13 2012-09-25 Panasonic Corporation Task switching based on assigned time slot
US7783401B2 (en) 2006-08-10 2010-08-24 Denso Corporation Method and device for managing tasks of in-vehicle electronic control unit
JP5433676B2 (en) * 2009-02-24 2014-03-05 パナソニック株式会社 Processor device, multi-thread processor device
WO2010097847A1 (en) * 2009-02-24 2010-09-02 パナソニック株式会社 Processor device and multi-threaded processor device
US8850168B2 (en) 2009-02-24 2014-09-30 Panasonic Corporation Processor apparatus and multithread processor apparatus
JP2012064086A (en) * 2010-09-17 2012-03-29 Fujitsu Ltd Information processor, and control method and control program for the same
US9032417B2 (en) 2010-09-17 2015-05-12 Fujitsu Limited Information processing apparatus and information processing apparatus control method

Similar Documents

Publication Publication Date Title
US3713107A (en) Firmware sort processor system
CN102081556B (en) Instruction set architecture-based inter-sequencer communicating with a heterogeneous resource
US3412382A (en) Shared-access data processing system
EP0116591B1 (en) Multiprocessor system for handling interprocessor calls
US5511200A (en) Method and apparatus for providing an enhanced programmable priority interrupt controller
US6996821B1 (en) Data processing systems and method for batching tasks of the same type in an instruction cache
EP0258736A2 (en) Parallel computer with distributed shared memories and distributed task activating circuits
EP0529384A1 (en) CPU expansive gradation of I/O interruption subclass recognition
GB1170285A (en) A Modular Multicomputing Data Processing System
JPH05127926A (en) Task controller
US4851992A (en) Register/saving/restoring system for saving and restoring data in a register of a slave processor
EP0619899B1 (en) Software control of hardware interruptions
US4591971A (en) Method and apparatus for parallel processing of digital signals using multiple independent signal processors
JPH02242434A (en) Task scheduling method
EP0297892B1 (en) Apparatus and method for control of asynchronous program interrupt events in a data processing system
EP0301707A2 (en) Apparatus and method for providing an extended processing environment on nonmicrocoded data processing system
JPH02245864A (en) Multiprocessor system
JPH056281A (en) Information processor
US6711655B1 (en) Finding available memory space by finding its associated memory transfer controller
JP2585905B2 (en) Multitask execution device
KR920008959B1 (en) Method of transferring information for virtual computer system
GB2107497A (en) Digital computers
JPH02214938A (en) Data processor
JPH03204744A (en) Address converting mechanism
JPS6267648A (en) Processing system for exclusive control instruction