JPH02183356A - Main body processing wait control system for line adapter - Google Patents

Main body processing wait control system for line adapter

Info

Publication number
JPH02183356A
JPH02183356A JP893489A JP348989A JPH02183356A JP H02183356 A JPH02183356 A JP H02183356A JP 893489 A JP893489 A JP 893489A JP 348989 A JP348989 A JP 348989A JP H02183356 A JPH02183356 A JP H02183356A
Authority
JP
Japan
Prior art keywords
processing
main unit
main body
adapter
task
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
JP893489A
Other languages
Japanese (ja)
Inventor
Hironori Sakai
博紀 酒井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP893489A priority Critical patent/JPH02183356A/en
Publication of JPH02183356A publication Critical patent/JPH02183356A/en
Pending legal-status Critical Current

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To improve the processing performance of a line adapter by selecting the main body processing wait of the line adapter in accordance with the throughput of a main body device. CONSTITUTION:After the lapse of a prescribed time, a first processing waiting means 19 monitors the ready state of a main body device 10 by re-reading an adapter side read register 16 according to time monitor by a timer. A second processing waiting means 20 reconnects a task for DMA control to the tail of a ready queue and when an execution schedule is turned again, the ready state of the main body device 10 is monitored by re-reading the adapter side read register 16. A processing wait selecting means 18 selects the first processing waiting means 19 suitable for low speed or the second processing waiting means 20 suitable for high speed in correspondence to a system according to the value of a flag in a main body processing waiting flag part 17. Thus, the vain time of main body processing waiting can be effectively utilized and the processing performance of the line adapter can be improved.

Description

【発明の詳細な説明】 〔概要〕 回線アダプタで受信したデータを本体装置に通知するタ
イミングを2本体装置の性能に合わせて選択できるよう
にした回線アダプタの本体処理待ち制宿1方式に関し 本体処理待ちの無駄な時間を有効に利用できるようにし
1回線アダプタの処理性能を向上させることを目的とし 回線アダプタにおける本体処理待ちの種別を示すフラグ
部と1本体装置がビジー状態であるときに、タイマによ
る時間監視によって1本体装置のレディ状態を監視する
第1の処理待ち手段と2本体装置がビジー状態であると
きに、DMA制御用タスクをレディ・キューの最後尾に
接続することにより2本体装置のレディ状態を監視する
第2の処理待ち手段と、フラグ部の内容により、第1の
処理待ち手段または第2の処理待ち手段のいずれかを選
択する処理待ち選択手段とを備えるように構成する。
[Detailed Description of the Invention] [Summary] Main unit processing related to the first system for waiting for main unit processing of a line adapter in which the timing for notifying the main unit of data received by the line adapter can be selected according to the performance of the two main units. In order to improve the processing performance of the single-line adapter by making effective use of wasted waiting time, a flag part indicating the type of main unit processing wait in the line adapter and a timer are set when the main unit is busy. The first processing waiting means monitors the ready status of the first main unit by time monitoring, and when the second main unit is in a busy state, the second main unit is connected by connecting the DMA control task to the end of the ready queue. and a processing waiting selection means for selecting either the first processing waiting means or the second processing waiting means depending on the contents of the flag part. .

〔産業上の利用分野〕[Industrial application field]

本発明は9回線アダプタで受信したデータを本体装置に
通知するタイミングを1本体装置の性能に合わせて選択
できるようにした回線アダプタの本体処理待ち制御方式
に関する。
The present invention relates to a main body processing wait control method for a line adapter in which the timing for notifying the main body of data received by nine line adapters can be selected in accordance with the performance of one main body.

端末でデータ通信を行う場合、端末本体装置の処理負担
を軽減し1回線種別や各種の制御手順に応した制御を行
うため3回線アダプタが用いられている。特に、高機能
化された回線アダプタは。
When performing data communication with a terminal, a three-line adapter is used to reduce the processing load on the terminal main unit and to perform control according to one line type and various control procedures. Especially with highly functional line adapters.

マイクロプロセッサとメモリとを搭載し、マルチタスク
制御のちとに、マイクロプロセッサによってアダプタ専
用のプログラムを実行するようになっている。このよう
な回線アダプタにおける処理性能の向上が望まれる。
It is equipped with a microprocessor and memory, and after multitasking control, the microprocessor executes a program dedicated to the adapter. It is desired to improve the processing performance of such line adapters.

〔従来の技術〕[Conventional technology]

