JPH05100873A - Interface system for software package - Google Patents

Interface system for software package

Info

Publication number
JPH05100873A
JPH05100873A JP28377791A JP28377791A JPH05100873A JP H05100873 A JPH05100873 A JP H05100873A JP 28377791 A JP28377791 A JP 28377791A JP 28377791 A JP28377791 A JP 28377791A JP H05100873 A JPH05100873 A JP H05100873A
Authority
JP
Japan
Prior art keywords
software package
task
operating system
processing
application
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
JP28377791A
Other languages
Japanese (ja)
Inventor
Fumio Ichimura
史生 市村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP28377791A priority Critical patent/JPH05100873A/en
Publication of JPH05100873A publication Critical patent/JPH05100873A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate the development of a software package with versatility and to improve processing capacity. CONSTITUTION:In a system where tasks included in the software package 1 are suitably started from application tasks 2, and 2n so as to execute a processing, mail boxes being one of resources managed in an operating system are provided in the stacks 4m and 4n on the application tasks 2m and 2n being request sources, and they are used for returning a termination status from the task of the started software package 1. Namely, the task of the software package 1 transmits the termination status to the mail boxes which the application tasks 2m and 2n provide in the self stacks 4m and 4n by using the system call of the operating system.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はリアルタイムシステム等
におけるソフトウェアパッケージのインターフェース方
式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a software package interface system in a real-time system or the like.

【0002】[0002]

【従来の技術】ソフトウェア(プログラム)の生産性を
向上させるため、汎用的な機能を有するソフトウェア群
をソフトウェアパッケージとして用意し、アプリケーシ
ョンタスクから必要に応じて処理要求を行い、所定の処
理を行わせるようにすることが多い。
2. Description of the Related Art In order to improve the productivity of software (program), a software group having general-purpose functions is prepared as a software package, an application task issues a processing request as required, and a predetermined processing is performed. Often.

【0003】かかる場合、アプリケーションタスクから
ソフトウェアパッケージに対して処理要求を行うため
と、処理終了後にソフトウェアパッケージのタスクから
要求元のアプリケーションタスクに対して終了ステータ
スを返却するためとに、インターフェースを行う必要が
生じる。
In such a case, it is necessary to perform an interface in order to make a processing request from the application task to the software package and to return an end status from the task of the software package to the requesting application task after the processing is completed. Occurs.

【0004】なお、アプリケーションタスクからソフト
ウェアパッケージに対して処理要求を行う場合のインタ
ーフェースについては、原則としてアプリケーションタ
スク側の処理であり、オペレーティングシステムの有す
る機能を用いるのが一般的であるため、ソフトウェアパ
ッケージの設計や処理性能の点においてあまり問題とな
らない。従って、処理終了後にソフトウェアパッケージ
のタスクから要求元のアプリケーションタスクに対して
終了ステータスを返却するためのインターフェースが問
題となる。
As for the interface when an application task issues a processing request to the software package, the processing is basically performed by the application task, and the function of the operating system is generally used. There is not much problem in terms of design and processing performance. Therefore, there is a problem with the interface for returning the end status from the task of the software package to the requesting application task after the processing is completed.

【0005】従来、このような処理終了後にソフトウェ
アパッケージのタスクから要求元のアプリケーションタ
スクに対して終了ステータスを返却するためのインター
フェースとしては、主として次の2通りの方式が採用さ
れていた。
Conventionally, the following two methods have been mainly used as an interface for returning the end status from the task of the software package to the requesting application task after the completion of such processing.

【0006】オペレーティングシステムの提供する各
種の資源(キュー,セマフォ,イベントフラグ,メール
ボックス等)を、システムの初期化処理においてソフト
ウェアパッケージ側で生成し、これを用いて終了ステー
タスの返却を行う方式。
A method in which various resources (queue, semaphore, event flag, mailbox, etc.) provided by the operating system are generated on the software package side in the system initialization process, and the termination status is returned using this.

【0007】オペレーティングシステムの機能とは別
に、メモリ上の特定の領域を用いて終了ステータスの返
却を行う方式。
A method of returning the end status by using a specific area on the memory in addition to the function of the operating system.

【0008】[0008]

【発明が解決しようとする課題】従来は上述したように
してタスク間のインターフェースが行われていたが、次
のような欠点が指摘されていた。
Conventionally, the interface between the tasks has been performed as described above, but the following drawbacks have been pointed out.

