JPH0991157A - Task-device driver communication control method - Google Patents

Task-device driver communication control method

Info

Publication number
JPH0991157A
JPH0991157A JP24609495A JP24609495A JPH0991157A JP H0991157 A JPH0991157 A JP H0991157A JP 24609495 A JP24609495 A JP 24609495A JP 24609495 A JP24609495 A JP 24609495A JP H0991157 A JPH0991157 A JP H0991157A
Authority
JP
Japan
Prior art keywords
task
data
device driver
tasks
call control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP24609495A
Other languages
Japanese (ja)
Inventor
Muneaki Mochida
宗明 持田
Toshibumi Muranaka
俊文 村中
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP24609495A priority Critical patent/JPH0991157A/en
Publication of JPH0991157A publication Critical patent/JPH0991157A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To surely perform communication between the plural tasks of the equal priority and a device driver at high speed. SOLUTION: The 1st task investigates the state of a 2nd task occupation flag 2 by turning on a 1st task occupation flag 1 and when the 2nd task occupation flag 2 is turned on, control authority is applied to the other task by turning off the 1st task occupation flag. When the 2nd task occupation flag is turned off, the 1st task writes data in a data table and updates a task write pointer. When all the data are completely written in the data table, the 1st task occupation flag 1 is turned off, and the control authority of its own central processing unit is abandoned. A DSP driver reads data from a transmission data table until the contents of the write pointer get equal with the contents of a read pointer.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デバイスドライバ
と同一プライオリティの複数のタスクとの間の通信を制
御するタスク−デバイスドライバ間通信制御方法に関
し、例えば、携帯電話における呼処理モジュールに適用
し得るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a task-device driver communication control method for controlling communication between a device driver and a plurality of tasks having the same priority, and can be applied to, for example, a call processing module in a mobile phone. It is a thing.

【0002】[0002]

【従来の技術】近年の携帯電話等の無線端末では、端末
の処理能力向上及び小型化のために、音声等のデジタル
処理にデジタルシグナルプロセッサ(以下の記述におい
てDSPと呼ぶ)が使用されており、DSPは呼処理段
階に応じて所定の呼制御タスクから適宜アクセスされ
る。
2. Description of the Related Art In recent years, in a wireless terminal such as a mobile phone, a digital signal processor (referred to as DSP in the following description) is used for digital processing of voice and the like in order to improve the processing capacity and downsizing of the terminal. , DSP is appropriately accessed from a predetermined call control task according to the call processing stage.

【0003】従来、携帯電話等の並列処理システムで
は、呼制御タスク(アプリケーションタスク)がDSP
ドライバ(デバイスドライバ)に対してデータを送信す
る場合に以下のような処理が行われていた。ここで、タ
スクとは、中央処理装置のスケジュール対象となる並列
処理単位のことをいい、一般的にはタスク、スレッド、
プロセスと呼ばれているものである。また、デバイスド
ライバとは、アプリケーションタスクの発行した入出力
要求を受けて周辺デバイスを制御するためのプログラム
であり、データとサブルーチンからなり、アプリケーシ
ョンタスクと周辺デバイスとのインターフェースを構成
し、周辺デバイスでのイベント発生による割り込み要求
を受けて割り込みハンドラを呼び出して処理を行うタス
ク又はハンドラである。
Conventionally, in a parallel processing system such as a mobile phone, a call control task (application task) is a DSP.
The following processing was performed when transmitting data to the driver (device driver). Here, the task means a parallel processing unit that is a scheduling target of the central processing unit, and generally, a task, a thread,
This is called a process. A device driver is a program for controlling peripheral devices in response to input / output requests issued by application tasks.It is composed of data and subroutines, constitutes an interface between application tasks and peripheral devices, and is a peripheral device. Is a task or handler that receives an interrupt request due to the occurrence of the event and calls an interrupt handler to perform processing.

【0004】第1の呼制御タスクが実行中で、第2の呼
制御タスクが中央処理装置の制御権の割り当てを待って
いるときに、第1の呼制御タスクがDSPドライバに対
してデータを送信しようとする。ただし、両呼制御タス
クのプライオリティは同じである。
When the first call control task is executing and the second call control task is waiting for the assignment of the control right of the central processing unit, the first call control task sends data to the DSP driver. Try to send. However, both call control tasks have the same priority.