第7図は従来方式による回線アダプタの処理の例を示す
FIG. 7 shows an example of processing of a line adapter according to the conventional method.

端末でデータ通信を行う場合に、オプションとして1回
線種別や制御手順を選択することができる回線アダプタ
が用いられている。通常3回線アダプタは、マイクロプ
ロセッサ(MPU)を持ち端末本体装置のスロットに組
み込まれて、データの受は渡しを本体装置とアダプタ間
のDMAで行うようになっている。回線アダプタを接続
したことにより7本体側の負担が重くならないように手
順部のプIログラムは、できるだけアダプタ側に入れる
ように考慮されている。
When performing data communication with a terminal, a line adapter is used that allows one line type and control procedure to be selected as an option. Normally, a three-line adapter has a microprocessor (MPU) and is installed in a slot of a terminal main unit, and data is received and transferred using DMA between the main unit and the adapter. In order to avoid increasing the burden on the 7 main unit by connecting the line adapter, consideration has been given to placing the program of the procedure section on the adapter side as much as possible.

ところで1本体装置と回線アダプタとのCPU/MPU
クロックやオーハヘソトの違いにより回線アダプタの受
信データを、即座に本体装置に通知できない場合がある
。本体装置の状態が、処理中(ビジー)であるか、アダ
プタ側からのDMA待ら(レディ)であるかは、■10
レジスタを読むことにより、知ることができるが、従来
のアダプタ側DMA制御用タスクは、第7図に示すよう
な処理により1本体装置の状態を監視するようにしてい
た。
By the way, the CPU/MPU between the main unit and the line adapter
Due to differences in clocks and clocks, data received by the line adapter may not be immediately notified to the main unit. ■10 The status of the main device is processing (busy) or waiting for DMA from the adapter side (ready).
This can be known by reading the register, but the conventional adapter-side DMA control task monitors the status of one main unit through processing as shown in FIG.

■ アダプタ側のI10レジスタを読む。■ Read the I10 register on the adapter side.

■ I10レジスクにおける本体側状態フラグにより5
本体装置がビジー状態であるかレディ状態であるかを判
定する。ビジー状態である場合には、処理■に制御を戻
し、I10レジスタの読み込みを繰り返す。
■ 5 due to the main unit status flag in I10 registration
Determine whether the main unit is busy or ready. If it is in a busy state, control is returned to process (2) and reading of the I10 register is repeated.

■ 本体装置がレディ状態であることを確認できたなら
ば2本体装置に対しDMA転送の処理を開始する。
- If it is confirmed that the main unit is in the ready state, start DMA transfer processing for the second main unit.

ごのような準線な処理待ちに限らず3本体処理待ちの制
御が1種類に固定されている場合にはその制御が、ある
システムでは最適であっても他の本体装置の性能が灰な
るシステムでは1時間に無駄が生して、最適ではなくな
るごとがある。
If the control for three main units is fixed to one type, not only for direct processing waiting like this, even if that control is optimal for one system, the performance of other main units will be degraded. The system wastes every hour and sometimes becomes suboptimal.

そのため、最適な本体処理待ち制御を行うためには、シ
ステムに応じて、その都度、アダプタ用のプログラムを
手直ししなければならないという問題がある。
Therefore, in order to perform optimal main body processing wait control, there is a problem in that the program for the adapter must be modified each time depending on the system.

本発明は上記問題点の解決を図り2本体処理待ちの無駄
な時間を有効に利用できるようにし5回線アダプタの処
理性能を向上させることを目的としている。
The present invention aims to solve the above-mentioned problems and to improve the processing performance of a 5-line adapter by making effective use of the wasted time waiting for processing by two main units.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

以上のような従来方式によれば、アダプタ側DMA制御
用タスクの単純な本体処理待ちにより。
According to the conventional method as described above, the DMA control task on the adapter side simply waits for main body processing.

回線アダプタにおけるマイクロプロセッサの実行環境が
占有され、他のタスクが走行できないので。
Because the execution environment of the microprocessor in the line adapter is occupied and other tasks cannot run.

性能が低下するという問題がある。There is a problem that performance deteriorates.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明の原理構成図である。 FIG. 1 is a diagram showing the principle configuration of the present invention.