【0009】(1)いずれの方式も専用のソフトウェア
として開発する場合であれば問題はないが、汎用的なも
のとする場合には開発が困難である。
(1) There is no problem if any of the methods is developed as dedicated software, but it is difficult to develop it if it is general purpose.

【0010】すなわち、上記の方式では、予めシステ
ム初期化処理において各種の資源を生成しておかなけれ
ばならないため、不定期に処理要求がされる場合には、
タスク構成が事前に把握できる場合を除いて対処が困難
である。
That is, in the above method, various resources must be generated in advance in the system initialization process, and therefore when a process request is made irregularly,
It is difficult to handle unless the task composition can be grasped in advance.

【0011】また、上記の方式では、不特定のアプリ
ケーションタスクとの間でメモリを介して通信を行うた
め、各種のアプリケーションタスクのデータ構成と無関
係な形で機能を実現しなければならず、設計が難しい。
なお、パッケージソフトウェアの初期化時にアプリケー
ションタスクの情報を受け取り、その情報に基づいてデ
ータ構成を合わせるという方法も考えられるが、異なる
アプリケーションタスクに汎用的に対応するためのデー
タ構成を用意しておかなければならず、パッケージソフ
トウェアの初期化処理が複雑になると共に効率が良くな
いため、採用できない。
Further, in the above method, since communication is performed with an unspecified application task via the memory, the function must be realized in a form unrelated to the data configuration of various application tasks, and Is difficult.
Although it is possible to receive application task information at the time of initialization of the package software and adjust the data configuration based on that information, prepare a data configuration for universally responding to different application tasks. It cannot be adopted because the initialization process of the package software becomes complicated and the efficiency is low.

【0012】(2)上記の方式では、終了ステータス
が返却されたタイミングを知るために、アプリケーショ
ンタスク側でメモリ上の特定の領域に終了ステータスが
書き込まれたか否かを調べなければならず、ポーリング
等のある程度CPUの負荷となる処理を組み込む必要が
あるため、処理性能が低下する。
(2) In the above method, in order to know the timing at which the end status is returned, it is necessary for the application task side to check whether or not the end status is written in a specific area on the memory, and polling is performed. Since it is necessary to incorporate a process that becomes a CPU load to some extent, the processing performance decreases.

【0013】本発明は上記の点に鑑み提案されたもので
あり、その目的とするところは、汎用性のあるソフトウ
ェアパッケージの開発を容易にすると共に、処理性能の
向上を図ることのできるソフトウェアパッケージのイン
ターフェース方式を提供することにある。
The present invention has been proposed in view of the above points, and it is an object of the present invention to facilitate the development of a versatile software package and to improve the processing performance. To provide the interface method of.

【0014】[0014]

【課題を解決するための手段】本発明は上記の目的を達
成するため、ソフトウェアパッケージに含まれるタスク
をアプリケーションタスクから適宜に起動して処理を行
わせるシステムにおいて、オペレーティングシステムで
管理される資源の一つであるメールボックスを要求元の
アプリケーションタスクのスタック内に設け、起動した
タスクからの終了ステータスの返却に利用するようにし
ている。
In order to achieve the above-mentioned object, the present invention provides a system in which a task included in a software package is appropriately activated from an application task to perform processing, and a resource managed by an operating system is provided. One mailbox is provided in the stack of the requesting application task and is used to return the exit status from the started task.

【0015】[0015]

【作用】本発明のソフトウェアパッケージのインターフ
ェース方式にあっては、オペレーティングシステムで管
理される資源の一つであるメールボックスを要求元のア
プリケーションタスクのスタック内に設け、起動したソ
フトウェアパッケージのタスクからの終了ステータスの
返却に利用する。すなわち、ソフトウェアパッケージの
タスクは、アプリケーションタスクが自己のスタック内
に設けたメールボックスに対して、システムコールを用
いて終了ステータスを送信する。
In the software package interface method of the present invention, a mailbox, which is one of the resources managed by the operating system, is provided in the stack of the request source application task, and the task of the activated software package is installed. It is used to return the exit status. That is, the task of the software package sends the end status using a system call to the mailbox provided in the stack of the application task.

【0016】[0016]

【実施例】以下、本発明の実施例につき、図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0017】図1は本発明のソフトウェアパッケージの
インターフェース方式を適用したシステムの一実施例を
示す構成図である。
FIG. 1 is a block diagram showing an embodiment of a system to which the software package interface system of the present invention is applied.