【0005】このとき、第1の呼制御タスクは、自己の
プライオリティを上げることより、第2の呼制御タスク
の動作を中断させる。プライオリティの上がった第1の
呼制御タスクは、メールを用いてDSPドライバにデー
タを送信する。ここで、メールとは、任意のタスクから
の送信データを待ち行列に登録し、この待ち行列から任
意のタスクがデータを受信する、タスク間のデータ送受
信方法である。
At this time, the first call control task suspends the operation of the second call control task by raising its own priority. The first call control task with the higher priority sends the data to the DSP driver using mail. Here, mail is a data transmission / reception method between tasks in which transmission data from an arbitrary task is registered in a queue, and the arbitrary task receives data from this queue.

【0006】DSPドライバへのデータ送信が終了する
と、第1の呼制御タスクが自ら中央処理装置の制御権を
放棄することにより、第2の呼制御タスクは、中央処理
装置の制御権を獲得し、処理を再開する。
When the data transmission to the DSP driver is completed, the first call control task relinquishes the control right of the central processing unit, so that the second call control task acquires the control right of the central processing unit. , Resume processing.

【0007】[0007]

【発明が解決しようとする課題】前述したように、従来
は携帯電話の高速な処理の要求される呼処理ファームに
おいてもメールを使用したタスク間のデータのやりとり
が行われていて、メールによるデータ送信はプライオリ
ティの違うタスクからのデータ送信も考慮していたため
に処理が複雑になり、アプリケーションタスクとデバイ
スドライバ間のデータ送信速度は多大な制約を受けてい
た。さらに、タスクのプライオリティを上げることによ
り、他のタスクの処理の停止あるいは処理速度の低下を
招くことになり、システム全体の処理速度が低下した。
As described above, data is exchanged between tasks using mail even in a call processing farm that is conventionally required for high-speed processing of mobile phones. Since the transmission also considered the data transmission from the tasks with different priorities, the processing became complicated, and the data transmission speed between the application task and the device driver was greatly restricted. Furthermore, by increasing the priority of the task, the processing of other tasks is stopped or the processing speed is decreased, and the processing speed of the entire system is decreased.

【0008】また、アプリケーションタスクのプライオ
リティを上げずに、アプリケーションタスクからデバイ
スドライバに対してデータ送信した場合は、他のアプリ
ケーションタスクにより送信データが書きかえらる可能
性があった。
Further, when data is transmitted from the application task to the device driver without increasing the priority of the application task, the transmission data may be rewritten by another application task.

【0009】本発明は、以上の点を考慮してなされたも
のであり、携帯電話の呼処理モジュールのように高速な
処理の要求されるモジュールにおいて、同一プライオリ
ティの複数のアプリケーションタスクとデバイスドライ
バ間のデータのやりとりを(特に、同一プライオリティ
の複数のアプリケーションタスクから、高速に処理を完
了する必要があるデバイスドライバへのデータの送信
を)、任意のタイミングで高速に且つ確実に行うタスク
−デバイスドライバ間通信制御方法を提供しようとした
ものである。
The present invention has been made in consideration of the above points, and in a module that requires high-speed processing such as a call processing module of a mobile phone, a plurality of application tasks of the same priority and device drivers Task-device driver that exchanges data (especially, from multiple application tasks with the same priority to the device driver that needs to complete processing at high speed) at high speed and reliably at any time It is intended to provide an inter-communication control method.

【0010】[0010]

【課題を解決するための手段】本発明は、周辺デバイス
及びこの周辺デバイスに対応するデバイスドライバを備
えた並列処理システムにおけるデバイスドライバと同一
プライオリティの複数のタスクとの間の通信を制御する
タスク−デバイスドライバ間通信制御方法において、以
下のようにしたことを特徴とする。
According to the present invention, there is provided a task for controlling communication between a device driver and a plurality of tasks of the same priority in a parallel processing system including a peripheral device and a device driver corresponding to the peripheral device. The inter-device driver communication control method is characterized by the following.