第1図において110はデータの入出力処理をマ1う本
体装置、11はC1)U、+2はメモリ、13は本体装
置の状態を示すI10レジスタである本体側状態書き込
みレジスタ、14は通信制御を行う回線アダプタ、15
はマイク■コプロセノリ゛(MPU)、16は回線アダ
プタ14が本体側状態書き込みレジスタ13をak ’
j取るためのI10レジスタであるアダプタ側読み込み
レジスタ、17ば不休処理94ちフラグ部、+8は処理
マ)も選択手段、19ばタイマ起動による処理待ちを行
う第1の処理待ち手段、20はタスクのレディ・キュー
のつなぎ換えを行うことにより処理待ちを行う第2の処
理待ち手段を表す。
In FIG. 1, 110 is the main unit that performs data input/output processing, 11 is C1)U, +2 is memory, 13 is the main unit status write register which is the I10 register that indicates the status of the main unit, and 14 is communication control. Line adapter that performs 15
16 is the microphone co-processor unit (MPU), and 16 is the line adapter 14 that writes the status write register 13 on the main body side.
Adapter side read register which is I10 register for taking J, 17 is non-stop processing 94 (flag section, +8 is processing machine) is also selection means, 19 is first processing waiting means for waiting for processing by timer activation, 20 is task This represents a second processing waiting means that waits for processing by reconnecting the ready queue.

回線アダプタ14は、マルチタスク処理機能を有し5本
体装置10との間でl) M A転送によりデータを送
受信する。本体装置10の状態は2本体側状態書き込み
レジスタ13に書き込まれ、アダプタ側読み込みレジス
タ16を介して、参照できるようになっている。
The line adapter 14 has a multitask processing function and transmits and receives data to and from the main unit 10 by l) MA transfer. The status of the main unit 10 is written in the second main unit side status write register 13 and can be referenced via the adapter side read register 16.

本体処理待ちフラグ部17は、あらかしめ本体装置10
の性能に応して2本体処理待ちの種別が設定されるフラ
グである。狭義のフラグに限らず種別番号のようなもの
でもよい。
The main body processing wait flag unit 17
This flag is used to set the type of two-body processing wait according to the performance of the two main bodies. The flag is not limited to a flag in a narrow sense, but may be something like a type number.

処理待ち選択手段18は2回線から受信したデ夕を不休
装置10に通知するときに1本体装置10かビジー状態
であると1本体処理待ちフラグ部17の内容を判定し、
第1の処理待ち手段19または第2の処理待ち手段20
のいずれかを選択する処理を行うものである。
When notifying the non-stop device 10 of the data received from the two lines, the processing waiting selection means 18 determines from the contents of the first main body processing waiting flag unit 17 that the first main device 10 is in a busy state,
First processing waiting means 19 or second processing waiting means 20
This process selects one of the following.

第1の処理待ち手段19ば、タイマによる時間監視によ
って、所定の時間が経過したときに、アダプタ側読み込
めレジスタ16の再読み込みにより、不休装置10のレ
ディ状態を監視する処理手段である。
The first processing waiting means 19 is a processing means that monitors the ready state of the non-stop device 10 by re-reading the adapter-side read register 16 when a predetermined time has elapsed by time monitoring using a timer.

第2の処理待ち手段20ば2本体装置10へのデータ転
送制′4′111を行うDMA制御用タスクを、レディ
 キ□−の最後尾に接続しなおし、再度、実行スケシJ
、−ルが回ってきたときに、アダプタ側読み込めレジス
タ16の再読の込みにより3本体装置10のレディ状態
を監視する処理手段である。
The second processing waiting means 20 reconnects the DMA control task that performs the data transfer control '4' 111 to the second main unit 10 to the end of the ready key □-, and reconnects the execution schedule J.
This processing means monitors the ready status of the third main unit 10 by rereading the adapter side read register 16 when the .

〔作用〕[Effect]

本体装置10のレディ状態の監視を1例えば第7図に示
すように、命令のループによって行った場合には3本体
装置IOがレディ状態になるまで。
If the ready status of the main unit 10 is monitored by a loop of commands as shown in FIG. 7, for example, until the main unit IO reaches the ready status.

他の実行優先レベルが低いタスクには、実行制御が渡ら
ないことになり、−時的に回線アダプタ14の処理機能
が停止したような状態になる。
Execution control will not be passed to other tasks with lower execution priority levels, and the processing function of the line adapter 14 will temporarily stop.

これに対し、第1の処理待ち手段I9によって本体装置
10のレディ状態を監視すると、DMA制御用タスクは
、タイマによって時間待らの状態になるので、その間、
他のタスクは実行制御権を得て、必要な処理を実行でき
ることになる。
On the other hand, when the first processing waiting means I9 monitors the ready state of the main unit 10, the DMA control task is put into a waiting state by the timer, so during that time,
Other tasks gain execution control and can execute necessary processing.