【0018】図1において、1は汎用的機能を有するソ
フトウェアを複数集合させたソフトウェアパッケージで
あり、処理要求に応じて複数のタスクとして動作が可能
となっている。
In FIG. 1, reference numeral 1 denotes a software package in which a plurality of software having general-purpose functions is collected, and can operate as a plurality of tasks in response to processing requests.

【0019】一方、2m,2nはソフトウェアパッケー
ジ1の機能を適宜に利用するアプリケーションタスクで
ある。
On the other hand, 2m and 2n are application tasks that appropriately use the functions of the software package 1.

【0020】アプリケーションタスク2m,2n側で
は、自己のスタック4m,4n内にソフトウェアパッケ
ージ1に送信すべき情報を格納するメッセージブロック
5m,5nを作成し、その一部をオペレーティングシス
テムが提供する機能の1つであるメールボックスとして
割り当てておく。
On the side of the application tasks 2m and 2n, message blocks 5m and 5n for storing information to be transmitted to the software package 1 are created in the stacks 4m and 4n of their own, and a part of them is provided by the operating system. It is assigned as one mailbox.

【0021】また、ソフトウェアパッケージ1に処理要
求を行うために、オペレーティングシステムの提供する
機能の1つであるメッセージ通知用キュー3を生成して
おく。
Further, in order to make a processing request to the software package 1, a message notification queue 3 which is one of the functions provided by the operating system is generated.

【0022】動作にあたって、アプリケーションタスク
2m,2nからソフトウェアパッケージ1に処理要求を
行う場合には、それぞれのスタック4m,4nのメッセ
ージブロック5m,5nから、メールボックスのアドレ
スを含む所定のメッセージを取り出し、オペレーティン
グシステムのシステムコールを用いてメッセージ通知用
キュー3に送信を依頼する。
In operation, when the application task 2m, 2n requests the software package 1 for processing, a predetermined message including the address of the mailbox is fetched from the message blocks 5m, 5n of the respective stacks 4m, 4n. A message is sent to the message notification queue 3 using a system call of the operating system.

【0023】このメッセージをメッセージ通知用キュー
3を介して受け取ることにより、ソフトウェアパッケー
ジ1は処理要求を認識し、所定の機能に対応するタスク
を動作させる。
By receiving this message via the message notification queue 3, the software package 1 recognizes the processing request and operates the task corresponding to the predetermined function.

【0024】処理が終了した場合、ソフトウェアパッケ
ージ1のタスクは、予め起動時に受けたアドレスのメー
ルボックスに対して終了ステータスを送信するよう、オ
ペレーティングシステムのシステムコールを用いて依頼
する。
When the processing is completed, the task of the software package 1 requests using the system call of the operating system to transmit the completion status to the mailbox of the address received at the time of activation in advance.

【0025】スタック4m,4nのメールボックスに終
了ステータスが届くと、オペレーティングシステムの機
能により、メールの到着がアプリケーションタスク2
m,2nに通知され、終了ステータス返却のタイミング
を知ることができる。
When the end status arrives at the mailboxes of the stacks 4m and 4n, the mail arrives by the application task 2 by the function of the operating system.
The timing of returning the end status can be known by being notified to m and 2n.

【0026】[0026]

【発明の効果】以上説明したように、本発明のソフトウ
ェアパッケージのインターフェース方式にあっては、次
のような効果がある。
As described above, the software package interface method of the present invention has the following effects.

【0027】(a)アプリケーションタスク側でメール
ボックスを設けるため、ソフトウェアパッケージ側は特
に資源の生成を行わなくて済み、不定期なアプリケーシ
ョンタスクからの処理要求にも容易かつ効率的に対処す
ることができ、汎用的なソフトウェアパッケージの開発
が容易になる。
(A) Since a mailbox is provided on the application task side, the software package does not need to generate resources in particular, and it is possible to easily and efficiently deal with processing requests from irregular application tasks. This makes it easy to develop a general-purpose software package.

【0028】(b)オペレーティングシステムの提供す
るメールボックスを利用してソフトウェアパッケージの
タスクから要求元のアプリケーションタスクに対して終
了ステータスを返却するため、データ構成の整合を考慮
することがなくなり、プログラムの簡易化,コンパクト
化が可能であり、汎用的なソフトウェアパッケージの開
発が容易になる。また、ソフトウェアパッケージの初期
化時の処理も不要となるため、アプリケーションタスク
側のプログラムも簡易化できる。
(B) Since the end status is returned from the task of the software package to the application task of the request source by using the mailbox provided by the operating system, the consistency of the data structure is not considered and the program It is possible to simplify and compact, and it becomes easy to develop a general-purpose software package. Further, since the processing at the time of initializing the software package is not necessary, the program on the application task side can be simplified.