【0011】すなわち、同一プライオリティの複数のタ
スクから上記デバイスドライバへの、及び又は上記デバ
イスドライバから同一プライオリティの複数のタスクへ
の送信データを蓄積するテーブルを設けて、同一プライ
オリティの複数のタスクの前記テーブルに対するアクセ
ス要求をフラグにより調整し、アクセス権を取得したタ
スクが前記テーブルに対してデータを書き込んでからデ
バイスドライバが前記テーブルからデータを読み出す、
及び又はデバイスドライバが前記テーブルに対してデー
タを書き込んでからアクセス権を取得したタスクが前記
テーブルから読み出す。
That is, a table for accumulating transmission data from a plurality of tasks of the same priority to the device driver and / or a plurality of tasks of the device driver to a plurality of tasks of the same priority is provided and the tasks of the plurality of tasks of the same priority are stored. The access request to the table is adjusted by the flag, the task that has acquired the access right writes the data to the table, and then the device driver reads the data from the table,
And / or the device driver writes data to the table and then the task that has acquired the access right reads from the table.

【0012】送信データを蓄積するテーブルを備えるこ
とにより、タスクとデバイスドライバの間のデータのや
りとりを高速に行い、同一プライオリティの複数のタス
クの前記テーブルに対するアクセス要求をフラグにより
調整することで、同一プライオリティの複数のタスクか
らデバイスドライバへのデータ送信要求に対する実行を
制御すると共に、デバイスドライバから同一プライオリ
ティの複数のタスクへのデータ送信においても同一プラ
イオリティの複数のタスクの実行を制御する。
By providing a table for accumulating transmission data, data can be exchanged between a task and a device driver at high speed, and access requests to the table of a plurality of tasks of the same priority can be adjusted by a flag to make the same. In addition to controlling execution of data transmission requests from a plurality of priority tasks to the device driver, execution of a plurality of tasks of the same priority is controlled in data transmission from the device driver to a plurality of tasks of the same priority.

【0013】[0013]

【発明の実施の形態】以下、本発明による、デバイスド
ライバと同一プライオリティの複数のタスクとの間でデ
ータの送受信を行うタスク−デバイスドライバ間通信方
法の実施の形態を、図面を参照しながら詳述する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, an embodiment of a task-device driver communication method for transmitting / receiving data between a device driver and a plurality of tasks having the same priority according to the present invention will be described in detail with reference to the drawings. I will describe.

【0014】(第1の実施の形態)本実施の形態は、本
発明を無線方式移動携帯電話における呼制御タスクから
DSPドライバへのデータ送信に適用したものである。
(First Embodiment) In the present embodiment, the present invention is applied to data transmission from a call control task to a DSP driver in a wireless mobile phone.

【0015】図2に本実施の形態のタスク−デバイスド
ライバ間通信方法を無線方式移動携帯電話に適用したと
きの概念を示す。タスク監視プログラム25は、実行中
のタスクが終了したとき、又は実行中のタスクが自ら図
示しない中央処理装置の制御権を放棄したとき、又は割
り込み要求があったときに、システム内のタスクの状態
を調べて、最もプライオリティの高いタスクに中央処理
装置の制御権を与え、当該タスクを実行状態にする。呼
制御タスク21及び22は同じプライオリティをもち、
DSPドライバ24にデータを送信する。DSPドライ
バ24は、呼制御タスク21及び22からデータを受信
して、DSPを制御する。インターフェーステーブル2
3は、図1に示すように、第1及び第2のタスク送信中
フラグ1及び2、タスク書き込みポインタ3、DSPド
ライバ読み出しポインタ4、並びに送信データテーブル
5からなっている。第1及び第2のタスク使用中フラグ
1及び2はそれぞれ、ON又はOFFの何れかの状態に
ある。
FIG. 2 shows a concept when the task-device driver communication method of the present embodiment is applied to a wireless mobile phone. The task monitoring program 25 determines the status of the tasks in the system when the running task ends, when the running task relinquishes the control right of a central processing unit (not shown), or when there is an interrupt request. , The control task of the central processing unit is given to the task having the highest priority, and the task is put into the execution state. Call control tasks 21 and 22 have the same priority,
The data is transmitted to the DSP driver 24. The DSP driver 24 receives data from the call control tasks 21 and 22 and controls the DSP. Interface table 2
As shown in FIG. 1, reference numeral 3 includes first and second task transmitting flags 1 and 2, a task write pointer 3, a DSP driver read pointer 4, and a transmission data table 5. The first and second task in-use flags 1 and 2 are in either ON or OFF states, respectively.