また、第2の処理待ち手段20によって1本体装置IO
のレディ状態を監視すると、DMA制御用タスクは時間
待ちの状態になることはなく、高速に本体装置10のレ
ディ状態の判定を実行できることになる。DMA制御用
タスクは、タスク制御用のレディ・キューの最後尾に接
続されるので実行スケジューリングによって、レディ・
キューの先頭にくるまでの間に、他のタスクによる処理
を遂行できることになる。
In addition, the second processing waiting means 20 causes one main device IO
By monitoring the ready state of the main device 10, the DMA control task will not be in a waiting state, and the ready state of the main device 10 can be determined at high speed. The DMA control task is connected to the end of the ready queue for task control, so execution scheduling allows the task to become ready.
This means that other tasks can be processed until the task reaches the head of the queue.

本体処理待ちフラグ部17のフラグの値を変えるたけて
、処理待ち選択子段18により、システムに応して、低
速用に適した第1の処理待ち手段■9または高速用に適
した第2の処理待ち手段20を1簡単に選択できるよう
になる。
By changing the value of the flag in the main body processing wait flag section 17, the processing wait selector stage 18 selects the first processing waiting means (9) suitable for low-speed applications or the second processing waiting means (9) suitable for high-speed applications, depending on the system. The processing waiting means 20 can be easily selected.

〔実施例〕〔Example〕

第2図は本発明を適用するシステム構成例、第3図は本
発明の一実施例に係る■/○レジスタの例、第4図は本
発明の一実施例を説明するためのタスクの状態遷移図、
第5図は本発明の一実施例を説明するためのタスクのキ
ューイング説明図第6図は本発明の一実施例処理フロー
を示す。
Fig. 2 is an example of a system configuration to which the present invention is applied, Fig. 3 is an example of ■/○ registers according to an embodiment of the present invention, and Fig. 4 is a task state for explaining an embodiment of the present invention. transition diagram,
FIG. 5 is an explanatory diagram of task queuing to explain an embodiment of the present invention. FIG. 6 shows a processing flow of an embodiment of the present invention.

第2図において、30はCPUおよびメモリ等を備えた
端末本体装置、31はシステムの動作を監視しタスクの
管理や各種制御等を行うモニタ32は木杯側における回
線手順に応した処理を行う本体側回線手順部、33は端
末本体装置30に接続されるデイスプレィ、キーボード
、ティスフプリンタ等に対する入出力制御を行うプログ
ラムバイ、34もよシステム・サービス・プログラム、
35はタイマ制御用タスク、36はチャネル・インクツ
エース・プログラム(CI F)を実行する本体側DM
A制御用タスク、37はDMAハスを表す。
In FIG. 2, 30 is a terminal main unit equipped with a CPU, memory, etc.; 31 is a monitor that monitors system operations, manages tasks, and performs various controls; and a monitor 32 that performs processing according to line procedures on the wooden cup side. 33 is a main unit side line procedure section, 33 is a program by which performs input/output control for the display, keyboard, Tisp printer, etc. connected to the terminal main unit 30; 34 is a system service program;
35 is a timer control task, and 36 is a main body side DM that executes the channel inktease program (CIF).
A control task 37 represents a DMA lotus.

また5第2図に示す回線アダプタ14において38はマ
ルチタスク処理機能を有する制御プログラムであるモニ
タ、39はメイン・インフッニス・プログラム(MIF
)を実行するアダプタ側DMA制御用タスク、40はア
ダプタ側における回線手順に応じた処理を行うアダプタ
側回線子+g4部、41はバッファの管理等を行うシス
テム・サービス・プログラム、42はタイマ制御用タス
ク。
In addition, in the line adapter 14 shown in FIG.
), 40 is an adapter side line element +g4 unit that performs processing according to the line procedure on the adapter side, 41 is a system service program that manages buffers, etc., and 42 is for timer control. task.

43は回線ハードウェア制御部を表す。43 represents a line hardware control section.

本発明は、特にアダプタ側I) M A制御用タスク3
9の処理に関連している。端末本体装置30側は、従来
と同様でよく変更はない。
The present invention is particularly applicable to the adapter side I) M A control task 3
It is related to the process of 9. The terminal main unit 30 side is the same as the conventional one and there is no change.

