JPH03204747A - Stack resources shared system - Google Patents

Stack resources shared system

Info

Publication number
JPH03204747A
JPH03204747A JP2001243A JP124390A JPH03204747A JP H03204747 A JPH03204747 A JP H03204747A JP 2001243 A JP2001243 A JP 2001243A JP 124390 A JP124390 A JP 124390A JP H03204747 A JPH03204747 A JP H03204747A
Authority
JP
Japan
Prior art keywords
stack
timer
area
event queue
overflow
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
JP2001243A
Other languages
Japanese (ja)
Inventor
Minako Nakamura
美奈子 中村
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2001243A priority Critical patent/JPH03204747A/en
Publication of JPH03204747A publication Critical patent/JPH03204747A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To effectively utilize the stack resources in a protocol processing part by executing the switching for using an area of a timer stack as an area of an event queue stack, in the case a free area exists in the area of the timer stack at the time of event queue overflow. CONSTITUTION:An overflow monitoring report part 42 monitors an overflow of an event queue stack 41, and when an event queue overflow is detected, an instruction is outputted so as to detect whether a free area exists in an area of a timer stack 7 or not to a free area detecting circuit 6 through an overflow detecting signal line 103. In accordance with this instruction, based on a check of the free area of the area of the timer stack 7, the free area detecting circuit 6 detects whether the free area exists in the area of the timer stack 7 or not at that time point. As a result of this detection, in the case the free area exists in the area of the timer stack 7, a stack switching part 8 executes the switching for using the area of the timer stack 7 as an area of the event queue stack 41. In such a way, the stack resources can be utilized effectively.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は通信制御装置に関し、特に通信制御装置内のプ
ロトコル処理部に存在するイヘントキュースクンクおよ
びタイマスタックにおけるスタック資源の共用を図るス
タック資源共用方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a communication control device, and particularly to a stack for sharing stack resources in an event queue and a timer stack existing in a protocol processing section in a communication control device. Concerning resource sharing methods.

〔従来の技術〕[Conventional technology]

従来、この種のスタック資源共用方式は存在しなかった
。したがって、イヘントキュースタノクに使用する領域
とタイマスタックに使用する811M1とは、それぞれ
固定的であった。
Conventionally, this type of stack resource sharing method did not exist. Therefore, the area used for the event queue and the 811M1 used for the timer stack were fixed.