【0016】このような状態で、第1の呼制御タスク1
がDSPドライバ24にデータを送信しようとしたとき
の処理の流れを図3を参照しながら説明する。
In this state, the first call control task 1
Will be described with reference to FIG. 3 when the CPU attempts to transmit data to the DSP driver 24.

【0017】第1の呼制御タスク21は、第1のタスク
使用中フラグ1をONにして、第2のタスク使用中フラ
グ2の状態を調べ、第2のタスク使用中フラグ2がON
のときは、第1のタスク送信中フラグ1をOFFにし
て、自ら中央処理装置の制御権を放棄し、タスク監視プ
ログラム25が他のタスクに制御権を与える。(ステッ
プ301〜304)。
The first call control task 21 turns on the first task busy flag 1 to check the state of the second task busy flag 2, and turns on the second task busy flag 2.
In this case, the first task transmitting flag 1 is turned off, the control right of the central processing unit is abandoned by itself, and the task monitoring program 25 gives the control right to other tasks. (Steps 301-304).

【0018】第2のタスク送信中フラグ2がOFFのと
きは、第1の呼制御タスク21は、送信データテーブル
5に一定量のデータを書き込み、タスク書き込みポイン
タ3を更新する。全てのデータを送信データテーブル5
に書き込むまでこの動作を繰り返す(ステップ305〜
307)。
When the second task transmitting flag 2 is OFF, the first call control task 21 writes a certain amount of data in the transmission data table 5 and updates the task write pointer 3. Transmission data table 5 for all data
This operation is repeated until it is written in (step 305-
307).

【0019】第1の呼制御タスク21は、全てのデータ
を送信データテーブル5に書き込み終えると、第1のタ
スク使用中フラグ1をOFFにして自ら中央処理装置の
制御権を放棄する(ステップ308)。
When the first call control task 21 finishes writing all the data in the transmission data table 5, it turns off the first task busy flag 1 and relinquishes the control right of the central processing unit (step 308). ).

【0020】以上のように、第1及び第2のタスク送信
中フラグ1及び2の状態を管理することで、呼制御タス
ク21及び22の処理実行を制御する。
As described above, the processing execution of the call control tasks 21 and 22 is controlled by managing the states of the first and second task transmitting flags 1 and 2.

【0021】続いて、DSPドライバ24が送信データ
テーブル5に蓄積されたデータを読み出すときの処理の
流れを図4を用いて説明する。
Next, the flow of processing when the DSP driver 24 reads out the data stored in the transmission data table 5 will be described with reference to FIG.

【0022】DSPドライバ24は、タスク書き込みポ
インタ3とDSPドライバ読み出しポインタ4の内容が
等しくなるまで、送信データテーブル5からの一定量の
データの読み出しとDSPドライバ読み出しポインタ4
の更新を繰り返し、双方のポインタ3及び4の内容が等
しくなったら処理を終える(ステップ401〜40
3)。
The DSP driver 24 reads a certain amount of data from the transmission data table 5 and the DSP driver read pointer 4 until the contents of the task write pointer 3 and the DSP driver read pointer 4 become equal.
Is repeated until the contents of both pointers 3 and 4 become equal (steps 401 to 40).
3).

【0023】このように送信データテーブル5を使用す
ることで、メールを使用することなく、呼制御タスク2
1又は22からDSPドライバ25へのデータの送信を
行う。
By using the transmission data table 5 as described above, the call control task 2 can be executed without using mail.
Data is transmitted from 1 or 22 to the DSP driver 25.

【0024】また、第1の呼制御タスク21が送信デー
タテーブル5をアクセスしているときにタスクディスパ
ッチが発生したときの処理の流れを図5を用いて説明す
る。
The flow of processing when task dispatch occurs while the first call control task 21 is accessing the transmission data table 5 will be described with reference to FIG.

【0025】第1の呼制御タスク21が第1のタスク使
用中フラグ1をONにしたあとで、タスクディスパッチ
が発生して、第2の呼制御タスク22が動作を開始し、
第2の呼制御タスク22は第2のタスク使用中フラグ2
をONにして、第1のタスク使用中フラグ1の状態を調
べる(ステップ501〜503)。
After the first call control task 21 turns on the first task busy flag 1, task dispatch occurs and the second call control task 22 starts its operation.
The second call control task 22 uses the second task busy flag 2
Is turned on and the state of the first task busy flag 1 is checked (steps 501 to 503).