【0029】(c)オペレーティングシステムの提供す
るメールボックスを利用するため、終了ステータスの返
却タイミングを知るために、CPUの負荷をほとんど増
大させないで済み、性能低下を防止できる。
(C) Since the mailbox provided by the operating system is used, in order to know the timing of returning the end status, the load on the CPU need not be increased and the performance can be prevented from degrading.

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

【図1】本発明のソフトウェアパッケージのインターフ
ェース方式を適用したシステムの一実施例を示す構成図
である。
FIG. 1 is a configuration diagram showing an embodiment of a system to which a software package interface method of the present invention is applied.

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

1……………ソフトウェアパッケージ 2m,2n…アプリケーションタスク 3……………メッセージ通知用キュー 4m,4n…スタック 5m,5n…メッセージブロック 1 ……………… Software package 2m, 2n… Application task 3 …………… Message notification queue 4m, 4n… Stack 5m, 5n… Message block

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ソフトウェアパッケージに含まれるタス
クをアプリケーションタスクから適宜に起動して処理を
行わせるシステムにおいて、 オペレーティングシステムで管理される資源の一つであ
るメールボックスを要求元のアプリケーションタスクの
スタック内に設け、起動したタスクからの終了ステータ
スの返却に利用することを特徴としたソフトウェアパッ
ケージのインターフェース方式。
1. In a system in which a task included in a software package is appropriately activated from an application task to perform processing, a mailbox, which is one of the resources managed by the operating system, is included in a stack of requesting application tasks. An interface method for software packages characterized by being used to return the end status from the started task.
JP28377791A 1991-10-04 1991-10-04 Interface system for software package Pending JPH05100873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28377791A JPH05100873A (en) 1991-10-04 1991-10-04 Interface system for software package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28377791A JPH05100873A (en) 1991-10-04 1991-10-04 Interface system for software package

Publications (1)

Publication Number Publication Date
JPH05100873A true JPH05100873A (en) 1993-04-23

Family

ID=17669993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28377791A Pending JPH05100873A (en) 1991-10-04 1991-10-04 Interface system for software package

Country Status (1)

Country Link
JP (1) JPH05100873A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010536101A (en) * 2007-08-08 2010-11-25 レッドコム・ラボラトリーズ・インコーポレーテッド Coroutine interface for user customization of SIP and SDP protocols

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010536101A (en) * 2007-08-08 2010-11-25 レッドコム・ラボラトリーズ・インコーポレーテッド Coroutine interface for user customization of SIP and SDP protocols

Similar Documents

Publication Publication Date Title
US5875329A (en) Intelligent batching of distributed messages
CN100483352C (en) IDE calling device and calling method therefor
US20080256280A1 (en) Splitting One Hardware Interrupt To Multiple Handlers
JP2005505831A5 (en)
KR890004518A (en) Multiprocessor Interrupt Turning Mechanism
CA2279382A1 (en) Web request broker controlling multiple processes
JPH0283627A (en) Interpreter
JP3308026B2 (en) Dual process display server system
JP3490473B2 (en) Communication system between processors
CN113064742A (en) Message processing method, device, equipment and storage medium
CN113703997A (en) Bidirectional asynchronous communication middleware system integrating multiple message agents and implementation method
JPH05100873A (en) Interface system for software package
CN116166582A (en) Data reading and writing method, system, equipment and storage medium
JPH08212180A (en) Inter-process communication processor
JP3713977B2 (en) Real-time distributed system
US7757235B2 (en) Trigger support for a bi-directional broker
US11016807B2 (en) Intermediary system for data streams
US6459706B1 (en) Message-passing communication system generating task for monitoring a specific communication path
CN111638979A (en) Call request processing method and device, electronic equipment and readable storage medium
van Dorn et al. Using active messages to support shared objects
JP2000267960A (en) Method for communicating packet between plural processes and packet communication equipment
KR100397503B1 (en) Sequential transaction indexing method between client and agent by using queue
CN117424883A (en) Control device of energy storage system and energy storage system
JP2002118620A (en) Apparatus and method for data communication as well as computer-readable recording medium with recorded data communication program
CN117093362A (en) Data management method and device, electronic equipment and storage medium