JP2001092678A - Method for controlling task of multi-media processor - Google Patents
Method for controlling task of multi-media processorInfo
- Publication number
- JP2001092678A JP2001092678A JP27175499A JP27175499A JP2001092678A JP 2001092678 A JP2001092678 A JP 2001092678A JP 27175499 A JP27175499 A JP 27175499A JP 27175499 A JP27175499 A JP 27175499A JP 2001092678 A JP2001092678 A JP 2001092678A
- Authority
- JP
- Japan
- Prior art keywords
- task
- thinning
- total
- work
- amount
- 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 23
- 230000001174 ascending effect Effects 0.000 claims 1
- 230000014509 gene expression Effects 0.000 description 2
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】この発明は、マルチメディア
プロセッサのタスク制御方法に関する。The present invention relates to a task control method for a multimedia processor.
【0002】[0002]
【従来の技術】画像処理に適しかつ複数のタスクを同時
に処理できるマルチメディアプロセッサが既に開発され
ている。このようなマルチメディアプロセッサは、デジ
タルTV、PC、TV会議システム等に利用されてい
る。2. Description of the Related Art Multimedia processors suitable for image processing and capable of simultaneously processing a plurality of tasks have already been developed. Such a multimedia processor is used for a digital TV, a PC, a TV conference system, and the like.
【0003】マルチメディアプロセッサにおいて、複数
のタスクを同時に処理した場合、これらのタスクの総仕
事量がプロセッサが処理可能な総仕事量を越えてしまう
可能性がある。そこで、従来は、各タスクに優先順位を
予め決めておき、タスクの総仕事量がプロセッサが処理
可能な総仕事量を越えるおそれがある場合には、優先順
位の低いタスクを待機状態にさせるようにしていた。In a multimedia processor, when a plurality of tasks are processed simultaneously, the total work of these tasks may exceed the total work that can be processed by the processor. Therefore, conventionally, priorities are determined in advance for each task, and when there is a possibility that the total work amount of the tasks may exceed the total work amount that can be processed by the processor, a task with a lower priority order is put into a standby state. I was
【0004】このような方法では、あるタスクの仕事量
が非常に大きい場合には、そのタスクが実行されている
ときには、他のタスクが常に停止するといった事態が生
じる可能性がある。[0004] In such a method, when the workload of a certain task is extremely large, there is a possibility that while the task is being executed, another task always stops.
【0005】[0005]
【発明が解決しようとする課題】この発明は、総仕事量
が多くなったときでも、各タスクをバランスよく実行さ
せることが可能となるマルチメディアプロセッサのタス
ク制御方法を提供することを目的とする。SUMMARY OF THE INVENTION It is an object of the present invention to provide a task control method for a multimedia processor that enables each task to be executed in a well-balanced manner even when the total amount of work increases. .
【0006】[0006]
【課題を解決するための手段】この発明によるマルチメ
ディアプロセッサのタスク制御方法は、複数のタスクを
同時に実行できるマルチメディアプロセッサのタスク制
御方法において、各タスク毎に最大間引き率を決定する
ステップ、実行しようとする各タスクの仕事量に基づい
て、間引きを行わなかったときの総仕事量を算出するス
テップ、間引きを行わなかったときの総仕事量がマルチ
メディアプロセッサが処理可能な総仕事量を越える場合
には、各タスクの仕事量および各タスクの最大間引き率
に基づいて、最大間引き時の総仕事量を算出するステッ
プ、最大間引き時の総仕事量がマルチメディアプロセッ
サが処理可能な総仕事量を越えていない場合には、マル
チメディアプロセッサが処理可能な総仕事量、各タスク
の仕事量および各タスクの最大間引き率に基づいて、総
仕事量がマルチメディアプロセッサが処理可能な総仕事
量以下となるように、各タスクの間引き率を算出するス
テップ、ならびに算出された各タスクの間引き率に応じ
た間引き処理モードで、各タスクを実行させるステップ
を備えていることを特徴する。A task control method for a multimedia processor according to the present invention is a task control method for a multimedia processor capable of simultaneously executing a plurality of tasks. A step of calculating a total amount of work when no thinning is performed based on the amount of work of each task to be attempted; the total amount of work when no thinning is performed exceeds the total amount of work that can be processed by the multimedia processor In the case, the step of calculating the total work amount at the time of maximum thinning based on the work amount of each task and the maximum thinning rate of each task, the total work amount at the maximum thinning time is the total work amount that the multimedia processor can process. If not, the total amount of work that the multimedia processor can handle, the amount of work for each task, and Calculating the thinning rate of each task based on the maximum thinning rate of the tasks so that the total work is equal to or less than the total work that the multimedia processor can process, and according to the calculated thinning rate of each task. And a step of executing each task in the thinning processing mode.
【0007】各タスク毎に優先順位を決定するステッ
プ、および最大間引き時の総仕事量がマルチメディアプ
ロセッサが処理可能な総仕事量を越えている場合には、
優先順位の低いものから順に、タスクを待ち状態にさせ
るステップを設けることが好ましい。Determining the priority for each task, and if the total work at the maximum thinning exceeds the total work that can be processed by the multimedia processor,
It is preferable to provide a step of placing the tasks in a waiting state in order from the one with the lowest priority.
【0008】[0008]
【発明の実施の形態】以下、図1を参照して、この発明
の実施の形態について説明する。Embodiments of the present invention will be described below with reference to FIG.
【0009】図1は、マルチメディアプロセッサの構成
を示している。FIG. 1 shows the configuration of a multimedia processor.
【0010】マルチメディアプロセッサ100は、CP
U10、第1〜第3の入力ポート11、12、13、第
1〜第3の入力インタフェイス(I/F)21〜23、
第1〜第3の出力インタフェイス(I/F)31〜3
3、第1〜第3の出力ポート41〜43、ROM接続用
端子51およびRAM接続用端子52を備えている。The multimedia processor 100 has a CP
U10, first to third input ports 11, 12, 13, first to third input interfaces (I / F) 21 to 23,
First to third output interfaces (I / F) 31 to 3
3, a first to third output ports 41 to 43, a ROM connection terminal 51, and a RAM connection terminal 52.
【0011】第1〜第3の入力ポート11、12、13
は、第1〜第3の入力インタフェイス(I/F)21〜
23を介してCPU10に接続されている。第1〜第3
の出力ポート41〜43は、第1〜第3の出力インタフ
ェイス(I/F)31〜33を介してCPU10に接続
されている。First to third input ports 11, 12, 13
Are the first to third input interfaces (I / F) 21 to
23 is connected to the CPU 10. First to third
Output ports 41 to 43 are connected to the CPU 10 via first to third output interfaces (I / Fs) 31 to 33.
【0012】ROM接続用端子51には、ROM61が
接続され、RAM接続用端子52にはRAM62が接続
されている。A ROM 61 is connected to the ROM connection terminal 51, and a RAM 62 is connected to the RAM connection terminal 52.
【0013】この例では、マルチメディアプロセッサ
は、3つのタスク、すなわち、オーディオ信号のデコー
ド処理(タスク名;オーディオデコード)、ビデオ信号
のデコード処理(タスク名;ビデオデコード)および通
信処理(タスク名;モデム処理)を同時に行うものとす
る。In this example, the multimedia processor performs three tasks: audio signal decoding (task name; audio decoding), video signal decoding (task name; video decoding), and communication processing (task name; Modem processing) at the same time.
【0014】表1は、各タスク毎のタスク番号1〜3、
タスク名、間引きを全く行なわない場合の仕事量W
n (nはタスク番号)、最大間引き率An および優先順
位Pn を示している。なお、この明細書において、仕事
量および総仕事量は、単位時間当たりの仕事量および単
位時間当たりの総仕事量を意味する。Table 1 shows task numbers 1 to 3 for each task.
Task name, workload W when no thinning is performed
n (n is a task number), a maximum thinning rate An and a priority Pn . In this specification, the work amount and the total work amount mean the work amount per unit time and the total work amount per unit time.
【0015】[0015]
【表1】 [Table 1]
【0016】最大間引き率とは、あるタスクを処理する
際に、処理内容を簡素化、処理速度を低下させる等によ
って、タスクの仕事量を最大限低減させた場合の、最大
低減率をいう。The maximum thinning rate refers to a maximum reduction rate when the work amount of a task is reduced to a maximum by simplifying the processing content and reducing the processing speed when processing a certain task.
【0017】ビデオデコードの場合には、デコードする
フィールドを数フィールドおきに飛ばすことにより、タ
スクの仕事量が低減せしめられる。また、通信処理の場
合には、ビットレートを落とすことにより、タスクの仕
事量が低減せしめられる。In the case of video decoding, skipping the field to be decoded every few fields reduces the workload of the task. In the case of communication processing, the work load of the task can be reduced by reducing the bit rate.
【0018】この例では、オーディオデコードに対する
最大間引き率A1 は0%、ビデオデコードに対する最大
間引き率A2 は20%、モデム処理に対する最大間引き
率A 3 は、70%となっている。In this example, the audio decoding
Maximum thinning rate A10%, maximum for video decoding
Thinning rate ATwoIs 20%, maximum thinning for modem processing
Rate A ThreeIs 70%.
【0019】この実施の形態で行われるタスク制御方法
の考え方について説明する。The concept of the task control method performed in this embodiment will be described.
【0020】例えば、プロセッサが処理可能な総仕事量
WPを100とする。オーディオデコードおよびビデオ
デコードが行われており、モデム処理が行われていない
とし、オーディオデコードの仕事量W1 が5、ビデオデ
コードの仕事量W2 が60、モデム処理の仕事量W3 が
0である場合には、総仕事量WAmin は65となる。し
たがって、この場合には、オーディオデコードおよびビ
デオデコードを間引き率0で実行することができる。For example, assume that the total work WP that can be processed by the processor is 100. Audio decoding and video decoding has been performed, the modem processing is not performed, workload W 1 of the audio decoding 5, workload W 2 video decoding 60, at work amount W 3 are 0 modem processing In some cases, the total work WA min is 65. Therefore, in this case, audio decoding and video decoding can be executed at the thinning rate of 0.
【0021】オーディオデコード、ビデオデコードおよ
びモデム処理が行われており、オーディオデコードの仕
事量W1 が10、ビデオデコードの仕事量W2 が80、
モデム処理の仕事量W3 が50である場合には、総仕事
量WAmin は140となり、プロセッサが処理可能な総
仕事量WP(=100)を越えている。Audio decoding, video decoding and modem processing are performed. The work amount W 1 of audio decoding is 10, the work amount W 2 of video decoding is 80,
When workload W 3 of modem processing is 50, the total amount of work WA min is beyond 140, and the processor can process the total amount of work WP a (= 100).
【0022】このような場合には、各タスクをそのまま
実行できないので、総仕事量がマルチメディアプロセッ
サが処理可能な総仕事量以下となるように、各タスクの
間引き率Bn (nはタスク番号)を求める。具体的に
は、数式1および数式2に基づいて各タスクの間引き率
Bn を求める。数式1において、xは最大間引き率の何
割の間引きを行うか示す未知数である。In such a case, since each task cannot be executed as it is, the thinning rate B n (n is a task number) of each task is set so that the total work is equal to or less than the total work that can be processed by the multimedia processor. ). Specifically, the thinning rate Bn of each task is obtained based on Expressions 1 and 2. In Expression 1, x is an unknown number indicating what percentage of the maximum thinning rate is to be thinned.
【0023】[0023]
【数1】 (Equation 1)
【0024】[0024]
【数2】 (Equation 2)
【0025】数式1により、B1 =0〔%〕、B2 =2
0x〔%〕、B3 =70x〔%〕となる。そして、これ
らを数式2に代入することにより、x=0.78を得
る。したがって、B1 =0〔%〕、B2 =16〔%〕、
B3 =55〔%〕となる。間引き後の各タスクの仕事量
W1 ’(=W1 ×(100−B1 )/100)、W2 ’
(=W2 ×(100−B2 )/100)、W3 ’(=W
3 ×(100−B3 )/100)は、それぞれ10、6
7、23となり、それらの総和は100となる。According to Equation 1, B 1 = 0 [%] and B 2 = 2
0x (%), and B 3 = 70x [%]. Then, by substituting these into Equation 2, x = 0.78 is obtained. Therefore, B 1 = 0 [%], B 2 = 16 [%],
B 3 = 55 [%]. Work amount W 1 ′ of each task after thinning out (= W 1 × (100−B 1 ) / 100), W 2 ′
(= W 2 × (100−B 2 ) / 100), W 3 ′ (= W
3 × (100−B 3 ) / 100) are 10, 6 respectively.
7, 23, and their sum is 100.
【0026】なお、各タスクに対して最大間引き率に応
じた間引きを行っても、プロセッサが処理可能な総仕事
量WP(=100)を越える場合には、優先順位の低い
ものから順にタスクを停止させる。If the total work load WP (= 100) that can be processed by the processor is exceeded even if each task is thinned according to the maximum thinning rate, the tasks are sorted in the order of lower priority. Stop.
【0027】図2は、タスク制御処理手順を示してい
る。FIG. 2 shows a task control processing procedure.
【0028】まず、プロセッサが処理可能な総仕事量W
Pを測定する(ステップ1)。First, the total work W that can be processed by the processor W
Measure P (step 1).
【0029】次に、各タスクの仕事量Wn を測定すると
ともに、各タスクの最大間引き率A n および優先順位P
n を決定する(ステップ2)。各タスクの最大間引き率
Anおよび優先順位Pn は予め定めていてもよいし、外
部から送信するようにしてもよい。Next, the work amount W of each tasknWhen you measure
In both cases, the maximum thinning rate A of each task nAnd priority P
nIs determined (step 2). Maximum thinning rate for each task
AnAnd priority PnMay be predetermined or outside
The information may be transmitted from a unit.
【0030】各タスクの仕事量Wn に基づいて、間引き
を行わなかったときの総仕事量WA min を算出する(ス
テップ3)。The work amount W of each tasknThinning based on
Total work load WA when not performing minIs calculated.
Step 3).
【0031】間引きを行わなかったときの総仕事量WA
min がプロセッサが処理可能な総仕事量WPを越えるか
否かを判定する(ステップ4)。Total work load WA without thinning-out
It is determined whether or not min exceeds the total work WP that can be processed by the processor (step 4).
【0032】間引きを行わなかったときの総仕事量WA
min がプロセッサが処理可能な総仕事量WPを越えない
場合には、間引きを行わずに、各タスクを実行する(ス
テップ5)。Total work load WA without thinning-out
If min does not exceed the total work WP that can be processed by the processor, each task is executed without thinning out (step 5).
【0033】間引きを行わなかったときの総仕事量WA
min がプロセッサが処理可能な総仕事量WPを越えた場
合には、各タスクの最大間引き率An および各タスクの
仕事量Wn に基づいて、最大間引き時の総仕事量WA
max を算出する(ステップ6)。Total work load WA without thinning-out
If the min exceeds the total work WP processor can process, on the basis of the workload W n of the maximum thinning ratio A n and each task of each task, total work WA at maximum thinning
Calculate max (step 6).
【0034】最大間引き時の総仕事量WAmax がプロセ
ッサが処理可能な総仕事量WPを越えるか否かを判定す
る(ステップ7)。It is determined whether the total work amount WA max at the time of the maximum thinning exceeds the total work amount WP that can be processed by the processor (step 7).
【0035】最大間引き時の総仕事量WAmax がプロセ
ッサが処理可能な総仕事量WPを越えていない場合に
は、プロセッサが処理可能な総仕事量WP、各タスクの
最大間引き率An および各タスクの仕事量Wn と、上記
数式1および数式2とに基づいて、各タスクの間引き率
Bn を算出する(ステップ8)。[0035] If the total amount of work WA max at the time of maximum thinning does not exceed the total amount of work WP processor is capable of processing, the processor can process the total amount of work WP, maximum thinning ratio A n and each of each task and workload W n tasks, on the basis of the above equations 1 and 2, to calculate the thinning ratio B n of each task (step 8).
【0036】そして、各タスクの間引き率Bn に応じた
間引き処理モードで、各タスクを実行させる(ステップ
9)。Then, each task is executed in the thinning processing mode corresponding to the thinning rate Bn of each task (step 9).
【0037】上記ステップ7において、 最大間引き時
の総仕事量WAmax がプロセッサが処理可能な総仕事量
WPを越えると判定した場合には、優先順位の低いタス
クを待ち状態とし、タスク数を1つ減らす(ステップ1
0)。そして、ステップ2に戻り、ステップ2以降の処
理を再度行う。If it is determined in step 7 that the total work amount WA max at the time of the maximum thinning exceeds the total work amount WP that can be processed by the processor, the task with the lower priority is put into a waiting state, and the number of tasks is set to 1 (Step 1
0). Then, the process returns to step 2, and the processes after step 2 are performed again.
【0038】[0038]
【発明の効果】この発明によれば、総仕事量が多くなっ
たときでも、各タスクをバランスよく実行させることが
可能となるマルチメディアプロセッサのタスク制御方法
を提供することを目的とする。According to the present invention, it is an object of the present invention to provide a task control method for a multimedia processor which enables each task to be executed in a well-balanced manner even when the total work amount increases.
【図1】マルチメディアプロセッサの構成を示すブロッ
ク図である。FIG. 1 is a block diagram illustrating a configuration of a multimedia processor.
【図2】タスク制御処理手順を示すフローチャートであ
る。FIG. 2 is a flowchart illustrating a task control processing procedure.
10 CPU 100 マルチメディアプロセッサ 10 CPU 100 Multimedia processor
Claims (2)
メディアプロセッサのタスク制御方法において、 各タスク毎に最大間引き率を決定するステップ、 実行しようとする各タスクの仕事量に基づいて、間引き
を行わなかったときの総仕事量を算出するステップ、 間引きを行わなかったときの総仕事量がマルチメディア
プロセッサが処理可能な総仕事量を越える場合には、各
タスクの仕事量および各タスクの最大間引き率に基づい
て、最大間引き時の総仕事量を算出するステップ、 最大間引き時の総仕事量がマルチメディアプロセッサが
処理可能な総仕事量を越えていない場合には、マルチメ
ディアプロセッサが処理可能な総仕事量、各タスクの仕
事量および各タスクの最大間引き率に基づいて、総仕事
量がマルチメディアプロセッサが処理可能な総仕事量以
下となるように、各タスクの間引き率を算出するステッ
プ、ならびに算出された各タスクの間引き率に応じた間
引き処理モードで、各タスクを実行させるステップ、 を備えていることを特徴するマルチメディアプロセッサ
のタスク制御方法。1. A task control method for a multimedia processor capable of simultaneously executing a plurality of tasks, a step of determining a maximum thinning rate for each task, wherein no thinning is performed based on a workload of each task to be executed. Calculating the total amount of work when the multimedia processor does not exceed the total amount of work that can be processed by the multimedia processor. Calculating the total work amount at the time of the maximum thinning based on the total work amount at the time of the maximum thinning-out if the total work amount at the maximum thinning-out does not exceed the total work amount that the multimedia processor can process. Based on the workload, the workload for each task, and the maximum decimation rate for each task, the total workload is processed by the multimedia processor. A step of calculating a thinning rate of each task so as to be equal to or less than a possible total work amount, and a step of executing each task in a thinning processing mode corresponding to the calculated thinning rate of each task. A task control method for a multimedia processor, comprising:
プ、および最大間引き時の総仕事量がマルチメディアプ
ロセッサが処理可能な総仕事量を越えている場合には、
優先順位の低いものから順に、タスクを待ち状態にさせ
るステップ、 を備えていることを特徴する請求項1に記載のマルチメ
ディアプロセッサのタスク制御方法。Determining a priority for each task; and, if the total amount of work at the time of maximum thinning exceeds the total amount of work that can be processed by the multimedia processor,
2. The task control method for a multimedia processor according to claim 1, further comprising the step of: placing tasks in a waiting state in ascending order of priority.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27175499A JP2001092678A (en) | 1999-09-27 | 1999-09-27 | Method for controlling task of multi-media processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27175499A JP2001092678A (en) | 1999-09-27 | 1999-09-27 | Method for controlling task of multi-media processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001092678A true JP2001092678A (en) | 2001-04-06 |
Family
ID=17504381
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP27175499A Pending JP2001092678A (en) | 1999-09-27 | 1999-09-27 | Method for controlling task of multi-media processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001092678A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010119030A (en) * | 2008-11-14 | 2010-05-27 | Toshiba Corp | Communication device, communication method, and communication program |
-
1999
- 1999-09-27 JP JP27175499A patent/JP2001092678A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010119030A (en) * | 2008-11-14 | 2010-05-27 | Toshiba Corp | Communication device, communication method, and communication program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111459659A (en) | Data processing method, device, scheduling server and medium | |
| US8191073B2 (en) | Method and system for polling network controllers | |
| CN109840149B (en) | Task scheduling method, device, equipment and storage medium | |
| CN110825673B (en) | Audio input/output system and method | |
| US7140026B2 (en) | Message preprocessing method and device for computer network communications | |
| CN113472893B (en) | Data processing method, device, computing equipment and computer storage medium | |
| US7970814B2 (en) | Method and apparatus for providing a synchronous interface for an asynchronous service | |
| JP2001160041A (en) | CPU load reduction method for online system | |
| CN116302558A (en) | Thread scheduling method, device and electronic equipment | |
| JPH02300939A (en) | Semaphore operation system | |
| JP2001092678A (en) | Method for controlling task of multi-media processor | |
| JP3987032B2 (en) | A processor with the ability to slow down during a programmed stall cycle | |
| CN115994156A (en) | Method and system for real-time analysis of data streams | |
| CN116208573B (en) | Data processing method, device, electronic equipment and storage medium | |
| CN120892197A (en) | Large-scale model inference service scheduling methods, devices, equipment, media and products | |
| JP4005984B2 (en) | Plan execution method, system and program | |
| US7111301B1 (en) | Request and completion queue load balancing | |
| CN116245121A (en) | Information input method, device, computer equipment and storage medium | |
| CN113076198A (en) | Data processing method and device | |
| CN119938240A (en) | Task scheduling method, device, terminal and storage medium | |
| AU707898B2 (en) | Load balancing and image rendering system | |
| TWI308718B (en) | Arbitrating structure and method responding to interrupt service request for use in multi-processor system | |
| JPS62212761A (en) | Processing system for function decentralized information | |
| JPH04271455A (en) | Load distribution controller | |
| JPH09198261A (en) | Task scheduling device |