【0026】第1のタスク使用中フラグ1がONである
ので、第2の呼制御タスク22は第2のタスク使用中フ
ラグ2をOFFにして、中央処理装置の制御権を放棄す
る。これによりタスクディスパッチが発生して、第1の
呼制御タスク21は再び動作を再開する(ステップ50
4〜506)。
Since the first task busy flag 1 is ON, the second call control task 22 turns off the second task busy flag 2 to relinquish the control right of the central processing unit. As a result, task dispatch occurs, and the first call control task 21 resumes operation (step 50).
4-506).

【0027】さらに、第1の呼制御タスク21が送信デ
ータテーブル5をアクセスしているときにタスクディス
パッチが発生して第2の呼制御タスク22が動作を開始
してフラグチェックを終える前に再びタスクディスパッ
チが発生したときの処理の流れを図6を用いて説明す
る。
Further, before the first call control task 21 is accessing the transmission data table 5, a task dispatch occurs and the second call control task 22 starts its operation and completes the flag check again. The flow of processing when task dispatch occurs will be described with reference to FIG.

【0028】第1の呼制御タスク21が第1のタスク使
用中フラグ1をONにしたあとで、タスクディスパッチ
が発生して、第2のタスクが動作を開始し、第2の呼制
御タスク22は第2のタスク使用中フラグ2をONにす
る(ステップ601,602)この直後に、再びタスク
ディスパッチが発生して、第1のタスクが動作を開始す
る。第1の呼制御タスク21が、送信処理を終えて、中
央処理装置の制御権を放棄すると、タスクディスパッチ
して第2の呼制御タスク22が再び動作を開始する。第
2の呼制御タスク22は第1のタスク使用中フラグ1を
調べて、後続処理を行う(ステップ603〜607)。
After the first call control task 21 turns on the first task busy flag 1, task dispatch occurs, the second task starts operating, and the second call control task 22 Turns on the second task busy flag 2 (steps 601, 602) Immediately after this, task dispatch occurs again and the first task starts operating. When the first call control task 21 finishes the transmission process and relinquishes the control right of the central processing unit, task dispatch is performed and the second call control task 22 starts the operation again. The second call control task 22 checks the first task busy flag 1 and performs subsequent processing (steps 603 to 607).

【0029】このように、タスクディスパッチが発生す
るタイミングに関係なく、タスク使用中フラグ1及び2
を用いて、呼制御タスク21及び22の処理実行を制御
することができる。
As described above, the task busy flags 1 and 2 are irrespective of the timing at which the task dispatch occurs.
Can be used to control the processing execution of the call control tasks 21 and 22.

【0030】また、DSPドライバ24が、第1の呼制
御タスク21が送信データテーブル5に書き込んだデー
タを読み終える前に第2の呼制御タスク22が送信デー
タテーブル5に書き込みを開始しても、第2の呼制御タ
スク22は、タスク書き込みポインタ3を参照して第1
の呼制御タスク21からのデータの後ろに自己の送信デ
ータを書き込むことで、データの上書きも発生しない。
Further, even if the second call control task 22 starts writing in the transmission data table 5 before the DSP driver 24 finishes reading the data written in the transmission data table 5 by the first call control task 21, , The second call control task 22 refers to the task write pointer 3
By writing its own transmission data after the data from the call control task 21, the data is not overwritten.

【0031】以上の第1の実施の形態によれば、呼制御
タスクからDSPドライバへのデータ送信時に、送信デ
ータテーブル介して送信を行い、タスク使用中フラグを
用いて呼制御タスクの処理実行を調整するようにしたの
で、高速且つ確実なデータ送信を行うことができる。
According to the first embodiment described above, when data is transmitted from the call control task to the DSP driver, the data is transmitted via the transmission data table and the task busy flag is used to execute the processing of the call control task. Since the adjustment is performed, high-speed and reliable data transmission can be performed.