第2図に示す本体側DMA制御制御用タラ36とアダプ
タ側DMA制御用タスク39とのインクフェースとして
使用されるI10レジスタであって本発明に関連する部
分は、第3図に示すようになっている。
The I10 register used as an ink interface between the main body side DMA control task 36 and the adapter side DMA control task 39 shown in FIG. 2, and the part related to the present invention, is as shown in FIG. ing.

本体側DMA制′41■用タスク36が1本体側状態書
き込みレジスタ13に値をセットすると、連動でアダプ
タ側読み込みレジスタ16の値が変化する。このI10
レジスクの第1ヒツト目5TSEか2本体状態判別フラ
グであり、“0゛のとき本体装置かビジー状7嘘、“1
”のとき2本体装置がDMA転送を受は付りることがで
きるレディ状態であることを示す。
When the main body side DMA control '41■ task 36 sets a value in the first main body side status write register 13, the value of the adapter side read register 16 changes in conjunction. This I10
The first hit of the registration disk is 5TSE or 2. This is the main unit status determination flag. When it is “0”, the main unit is busy 7 lie, “1”
” indicates that the second main unit is in a ready state where it can accept DMA transfer.

第2図に示すモニタ38は、タスクの並行処理を制御す
るため、第4図に示すように、タスクを4つの状態で管
理している。第4図において、RONは、マイクロブ1
」セノザによる実行状態である。REA I) Yは、
実行可能状態である。WA1′Fは、処理要求や割込み
等の事象待ら状態である。
The monitor 38 shown in FIG. 2 manages tasks in four states, as shown in FIG. 4, in order to control parallel processing of tasks. In Figure 4, RON is microbe 1
” This is the state of execution by Cenoza. REA I) Y is
It is in an executable state. WA1'F is in a state of waiting for an event such as a processing request or an interrupt.

5TOPは、停止状態である。5TOP is in a stopped state.

モニタ38のタスクスケジューラは、タスクの切り替え
事象番こ対し、タスクのレディ キューに接続されてい
るI)CB (Program Control Rl
ock)順で、各タスクに実行制御を渡していく。タス
クの状態を変えるシステム マクロとして1本実施例で
は2次のようなマクロ命令が用意されている。
The task scheduler of the monitor 38 detects the task switching event number and the I) CB (Program Control Rl) connected to the task ready queue.
Execution control is passed to each task in the order of .ock). In this embodiment, the following macro commands are prepared as system macros for changing the state of tasks.

5−EXECマクロ二指定タスクを起動する。5-EXEC macro 2 starts the specified task.

5−CANLマクロ:指定タスクを停止状態にする。5-CANL macro: Stops the specified task.

S−3T Or)マクロ:自タスクを停止状態にする。S-3T Or) Macro: Brings the invoking task to a stopped state.

5−WAITマクロ:自タスクを事象待ち状態にする。5-WAIT macro: Puts the invoking task into an event wait state.

5−P05TマクrJ:指定タスクをレディ状態にする
5-P05T MacrJ: Make the specified task ready.

S −S EN D ?クロ:指定タスクにバッファを
送信し、レディ状態にする。
S-SEN D? Black: Sends a buffer to the specified task and makes it ready.

S−R”rNマクロ;自タスクをレディ・キューの最後
尾に接続する。
SR”rN macro: Connects the invoking task to the end of the ready queue.

レディ状態のタスクを管理するタスクのレディ・キュー
は、第5図に示すように、実行優先レベルに応じて、P
CBをチエインするようになっている。第5図において
、50はタスクのレディ・キュー、51−1ないし51
−4は各タスクのプログラム制御情報を記憶するPCB
である。
As shown in FIG. 5, the task ready queue that manages tasks in the ready state is
It is designed to chain CB. In FIG. 5, 50 is a ready queue of tasks, 51-1 to 51
-4 is a PCB that stores program control information for each task.
It is.

第6図は、第2図に示すアダプタ側DMA制御用タスク
39が行う本発明に関連する部分の処理の例を示してい
る。以F、第6図に示す処理■〜■に従って説明する。
FIG. 6 shows an example of the processing related to the present invention performed by the adapter-side DMA control task 39 shown in FIG. Hereinafter, the process will be explained according to the processes ① to ② shown in FIG.

■ 受信データを、端末本体装置30へ通知するとき、
まず本体装置の状態を調べるため、アダプタ側の110
レジスタ、すなわら、アダプタ側読み込みレジスタ16
を読む。
■ When notifying the terminal main unit 30 of received data,
First, in order to check the status of the main unit, use 110 on the adapter side.
Register, that is, adapter side read register 16
I Read.