(発明が解決しようとする課題〕 上述したように、従来の技術では、イヘントスタックに
使用する領域とタイマスタックに使用する領域とはそれ
ぞれ固定的であるので、−船釣にあまり領域が使用され
ない(格納対象のタイマ制御語がそれほど発生しない)
タイマスタックにスタック切替の無駄が生じやすく、−
船釣に頻繁に領域が使用される(格納対象のインタフェ
ースコマンド語が頻繁に発生する)イベントキュースタ
/′Tにオーバフロー(イベントキューオーバフロー)
が起こりやすいという欠点がある。
(Problems to be Solved by the Invention) As described above, in the conventional technology, the area used for event stacking and the area used for timer stacking are fixed, so - less area is used for boat fishing. (timer control words to be stored do not occur often)
Stack switching is likely to be wasteful in the timer stack, and −
Area is frequently used for boat fishing (interface command words to be stored occur frequently) Overflow in event queue star/'T (event queue overflow)
The disadvantage is that it is more likely to occur.

本発明の目的は、上述の点に鑑み、タイマスタンクの領
域をイベントキュースタックの領域として切り替えて使
用できるスタック資源共用方式を提供することにある。
In view of the above-mentioned points, an object of the present invention is to provide a stack resource sharing method that can switch and use the timer tank area as the event queue stack area.

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

本発明のスタック資源共用方式は、インタフェースコマ
ンド語を格納するスタックであるイベントキュースタッ
クと、このイベントキュースタックにおけるイベントキ
ューオーバフローの監視および報告を行うオーバフロー
監視報告部と、タイマ制御語を格納するスタックである
タイマスタックと、このタイマスタックにタイマ制御語
を格納する際にそのタイマ制御語に順序番号を付加する
順序番号付加回路と、この順序番号付加回路によりタイ
マ制御語に付加される順序番号に基づいて前記タイマス
タックの領域に空き領域があるか否かを検出する空き領
域検出回路と、前記オーバフロー監視報告部によりイベ
ントキューオーバフローが検出された場合において前記
タイマスタンクの領域に空き領域があると前記空き領域
検出回路により検出されたときに前記タイマスタ・ツク
の領域を前記イベントキュースタックの領域として使用
するための切替えを行うスタック切替え部とを有する。
The stack resource sharing method of the present invention includes an event queue stack that is a stack that stores interface command words, an overflow monitoring and reporting section that monitors and reports event queue overflow in this event queue stack, and a stack that stores timer control words. A timer stack that is a timer stack, a sequence number adding circuit that adds a sequence number to a timer control word when storing the timer control word in this timer stack, and a sequence number adding circuit that adds a sequence number to the timer control word by this sequence number adding circuit. a free space detection circuit that detects whether or not there is free space in the timer stack area based on the above; and a free space detection circuit that detects whether there is free space in the timer stack area based on the above; and a stack switching unit that performs switching to use the timer master stack area as the event queue stack area when detected by the free area detection circuit.

〔作用〕[Effect]

本発明のスタック資源共用方式では、イベントキュース
タックがインタフェースコマンド語を格納し、オーバフ
ロー監視報告部がイベントキュースタックにおけるイベ
ントキューオーバフローの監視および報告を行い、タイ
マスタックがタイマ制御語を格納し、順序番号付加回路
がタイマスタックにタイマ制御語を格納する際にそのタ
イマ制御語に順序番号を付加し、空き領域検出回路が順
序番号付加回路によりタイマ制御語に付加される順序番
号に基づいてタイマスタックの領域に空き領域があるか
否かを検出し、スタック切替え部がオーバフロー監視報
告部によりイベントキューオーバフローが検出された場
合においてタイマスタックの領域に空き領域があると空
き領域検出回路により検出されたときにタイマスタック
の領域をイベントキュースタックの領域として使用する
ための切替えを行う。
In the stack resource sharing method of the present invention, the event queue stack stores interface command words, the overflow monitoring and reporting section monitors and reports event queue overflow in the event queue stack, and the timer stack stores timer control words and When the number addition circuit stores the timer control word in the timer stack, it adds a sequence number to the timer control word, and the free space detection circuit stores the timer control word in the timer stack based on the sequence number added to the timer control word by the sequence number addition circuit. Detects whether or not there is free space in the area of the timer stack, and when the stack switching unit detects an event queue overflow by the overflow monitoring and reporting unit, the free space detection circuit detects that there is a free space in the timer stack area. Sometimes the timer stack area is switched to be used as the event queue stack area.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明のスタック資源共用方式の一実施例の
構成を示すブロック図である1本実施例のスタック資源
共用方式は、回線(図示せず)とのデータ送信/受信処
理等を行う回線インクフェース制御部1と、CPU (
Cen t ra I  Processing  U
nit、図示せず)からの指示に基づくプロトコル処理
部10への報告処理およびプロトコル処理部10からの
割込みに基づく割込み処理等を行うバスインタフェース
制御部2と、プロトコル処理部10からの要求に基づき
メモリ内容の読出し/書込み処理等を行うメモリ3 (
メモリ自体とメモリ制御部とを含む)と、プロトコル処
理部10と、回線インタフェース制御部1.バスインタ
フェース制御部2.メモリ3およびプロトコル処理部1
0の制御情報等の授受を行うメモリバス101とを含ん
で構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the stack resource sharing method of the present invention. The stack resource sharing method of this embodiment performs data transmission/reception processing, etc. with a line (not shown). The line inkface control unit 1 and the CPU (
Centra I Processing U
a bus interface control unit 2 that performs reporting processing to the protocol processing unit 10 based on instructions from the protocol processing unit 10 (not shown) and interrupt processing based on interrupts from the protocol processing unit 10; Memory 3 (
(including the memory itself and a memory control section), a protocol processing section 10, and a line interface control section 1. Bus interface control section 2. Memory 3 and protocol processing unit 1
0 and a memory bus 101 for exchanging control information and the like.

プロトコル処理部10は、イベントキュー管理部4(イ
ベントキュースタック41およびオーバフロー監視報告
部42を有する)と、順序番号付加回路5と、空き領域
検出回路6と、タイマスタ7り7と、スタック切替え部
8と、プロセッサ9(通信制御装置における通信制御の
処理を行うプロセッサ)と、プロトコルバス102  
(プロトコル処理部10内の制御情報の授受を行うバス
)と、オーバフロー検出信号vA103と、入力順序番
号信号線104と、出力順序番号信号線105と、切替
え信号線106と、イベントキューオーバフロー検出信
号線107とを含んで構成されている。
The protocol processing section 10 includes an event queue management section 4 (having an event queue stack 41 and an overflow monitoring and reporting section 42), a sequence number addition circuit 5, an empty space detection circuit 6, a timer 7, and a stack switching section. 8, a processor 9 (a processor that performs communication control processing in a communication control device), and a protocol bus 102.
(a bus for exchanging control information within the protocol processing unit 10), an overflow detection signal vA103, an input sequence number signal line 104, an output sequence number signal line 105, a switching signal line 106, and an event queue overflow detection signal The line 107 is configured to include the line 107.

次に、このように構成された本実施例のスタック資源共
用方式の動作について説明する。
Next, the operation of the stack resource sharing method of this embodiment configured as described above will be explained.

プロトコル処理部10内のプロセッサ9は、時間に関す
る管理情報を回線インタフェース制御部1やバスインタ
フェース制御部2等に報告するためのタイマ制御語をプ
ロトコルバス102に対して発行する。
The processor 9 in the protocol processing unit 10 issues a timer control word to the protocol bus 102 for reporting time-related management information to the line interface control unit 1, bus interface control unit 2, etc.

順序番号付加回路5は、このタイマ制御語に順序番号(
順序番号を示すいくつかのビットからなる情報)を付加
し、順序番号付きタイマ制御語をタイマスタック7に格
納し、順序番号を入力順序番号信号線104を介して空
き領域検出回路6に出力する。
The sequence number adding circuit 5 adds a sequence number (
The timer control word with the sequence number is stored in the timer stack 7, and the sequence number is output to the free space detection circuit 6 via the input sequence number signal line 104. .

タイマ制御語(順序番号付きタイマ制御語)をメモリハ
ス101に出力することが可能になると、タイマスタッ
ク7はそのタイマ制御語に付加されている順序番号を出
力順序番号信号vA105を介して空き領域検出回路6
に出力する。
When it becomes possible to output the timer control word (timer control word with sequence number) to the memory space 101, the timer stack 7 outputs the sequence number added to the timer control word and detects an empty area via the sequence number signal vA105. circuit 6
Output to.

空き領域検出回路6は、上述のようにして入力順序番号
信号線104または出力順序番号信号線105を介して
送られてくる順序番号に基づいて、タイマスタック7の
領域の空きバイト数(空き領域)を常にチエツクしてい
る。
The free space detection circuit 6 determines the number of free bytes (free space) in the area of the timer stack 7 based on the sequence number sent via the input sequence number signal line 104 or the output sequence number signal line 105 as described above. ) is constantly checked.

イベントキュー管理部4内のイベントキュースタック4
1は、外部(回線インタフェース制御部1やバスインタ
フェース制御部2等)から発行される複数のインタフェ
ースコマンド語を格納してイベントをキューイングして
いる(各インタフェースコマンド語は順次プロセッサ9
に発行される)。
Event queue stack 4 in event queue management section 4
1 stores a plurality of interface command words issued from the outside (line interface control unit 1, bus interface control unit 2, etc.) and queues events (each interface command word is sequentially sent to the processor 9).
).

オーバフロー監視報告部42は、イベントキュースタッ
ク41のオーバフロー(イベントキューオーパフロー)
を監視しており、イベントキューオーバフローを検出す
るとオーバフロー検出信号線103を介して空き領域検
出回路6にタイマスタック7の領域に空き領域があるか
否かを検出するように指示を出す。
The overflow monitoring and reporting unit 42 detects an overflow of the event queue stack 41 (event queue overflow).
When it detects an event queue overflow, it issues an instruction to the free space detection circuit 6 via the overflow detection signal line 103 to detect whether or not there is a free space in the timer stack 7 area.

空き領域検出回路6は、この指示に従って、上述のよう
に常に行っているタイマスタック7の領域の空き領域の
チエツクに基づき、その時点でタイマスタック7の領域
に空き領域があるか否かを検出する。
In accordance with this instruction, the free space detection circuit 6 detects whether or not there is free space in the timer stack 7 at that time based on the free space check in the timer stack 7 that is always performed as described above. do.

この検出でタイマスタック7の領域に空き領域がある場
合には、スタック切替え部8は切替え信号線106を介
してタイマスタック7の領域をイベントキュースタック
41の領域として使用するための切替えを行う。
If there is a free space in the area of the timer stack 7 in this detection, the stack switching unit 8 performs switching to use the area of the timer stack 7 as the area of the event queue stack 41 via the switching signal line 106.

上述の検出でタイマスタック7の領域に空き領域がない
場合には、空き領域検出回路6はイベントキューオーバ
フロー検出信号線107およびプロトコルバス102を
介してプロセッサ9にイベントキューオーバフローを報
告する。
If there is no free space in the area of the timer stack 7 in the above detection, the free space detection circuit 6 reports the event queue overflow to the processor 9 via the event queue overflow detection signal line 107 and the protocol bus 102.

〔発明の効果〕 以上説明したように本発明は、イベントキューオーバフ
ロー時にタイマスタックの領域に空き領域が存在する場
合に、タイマスタックの領域をイベントキュースタック
の領域として使用するための切替えを行うことにより、
プロトコル処理部におけるスタ・7り資源を有効に利用
することができるという効果がある。
[Effects of the Invention] As explained above, the present invention is capable of switching the timer stack area to be used as the event queue stack area when there is free space in the timer stack area when the event queue overflows. According to
This has the effect that the star/7 resources in the protocol processing section can be used effectively.

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

第1図は本発明の一実施例の構成を示すブロック図であ
る。 図において、 1・・・・・回線インタフェース制御部、2・・・・・
バスインタフェース制Jn ff1l、3・・・・・メ
モリ、 4・・・・・イベントキュー管理部、 5・・・・・順序番号付加回路、 6・・・・・空き領域検出回路、 7・・・・・タイマスタック、 8・・・・・スタック切替え部、 9・・・・・プロセッサ、 10・・・・プロトコル処理部、 41・・・・イベントキュースタック、42・・・・オ
ーバフロー監視報告部、101・・・メモリハス、 102・・・プロトコルバス、 103 104 05 06 07 オーバフロー検出信号線、 入力順序番号信号線、 出力順序番号信号線、 切替え信号線、 イヘントキューオーパフロー検出 信号線である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, 1... line interface control section, 2...
Bus interface system Jn ff1l, 3...Memory, 4...Event queue management section, 5...Sequence number addition circuit, 6...Free space detection circuit, 7... ...Timer stack, 8...Stack switching unit, 9...Processor, 10...Protocol processing unit, 41...Event queue stack, 42...Overflow monitoring report Part, 101...Memory bus, 102...Protocol bus, 103 104 05 06 07 Overflow detection signal line, input sequence number signal line, output sequence number signal line, switching signal line, event queue overflow detection signal line be.

Claims (1)

【特許請求の範囲】  インタフェースコマンド語を格納するスタックである
イベントキュースタックと、このイベントキュースタッ
クにおけるイベントキューオーバフローの監視および報
告を行うオーバフロー監視報告部と、タイマ制御語を格
納するスタックであるタイマスタックと、このタイマス
タックにタイマ制御語を格納する際にそのタイマ制御語
に順序番号を付加する順序番号付加回路と、 この順序番号付加回路によりタイマ制御語に付加される
順序番号に基づいて前記タイマスタックの領域に空き領
域があるか否かを検出する空き領域検出回路と、前記オ
ーバフロー監視報告部によりイベントキューオーバフロ
ーが検出された場合において前記タイマスタックの領域
に空き領域があると前記空き領域検出回路により検出さ
れたときに前記タイマスタックの領域を前記イベントキ
ュースタックの領域として使用するための切替えを行う
スタック切替え部とを有することを特徴とするスタック
資源共用方式。
[Claims] An event queue stack that is a stack that stores interface command words, an overflow monitoring and reporting unit that monitors and reports event queue overflow in this event queue stack, and a timer that is a stack that stores timer control words. a stack, a sequence number adding circuit that adds a sequence number to the timer control word when storing the timer control word in the timer stack; a free space detection circuit that detects whether or not there is a free space in the timer stack region; and a free space detection circuit that detects whether or not there is a free space in the timer stack region; A stack resource sharing system comprising: a stack switching unit that switches to use the timer stack area as the event queue stack area when detected by a detection circuit.
JP2001243A 1990-01-08 1990-01-08 Stack resources shared system Pending JPH03204747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001243A JPH03204747A (en) 1990-01-08 1990-01-08 Stack resources shared system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001243A JPH03204747A (en) 1990-01-08 1990-01-08 Stack resources shared system

Publications (1)

Publication Number Publication Date
JPH03204747A true JPH03204747A (en) 1991-09-06

Family

ID=11496016

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001243A Pending JPH03204747A (en) 1990-01-08 1990-01-08 Stack resources shared system

Country Status (1)

Country Link
JP (1) JPH03204747A (en)

Similar Documents

Publication Publication Date Title
EP2701074B1 (en) Method, device, and system for performing scheduling in multi-processor core system
KR101915198B1 (en) Method and Apparatus for processing the message between processors
US5471618A (en) System for classifying input/output events for processes servicing the events
US4972368A (en) Intelligent serial I/O subsystem
KR100766732B1 (en) Device and method for performing high-speed low overhead context switch
US5619647A (en) System for multiplexing prioritized virtual channels onto physical channels where higher priority virtual will pre-empt a lower priority virtual or a lower priority will wait
WO1998008164A1 (en) Interprocess communication in a distributed computer environment
CN111897637B (en) Job scheduling method, device, host and storage medium
US6012121A (en) Apparatus for flexible control of interrupts in multiprocessor systems
US6256660B1 (en) Method and program product for allowing application programs to avoid unnecessary packet arrival interrupts
JP2000076087A (en) Multioperating system control method
JP2001282558A (en) Multi-operating computer system
CN111427674A (en) Micro-service management method, device and system
JPH03204747A (en) Stack resources shared system
CN117407054A (en) Interrupt processing method, electronic device, and storage medium
JPS61279963A (en) Interruption control system
CN1049752C (en) Programmable multiple trunk priority arbitration device
JP2006092212A (en) Data processing system and data processing method
JPH01183744A (en) Monitor device for processor stall
CN117873667A (en) Interrupt notification response interface, interrupt control method and related devices
JP2770797B2 (en) Page Descriptor Update Control Method for Multiprocessor System
CN104717191B (en) Message processing method and device
JPS5936462A (en) Communication controller
JPH0728751A (en) Transfer control system
JPH04326454A (en) Cross bus network