【0032】(第2の実施の形態)本実施の形態は、本
発明を無線方式移動携帯電話における呼制御タスクのD
SPドライバからのデータ受信に適用したものである。
インターフェーステーブル4以外は第1の実施の形態と
同じであるので、その説明は省略する。
(Second Embodiment) In the present embodiment, the present invention is applied to a call control task D in a wireless mobile phone.
This is applied to data reception from the SP driver.
The other parts than the interface table 4 are the same as those in the first embodiment, and the description thereof will be omitted.

【0033】本実施の形態におけるインターフェーステ
ーブル4のは、図7に示すように受信タスク識別用フラ
グ71、DSPドライバ書き込みポインタ72、タスク
読み出しポインタ73、及び受信データテーブル74か
らなる。さらにインターフェーステーブル4は、第1及
び第2の呼制御タスクに対応させて、2セット用意す
る。一方のインターフェーステーブル4内の受信タスク
識別用フラグ71は、第1の呼制御タスクに対応してい
て、常に’1’の値を持ち、同様に他方のインターフェ
ーステーブル4内の受信タスク識別用フラグ71は、第
2の呼制御タスクに対応していて、常に’2’の値を持
つ。
As shown in FIG. 7, the interface table 4 in this embodiment comprises a reception task identification flag 71, a DSP driver write pointer 72, a task read pointer 73, and a reception data table 74. Further, two sets of interface tables 4 are prepared corresponding to the first and second call control tasks. The reception task identification flag 71 in one of the interface tables 4 corresponds to the first call control task and always has a value of "1". Similarly, the reception task identification flag in the other interface table 4 is also included. Reference numeral 71 corresponds to the second call control task and always has a value of "2".

【0034】このような状態で、DSPドライバ24が
第1の呼制御タスク21にデータを送信しようとしたと
きの処理の流れを図8を参照しながら説明する。
The flow of processing when the DSP driver 24 attempts to transmit data to the first call control task 21 in such a state will be described with reference to FIG.

【0035】DSPドライバ24は、受信タスク識別フ
ラグが’1’の値を持つインターフェーステーブルに対
して以下の処理を行う。
The DSP driver 24 performs the following processing on the interface table in which the reception task identification flag has a value of "1".

【0036】DSPドライバ24は、受信データテーブ
ル74への一定量の送信データの書き込み処理とDSP
ドライバ書き込みポインタ72の更新の処理を、全送信
データを書き終えるまで繰り返す(ステップ801〜8
03)。
The DSP driver 24 writes a certain amount of transmission data in the reception data table 74 and the DSP.
The process of updating the driver write pointer 72 is repeated until all transmission data is written (steps 801 to 8).
03).

【0037】続いて、上記の処理で受信データテーブル
74に書き込んだデータを第1の呼制御タスク21が読
み出す処理を図9を参照しながら説明する。
Next, a process in which the first call control task 21 reads the data written in the reception data table 74 in the above process will be described with reference to FIG.

【0038】第1の呼制御タスク21は、受信タスク識
別フラグが’1’の値を持つインターフェーステーブル
に対して以下の処理を行う。
The first call control task 21 performs the following processing on the interface table whose reception task identification flag has a value of "1".

【0039】第1の呼制御タスク21は、DSPドライ
バ書き込みポインタ72とタスク読み出しポインタ73
の内容が等しくなるまで、受信データテーブル74から
の一定量のデータの読み出しとタスク読み出しポインタ
73の更新を繰り返す(ステップ901〜903)。
The first call control task 21 has a DSP driver write pointer 72 and a task read pointer 73.
The reading of a certain amount of data from the reception data table 74 and the updating of the task read pointer 73 are repeated until the contents of the above are equal (steps 901 to 903).

【0040】このように、受信タスク識別フラグ71の
値により、タスクの処理実行を制御できる。
As described above, the processing execution of the task can be controlled by the value of the reception task identification flag 71.

【0041】以上の第2の実施の形態によれば、DSP
ドライバからのデータ受信時に、受信データテーブル介
して受信を行い、タスク受信用フラグを用いて呼制御タ
スクの受信データテーブルに対するアクセスを制御する
ようにしたので、高速且つ確実なデータ受信を行うこと
ができる。
According to the second embodiment described above, the DSP
When receiving data from the driver, the data is received via the reception data table, and the access to the reception data table of the call control task is controlled using the task reception flag, so high-speed and reliable data reception can be performed. it can.