■ 第3図に示す5TSEの本体状態判別フラグを調べ
1本体装置がビジー状態であるかレディ状態であるかを
調べる。レディ状態の場合、処理■へ移る。
(2) Check the main unit status determination flag of 5TSE shown in FIG. 3 to determine whether the 1 main unit is in a busy state or a ready state. If it is in the ready state, proceed to process ■.

■ 本体装置がビジー状態の場合、第1図に示す本体処
理待ちフラグ部17の値を調べる。このフラグが1”の
とき処理■、″O”のとき処理■へ移る。
(2) If the main unit is in a busy state, check the value of the main unit processing wait flag unit 17 shown in FIG. When this flag is 1", the process moves to process (2), and when this flag is "O", the process moves to process (2).

■ S −RTNマクロを発行して、自タスクをレディ
・キューの最後尾に接続し、再度、実行制御か回ってき
たならば、処理■以下を繰り返す。
(2) Issue the S-RTN macro, connect the invoking task to the end of the ready queue, and when execution control returns again, repeat the process (2) and the subsequent steps.

■ 本体処理待ちフラグ部17の値が“0”のとき、1
msないしLooms程度の所定の監視時間を1次に発
行するS−TIMEマクロのパラメータに設定する。
■ When the value of the main body processing wait flag section 17 is “0”, 1
A predetermined monitoring time on the order of ms to looms is set as a parameter of the S-TIME macro that is issued primarily.

■ S−TIMEマクロを発行する。S−TIMEマク
ロは、第2図に示すタイマ制御用タスク42が時間監視
を行い、指定した時間が経過したときに5発行元のタス
クを実行可能にする゛lクロ命令である。制御が戻って
きたならば、処理■へ戻り、同様に処理を繰り返す。
■ Issue the S-TIME macro. The S-TIME macro is a one-clock instruction that allows the timer control task 42 shown in FIG. 2 to monitor time and execute the tasks of the five issuers when a specified time has elapsed. When control returns, the process returns to process (2) and the process is repeated in the same manner.

■ 本体装置がレディ状態になったならば1本体装置に
対し、DMA処理を開始し、受信データを転送する。
- When the main unit becomes ready, start DMA processing for one main unit and transfer the received data.