【0042】(他の実施の形態)第1及び第2の実施の
形態では同一プライオリティのタスク(呼制御タスク)
が2つのときのタスク−デバイスドライバ間通信方法を
説明したが、本発明は、同一プライオリティのタスクが
3つ以上あっても同様に処理できる。
(Other Embodiments) In the first and second embodiments, tasks with the same priority (call control task)
Although the task-device driver communication method when the number of tasks is two has been described, the present invention can perform the same processing even when there are three or more tasks of the same priority.

【0043】また、本発明はDSPドライバ以外にも、
シリアル(RS232C,RS422等),パラレル,
GP−IB,PCMCIA等のインターフェースデバイ
スドライバにも適用できる。
In addition to the DSP driver of the present invention,
Serial (RS232C, RS422, etc.), parallel,
It can also be applied to interface device drivers such as GP-IB and PCMCIA.

【0044】さらに、本発明は無線方式移動携帯電話以
外にも、デバイスドライバと同一プライオリティの複数
のタスクとの間でデータをやりとりする並列処理システ
ムであれば、例えば、電子交換機、ファクシミリ等にも
適用できる。
Further, the present invention is applicable to a parallel processing system for exchanging data between a device driver and a plurality of tasks having the same priority, such as an electronic exchange and a facsimile, in addition to the wireless mobile phone. Applicable.

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
デバイスドライバと同一プライオリティの複数のタスク
間でデータのやりとりをするときに、送信データを蓄積
するテーブルを設けて、同一プライオリティの複数のタ
スクの前記テーブルに対するアクセス要求をフラグによ
り調整するようにしたので、同一プライオリティの複数
のタスクとデバイスドライバの間のデータのやりとりを
高速且つ確実に且つ簡易に行うことができ、並列処理シ
ステムの処理能力の向上を低コストで実現できる。
As described above, according to the present invention,
When exchanging data between a device driver and multiple tasks of the same priority, a table for storing transmission data is provided and access requests to the table of multiple tasks of the same priority are adjusted by flags. Data can be exchanged between a plurality of tasks having the same priority and the device driver at high speed, reliably and easily, and the processing capability of the parallel processing system can be improved at low cost.

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

【図1】第1の実施の形態におけるインターフェーステ
ーブルを示す図である。
FIG. 1 is a diagram showing an interface table according to a first embodiment.

【図2】第1の実施の形態の概念を示す図である。FIG. 2 is a diagram showing a concept of the first embodiment.

【図3】第1の実施の形態でのデータの書き込み処理を
示すフローチャートである。
FIG. 3 is a flowchart showing a data writing process according to the first embodiment.

【図4】第1の実施の形態でのデータの読み出し処理を
示すフローチャートである。
FIG. 4 is a flowchart showing a data read process according to the first embodiment.

【図5】第1の実施の形態でタスクディスパッチしたと
きの例1の説明図である。
FIG. 5 is an explanatory diagram of an example 1 when a task dispatch is performed in the first embodiment.

【図6】第1の実施の形態でタスクディスパッチしたと
きの例2の説明図である。
FIG. 6 is an explanatory diagram of a second example when a task dispatch is performed in the first embodiment.

【図7】第2の実施の形態におけるインターフェーステ
ーブルを示す図である。
FIG. 7 is a diagram showing an interface table according to the second embodiment.

【図8】第2の実施の形態でのデータの書き込み処理を
示すフローチャートである。
FIG. 8 is a flowchart showing a data write process according to the second embodiment.

【図9】第2の実施の形態でのデータの読み出し処理を
示すフローチャートである。
FIG. 9 is a flowchart showing a data read process according to the second embodiment.

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

1,2 タスク使用中フラグ 71 受信タスク識別用フラグ 5 送信データテーブル 75 受信データテーブル 21,22 タスク 24 DSPドライバ 1, 2 task in-use flag 71 Reception task identification flag 5 Transmission data table 75 Reception data table 21, 22 tasks 24 DSP driver

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 周辺デバイス及びこの周辺デバイスに対
応するデバイスドライバを備えた並列処理システムにお
けるデバイスドライバと同一プライオリティの複数のタ
スクとの間の通信を制御するタスク−デバイスドライバ
間通信制御方法において、 同一プライオリティの複数のタスクから上記デバイスド
ライバへの、及び又は上記デバイスドライバから同一プ
ライオリティの複数のタスクへの送信データを蓄積する
テーブルを設けて、 同一プライオリティの複数のタスクの前記テーブルに対
するアクセス要求をフラグにより調整し、 アクセス権を取得したタスクが前記テーブルに対してデ
ータを書き込み、及び又は前記テーブルから読み出し、 デバイスドライバが前記テーブルからデータを読み出
す、及び又は前記テーブルに対してデータを書き込むこ
とを特徴とするタスク−デバイスドライバ間通信制御方
法。
1. A task-device driver communication control method for controlling communication between a device driver and a plurality of tasks of the same priority in a parallel processing system comprising a peripheral device and a device driver corresponding to the peripheral device, A table that stores transmission data from multiple tasks with the same priority to the device driver and / or from the device driver to multiple tasks with the same priority is provided, and access requests to the table for multiple tasks with the same priority are issued. Adjusted by the flag, the task that has acquired the access right writes data to and / or reads data from the table, and the device driver reads data from the table and / or data to the table. Between the device driver communication control method - tasks and writes the.
JP24609495A 1995-09-25 1995-09-25 Task-device driver communication control method Pending JPH0991157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24609495A JPH0991157A (en) 1995-09-25 1995-09-25 Task-device driver communication control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24609495A JPH0991157A (en) 1995-09-25 1995-09-25 Task-device driver communication control method

Publications (1)

Publication Number Publication Date
JPH0991157A true JPH0991157A (en) 1997-04-04

Family

ID=17143406

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24609495A Pending JPH0991157A (en) 1995-09-25 1995-09-25 Task-device driver communication control method

Country Status (1)

Country Link
JP (1) JPH0991157A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7353285B2 (en) 2003-11-20 2008-04-01 International Business Machines Corporation Apparatus, system, and method for maintaining task prioritization and load balancing
WO2009063536A1 (en) * 2007-11-16 2009-05-22 Netcleus Systems Corporation Task processing device
CN110753200A (en) * 2019-09-30 2020-02-04 北京智明星通科技股份有限公司 Multimedia information input method and device, terminal and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7353285B2 (en) 2003-11-20 2008-04-01 International Business Machines Corporation Apparatus, system, and method for maintaining task prioritization and load balancing
WO2009063536A1 (en) * 2007-11-16 2009-05-22 Netcleus Systems Corporation Task processing device
CN110753200A (en) * 2019-09-30 2020-02-04 北京智明星通科技股份有限公司 Multimedia information input method and device, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
US5247671A (en) Scalable schedules for serial communications controller in data processing systems
US8255912B2 (en) Techniques for setting events in a multi-threaded system
US20030065856A1 (en) Network adapter with multiple event queues
US7257658B2 (en) Message based interrupt table
US7937499B1 (en) Methods and apparatus for dynamically switching between polling and interrupt mode for a ring buffer of a network interface card
GB2408119A (en) Dynamic Switching between Polling and Interrupt in Handling Network Traffic
US7689991B2 (en) Bus management techniques
CN111679923B (en) Real-time communication method and system
JPH0991157A (en) Task-device driver communication control method
WO2005064463A1 (en) Task scheduling apparatus, method, program, storage medium and transmission medium for prioritized signal handler scheduling
JP3245500B2 (en) Event management method in multi-programming
JP3415931B2 (en) Method and apparatus for executing interrupt response of communication protocol
JPH064314A (en) Inter-task synchronizing communication equipment
JPWO2003014947A1 (en) HOST DEVICE, ELECTRONIC DEVICE, AND TRANSMISSION SYSTEM CONTROL METHOD
JPS61141063A (en) Suspension resumption system of file transfer
JPS63293660A (en) Communication controller
JPH0148574B2 (en)
CN117909089A (en) Inter-core communication system, method, device and storage medium of multi-core processor
US20060090019A1 (en) Asynchronous communications technique
JPH05216694A (en) Fa controller
JPH01248730A (en) Information processor
JPH04215160A (en) Information processor
JP2833782B2 (en) Communication control device
JPH10289198A (en) Data transfer device
JPH1141297A (en) Dma controller using programmable sequencer