上記処理■により、5−RTNマクロを発行すると、第
5図に示すように、アダプタ側DMA制御用タスク (
MIF>39のPCB5m−2が。
When the 5-RTN macro is issued by the above process (2), the adapter side DMA control task (
PCB5m-2 with MIF>39.

同じレベルのレディ・キューの最後に接続されることに
なる。そのキューの先頭に、他タスクのPCBがあれば
、そのタスクが次に実行される。第5図では5タスクA
がRUN状態になって、実行されることになる。そのキ
ューに他タスクがなければ2次のレベルのレディ・キュ
ーがサーチされタスクBが実行される。
It will be connected to the end of the ready queue at the same level. If there is a PCB for another task at the head of the queue, that task will be executed next. In Figure 5, 5 tasks A
will enter the RUN state and be executed. If there are no other tasks in that queue, the secondary level ready queue is searched and task B is executed.

そのタスクの実行後は、レベル1のレディ・キューにつ
いてスケジューリングが行われるので次にアダプタ側D
MA制御用タスク39のPCB51−2がキューの先頭
にきていれば5実行制御が渡される。
After that task is executed, scheduling is performed for the level 1 ready queue, so next the adapter side D
If the PCB 51-2 of the MA control task 39 is at the head of the queue, 5 execution control is passed.

このように、5−RTNマクロを使用するとモニタ38
と他タスクの走行した後、自分に制御が戻るが、その時
間は2通常l ms以下であるので。
In this way, if you use the 5-RTN macro, monitor 38
After the other tasks have finished, control is returned to you, but the time it takes is usually less than 2 ms.

本体装置の処理が速い場合、有効である。This is effective if the processing speed of the main unit is fast.

一方、モニタ38に用意されているS−TIMEマクロ
を使用すると2例えば1msないし1001nsの単位
で制御権を放すことが可能で、指定した時間に達すると
、自タスクに制御が戻ってくるので1本体装置の処理に
時間かかかる場合に有効である。
On the other hand, if you use the S-TIME macro provided in the monitor 38, it is possible to release control in units of, for example, 1ms to 1001ns, and when the specified time is reached, control is returned to the own task. This is effective when processing on the main unit takes a long time.

どちらを選択するかは1例えば本体装置の受信性能を、
テストアプリケーションプログラムを走行させて、他の
ワークステーション間で測定し。
Which one to choose depends on the receiving performance of the main unit, for example,
Run the test application program and measure it across other workstations.

アプリケーションの両面表示が遅い場合など、受信途中
でメモリダンプ等を行っ°乙アダプタの内部状態を調べ
ることにより、決定することができる。
If the double-sided display of an application is slow, this can be determined by performing a memory dump etc. during reception and checking the internal state of the adapter.

常に1本体通知の受信へソファが滞留しているような場
合には2本体装置の処理が遅いことがわかるので、S−
TIMEマクロによる本体処理待ちにすればよい。そう
でなければ、5−RTNマクロによる本体処理待ちとす
る。
If the sofa is always waiting to receive notifications from the first device, you can see that the processing on the second device is slow, so the S-
All you have to do is wait for main body processing using the TIME macro. Otherwise, it waits for main body processing by the 5-RTN macro.

第2図に示す回線アダプタ14用のプログラムを、初期
化時に、端末本体装置30からローディングするような
場合には、端末本体装置30が管理するプログラムモジ
ュールにおいて、第1図に示す本体処理待ちフラグ部1
7のフラグをパッチすることによって、簡単にS−TI
MEマクロの使用またはS−RT Nマクロの使用を切
り替えることができる。また、端末本体装置30におけ
る環境設定プログラムにより1本体処理待ちフラグ部1
7を更新するようにしてもよい。
When the program for the line adapter 14 shown in FIG. 2 is loaded from the terminal main unit 30 at the time of initialization, in the program module managed by the terminal main unit 30, the main unit processing waiting flag shown in FIG. Part 1
By patching flag 7, you can easily install S-TI.
It is possible to switch between using the ME macro or using the S-RTN macro. In addition, the environment setting program in the terminal main unit 30 sets the main unit processing wait flag section 1
7 may be updated.

さらに、S−TIMEマクロを使用するときにその指定
時間を2本体装置の処理能力に応じて外部から静的また
は動的に指定できるようにすることにより、適切な時間
による本体処理待ちを実現することができる。
Furthermore, when using the S-TIME macro, the specified time can be specified statically or dynamically from the outside depending on the processing capacity of the two main units, thereby realizing an appropriate amount of time for waiting for main unit processing. be able to.

〔発明の効果〕〔Effect of the invention〕

以上説明したように1本発明によれば1回線アダプタの
本体処理待ちを3本体装置の処理能力に合わせて簡単に
選択できるようになり2回線アダプタにおけるタスクの
並列処理性を高めることができるので3回線アダプタの
処理性能が向上する。
As explained above, according to the present invention, it is possible to easily select the main body processing waiting state of the one-line adapter according to the processing capacity of the three-line adapter, and the parallel processing performance of tasks in the two-line adapter can be improved. The processing performance of the 3-line adapter is improved.

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

第1図は本発明の原理構成図 第2図は本発明を適用するシステム構成例。 第3図は本発明の一実施例に係るI10レジスタの例。 第4図は本発明の一実施例を説明するためのタスクの状
態遷移図 第5図は本発明の一実施例を説明するためのタスクのキ
ューイング説明図 第6図は本発明の一実施例処理フロー 第7図は従来方式による回線アダプタの処理の例を示す
。 図中、10は本体装置、11ばC1)U、12はメモリ
、13は本体側状態書き込みレジスタ、14は回線アダ
プタ、15はマイクロプロセノ勺。 16はアダプタ側読み込みレジスタ、17は本体処理待
ちフラグ部、18は処理待ち選択手段、19は第1の処
理待ち手段、20は第2の処理待ち手段を表す。
FIG. 1 shows the basic configuration of the present invention. FIG. 2 shows an example of a system configuration to which the present invention is applied. FIG. 3 is an example of the I10 register according to an embodiment of the present invention. FIG. 4 is a state transition diagram of a task for explaining an embodiment of the present invention. FIG. 5 is an explanatory diagram of task queuing for explaining an embodiment of the present invention. FIG. 6 is an embodiment of the present invention. Example Processing Flow FIG. 7 shows an example of processing of a line adapter according to the conventional method. In the figure, 10 is a main unit, 11 is a C1), 12 is a memory, 13 is a main body side state writing register, 14 is a line adapter, and 15 is a micro processor. Reference numeral 16 represents an adapter side read register, 17 a main body processing wait flag section, 18 a processing wait selection means, 19 a first processing wait means, and 20 a second processing wait means.

Claims (1)

【特許請求の範囲】  マイクロプロセッサ(15)を備えた通信制御を行う
回線アダプタ(14)であって、マルチタスク処理機能
を有し、本体装置(10)との間でDMA転送によりデ
ータを送受信する回線アダプタにおいて、回線アダプタ
における本体処理待ちの種別を示すフラグ部(17)と
、 本体装置がビジー状態であるときに、タイマによる時間
監視によって、本体装置のレディ状態を監視する第1の
処理待ち手段(19)と、 本体装置がビジー状態であるときに、DMA制御用タス
クをレディ・キューの最後尾に接続することにより、本
体装置のレディ状態を監視する第2の処理待ち手段(2
0)と、 上記フラグ部の内容により、上記第1の処理待ち手段ま
たは上記第2の処理待ち手段のいずれかを選択する処理
待ち選択手段(18)とを備えたことを特徴とする回線
アダプタの本体処理待ち制御方式。
[Claims] A line adapter (14) that performs communication control and is equipped with a microprocessor (15), has a multitask processing function, and transmits and receives data to and from the main device (10) by DMA transfer. A flag section (17) indicating the type of main unit processing waiting in the line adapter, and a first process for monitoring the ready state of the main unit by time monitoring using a timer when the main unit is in a busy state. Waiting means (19); and second processing waiting means (2) for monitoring the ready state of the main unit by connecting a DMA control task to the end of the ready queue when the main unit is in the busy state.
0); and processing waiting selection means (18) for selecting either the first processing waiting means or the second processing waiting means according to the contents of the flag part. Main body processing wait control method.
JP893489A 1989-01-10 1989-01-10 Main body processing wait control system for line adapter Pending JPH02183356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP893489A JPH02183356A (en) 1989-01-10 1989-01-10 Main body processing wait control system for line adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP893489A JPH02183356A (en) 1989-01-10 1989-01-10 Main body processing wait control system for line adapter

Publications (1)

Publication Number Publication Date
JPH02183356A true JPH02183356A (en) 1990-07-17

Family

ID=11558752

Family Applications (1)

Application Number Title Priority Date Filing Date
JP893489A Pending JPH02183356A (en) 1989-01-10 1989-01-10 Main body processing wait control system for line adapter

Country Status (1)

Country Link
JP (1) JPH02183356A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011034381A (en) * 2009-08-03 2011-02-17 Fujitsu Telecom Networks Ltd Power supply controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011034381A (en) * 2009-08-03 2011-02-17 Fujitsu Telecom Networks Ltd Power supply controller

Similar Documents

Publication Publication Date Title
KR101341286B1 (en) Inter-port communication in a multi-port memory device
CA1277382C (en) Inter-processor communication protocol
US5819111A (en) System for managing transfer of data by delaying flow controlling of data through the interface controller until the run length encoded data transfer is complete
JP3083565B2 (en) Timer manager
US20060155907A1 (en) Multiprocessor system
EP0535793A2 (en) Method for managing data transfers in a computing system having a dual bus structure
JP2001195384A (en) Processor and method for controlling input and output pin of the processor
US6487617B1 (en) Source-destination re-timed cooperative communication bus
GB2377138A (en) Ring Bus Structure For System On Chip Integrated Circuits
JPH02183356A (en) Main body processing wait control system for line adapter
US6112272A (en) Non-invasive bus master back-off circuit and method for systems having a plurality of bus masters
WO2000023891A1 (en) A processor
KR100357284B1 (en) The one chip asynchronous microprocessor Inter Processor Communication circuit
US5943509A (en) Small size inter-processor data transfer system
JPH0981533A (en) Inter-processor data transfer system and ring buffer memory for the same
JP2954006B2 (en) Emulation device and emulation method
KR0145932B1 (en) Dma controller in high speed computer system
JPS5921051B2 (en) Communication control device
JP2752834B2 (en) Data transfer device
KR0131860B1 (en) Apparatus for input/output of console in multiprocessor system and method of the same
JPH05250332A (en) Electronic equipment
JPS6143369A (en) Multi-processor system
JPH01107295A (en) Memory controller
Chowdhary Computer Organization (Input-output)
JPH06149703A (en) Message transfer controller