Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0758467B2 - Inter-task communication method - Google Patents
[go: Go Back, main page]

JPH0758467B2 - Inter-task communication method - Google Patents

Inter-task communication method

Info

Publication number
JPH0758467B2
JPH0758467B2 JP63146117A JP14611788A JPH0758467B2 JP H0758467 B2 JPH0758467 B2 JP H0758467B2 JP 63146117 A JP63146117 A JP 63146117A JP 14611788 A JP14611788 A JP 14611788A JP H0758467 B2 JPH0758467 B2 JP H0758467B2
Authority
JP
Japan
Prior art keywords
access point
file
information
application tasks
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.)
Expired - Lifetime
Application number
JP63146117A
Other languages
Japanese (ja)
Other versions
JPH01314335A (en
Inventor
昭彦 國原
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 JP63146117A priority Critical patent/JPH0758467B2/en
Publication of JPH01314335A publication Critical patent/JPH01314335A/en
Publication of JPH0758467B2 publication Critical patent/JPH0758467B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、情報処理システムのタスク間通信方式に関す
る。
TECHNICAL FIELD The present invention relates to an inter-task communication system of an information processing system.

(従来の技術) 従来、この種のタスク間通信方式ではアプリケーシヨン
間で共有されているフアイル上にセマフオを設け、情報
を送信すべきアプリケーシヨンタスクによりセマフオが
レデイであるのを確認すると、送信すべき情報を上記共
有フアイルに書込んだ後、当該共有フアイル上のセマフ
オをビジイにしている。受信側のアプリケーシヨンタス
クでは当該セマフオがビジイになつたのを確認すると、
上記共有フアイルより情報を読出した後、セマフオを解
除していた。
(Prior Art) Conventionally, in this type of inter-task communication method, a semaphore is provided on a file shared between applications, and if the application task that should send information confirms that the semaphore is ready, After the information to be written is written in the shared file, the semaphore on the shared file is made busy. When the application task on the receiving side confirms that the semaphore is busy,
After reading the information from the shared file, the semaphore was canceled.

(発明が解決しようとする課題) 上述した従来のタスク間通信方式では、情報量を送信す
る手段が設けられていないため任意の量の情報を授受す
ることができないという欠点がある。
(Problem to be Solved by the Invention) The above-described conventional inter-task communication method has a drawback that it is not possible to exchange an arbitrary amount of information because there is no means for transmitting the amount of information.

本発明の目的は、フアイル中に受信すべき情報があるか
否かと、その情報量とを確認するためにオペレーテイン
グシステムを介してフアイル上でアクセスポイントの位
置を決定することにより上記欠点を除去し、任意の量の
情報を授受できるように構成したタスク間通信方式を提
供することにある。
It is an object of the present invention to eliminate the above drawbacks by determining the position of the access point on the file via the operating system to ascertain whether there is information to receive in the file and how much of that information. However, it is to provide an inter-task communication system configured to be able to send and receive an arbitrary amount of information.

(課題を解決するための手段) 本発明によるタスク間通信方式は、タスク管理手段と、
共有手段と、処理手段とを具備して構成したものであ
る。
(Means for Solving the Problem) The inter-task communication method according to the present invention comprises task management means,
It is configured by including a sharing unit and a processing unit.

タスク管理手段は、一対のアプリケーションタスクのア
クセスしているファイルのなかでアクセスポイントを管
理し、一対のアプリケーションタスクの一つからの要求
に応じて前記アクセスポイントの値を一対のアプリケー
ションタスクの他の一つに渡すためのものである。
The task management means manages the access point in the files accessed by the pair of application tasks, and sets the value of the access point to that of other application tasks in response to a request from one of the pair of application tasks. It is for giving one.

共有手段は、一対のアプリケーションタスクに対して同
一ファイルおよび同一アクセスポイントを共有させるた
めのものである。
The sharing means is for allowing a pair of application tasks to share the same file and the same access point.

処理手段は、一対のアプリケーションタスクの一つが前
記アプリケーションタスクの他の一つに対して送信すべ
き情報を、当該アプリケーションタスクの一つとアプリ
ケーションタスクの他の一つとで共有しているファイル
の所定位置にアクセスポイントがセットされていること
を確認した後に書込み、ファイルのなかで前記書き込ん
だ情報量だけ前記アクセスポイントを移動させ、前記ア
プリケーションタスクの他の一つがアクセスポイントの
移動を確認すると、ファイルからアクセスポイントの移
動量だけ情報を読み出しアクセスポイントをファイルの
所定位置にセットする処理を行わせるためのものであ
る。
The processing means includes a predetermined position of a file in which information to be transmitted by one of the pair of application tasks to the other of the application tasks is shared by the one of the application tasks and the other of the application tasks. After confirming that the access point is set in the file, write it, move the access point by the amount of written information in the file, and when one of the application tasks confirms the movement of the access point, This is for reading information by the amount of movement of the access point and setting the access point at a predetermined position in the file.

(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, this invention is demonstrated with reference to drawings.

第1図は本発明によるタスク間通信方式の一実施例を示
す説明図である。第1図において1はオペレーテイング
システム、2,3はそれぞれアプリケーシヨンタスク、4,5
はそれぞれフアイル、6,7はアクセスポイントである。
フアイル4はアプリケーシヨンタスク2によつて書込ま
れ、アプリケーシヨンタスク3により読出される。一
方、フアイル5はアプリケーシヨンタスク3により書込
まれアプリケーシヨンタスク2によつて読出される。す
なわち、アプリケーシヨンタスク2,3の間ではフアイル
4、およびフアイル5が共有されている。
FIG. 1 is an explanatory diagram showing an embodiment of an intertask communication system according to the present invention. In FIG. 1, 1 is an operating system, 2 and 3 are application tasks, and 4,5 and 5, respectively.
Are files respectively, and 6 and 7 are access points.
The file 4 is written by the application task 2 and read by the application task 3. On the other hand, the file 5 is written by the application task 3 and read by the application task 2. That is, the file 4 and the file 5 are shared between the application tasks 2 and 3.

初期状態では、フアイル4におけるアクセスポイント
6、およびフアイル5におけるアクセスポイント7は、
各フアイル4,5の先頭にセツトされている。これらのア
クセスポイント6,7はアプリケーシヨンタスク2,3の間
で、オペレーテイングシステム1を介して共有されてい
て、アプリケーシヨンタスク2,3がアイドル状態では各
アクセスポイント6,7をオペレーテイングシステム1を
介して監視している。
In the initial state, the access point 6 in the file 4 and the access point 7 in the file 5 are
It is set at the beginning of each file 4,5. These access points 6 and 7 are shared between the application tasks 2 and 3 through the operating system 1, and when the application tasks 2 and 3 are idle, the operating points 6 and 7 are operated by the operating system. Monitoring via 1.

アプリケーシヨンタスク2からアプリケーシヨンタスク
3に情報を送る場合、オペレーテイングシステム1を介
してアクセスポイント6がフアイル4の先頭にセツトさ
れていることを確認した後、送るべき情報をフアイル4
に書込む。
When sending information from the application task 2 to the application task 3, after confirming that the access point 6 is set at the beginning of the file 4 via the operating system 1, the information to be sent is sent to the file 4.
Write to.

上記操作により、アクセスポイント6はフアイル4に書
込まれた情報量だけ移動する。アプリケーシヨンタスク
3はアクセスポイント6の移動を確認すると、フアイル
4からアクセスポイントの移動量だけを読出した後、ア
クセスポイント6をフアイル4の先頭にセットする。
By the above operation, the access point 6 moves by the amount of information written in the file 4. When confirming the movement of the access point 6, the application task 3 reads only the movement amount of the access point from the file 4, and then sets the access point 6 at the head of the file 4.

フアイル5およびアクセスポイント7を用いて同様の操
作を行なえば、アプリケーシヨンタスク3からアプリケ
ーシヨンタスク2へ情報が送られる。
If the same operation is performed using the file 5 and the access point 7, the information is sent from the application task 3 to the application task 2.

上記動作と本発明の構成要素との関係は次のように要約
される。
The relationship between the above operation and the components of the present invention is summarized as follows.

本発明においてはタスク管理手段と、共有手段と、処理
手段が具備されている。
In the present invention, a task management means, a sharing means, and a processing means are provided.

タスク管理手段は、一対のアプリケーシヨンタスクのア
クセスしているフアイルのなかで、アクセスポイントを
管理している。したがつて、アプリケーシヨンタスクか
ら要求が送出されれば、アクセスポイントの値を一つの
アプリケーシヨンタスクから他へと渡す。
The task management means manages the access point among the files accessed by the pair of application tasks. Therefore, when a request is sent from the application task, the value of the access point is passed from one application task to another.

共有手段は上記一対のアプリケーシヨンタスクに対して
同一フアイル、および同一アクセスポイントを共有させ
る。
The sharing means causes the pair of application tasks to share the same file and the same access point.

処理手段は、上記一対のアプリケーシヨンタスクの一つ
が他のアプリケーシヨンタスクに対して送信すべき情報
を、当該アプリケーシヨンタスクと他のアプリケーシヨ
ンタスクとで共有しているフアイルに書込み、ファイル
のなかで書き込んだ情報量だけアクセスポイントを移動
させ、アプリケーションタスクの他の一つがアクセスポ
イントの移動を確認すると、ファイルからアクセスポイ
ントの移動量だけ情報を読み出しアクセスポイントをフ
ァイルの所定位置にセットする処理を行わせる。
The processing means writes information to be transmitted by one of the pair of application tasks to another application task to a file shared by the application task and another application task, and writes the information in the file. When the access point is moved by the amount of information written in step 1 and another one of the application tasks confirms the movement of the access point, the information is read from the file by the amount of movement of the access point and the process of setting the access point at a predetermined position in the file is performed. Let it be done.

(発明の効果) 以上説明したように本発明は、フアイル中に受信すべき
情報があるか否かと、その情報量とを確認するために、
オペレーテイングシステムを介してフアイル上でアクセ
スポイントの位置を決定することにより、フアイル中の
アクセスポイントの位置によつてセマフオと送信された
情報量とを受信側のアプリケーシヨンタスクで同時に確
認できるため、大量の情報を頻繁に授受する必要のある
アプリケーシヨンタスク間に応用するならば処理時間を
短縮できるという効果がある。
(Effects of the Invention) As described above, the present invention confirms whether or not there is information to be received in a file and the amount of the information,
By determining the position of the access point on the file via the operating system, the semaphore and the amount of information sent by the position of the access point in the file can be checked simultaneously by the receiving application task, If it is applied between application tasks that need to transfer a large amount of information frequently, the processing time can be shortened.

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

第1図は、本発明によるタスク間通信方式の一実施例を
示すブロツク図である。 1……オペレーテイングシステム 2,3……アプリケーシヨンタスク 4,5……フアイル 6,7……アクセスポイント
FIG. 1 is a block diagram showing an embodiment of an intertask communication system according to the present invention. 1 …… Operating system 2,3 …… Application task 4,5 …… File 6,7 …… Access point

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】一対のアプリケーションタスクのアクセス
しているファイルのなかでアクセスポイントを管理し、
前記一対のアプリケーションタスクの一つからの要求に
応じて前記アクセスポイントの値を前記一対のアプリケ
ーションタスクの他の一つに渡すためのタスク管理手段
と、 前記一対のアプリケーションタスクに対して同一ファイ
ルおよび同一アクセスポイントを共有させるための共有
手段と、 前記一対のアプリケーションタスクの一つが前記アプリ
ケーションタスクの他の一つに対して送信すべき情報
を、当該アプリケーションタスクの一つとアプリケーシ
ョンタスクの他の一つとで共有しているファイルの所定
位置にアクセスポイントがセットされていることを確認
した後に書込み、ファイルのなかで前記書き込んだ情報
量だけ前記アクセスポイントを移動させ、前記アプリケ
ーションタスクの他の一つがアクセスポイントの移動を
確認すると、ファイルからアクセスポイントの移動量だ
け情報を読み出しアクセスポイントをファイルの所定位
置にセットする処理を行わせる処理手段とを具備して構
成したことを特徴とするタスク間通信方式。
1. An access point is managed in a file accessed by a pair of application tasks,
Task management means for passing the value of the access point to another one of the pair of application tasks in response to a request from one of the pair of application tasks; Sharing means for sharing the same access point; and information to be transmitted by one of the pair of application tasks to the other of the application tasks, as one of the application tasks and another of the application tasks. After confirming that the access point is set at a predetermined position of the file shared by, write it, move the access point by the written amount of information in the file, and access another one of the application tasks. Confirm the movement of points That when, inter-task communication system, characterized by being configured to include a processing means for performing the processing of setting the access point reads the information by the amount of movement of the access point at a predetermined position of the file from the file.
JP63146117A 1988-06-14 1988-06-14 Inter-task communication method Expired - Lifetime JPH0758467B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63146117A JPH0758467B2 (en) 1988-06-14 1988-06-14 Inter-task communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63146117A JPH0758467B2 (en) 1988-06-14 1988-06-14 Inter-task communication method

Publications (2)

Publication Number Publication Date
JPH01314335A JPH01314335A (en) 1989-12-19
JPH0758467B2 true JPH0758467B2 (en) 1995-06-21

Family

ID=15400542

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63146117A Expired - Lifetime JPH0758467B2 (en) 1988-06-14 1988-06-14 Inter-task communication method

Country Status (1)

Country Link
JP (1) JPH0758467B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0642203B2 (en) * 1990-08-20 1994-06-01 日本電気株式会社 Information processing equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62108346A (en) * 1985-11-06 1987-05-19 Ricoh Co Ltd Inter-process communication system

Also Published As

Publication number Publication date
JPH01314335A (en) 1989-12-19

Similar Documents

Publication Publication Date Title
JPH0758467B2 (en) Inter-task communication method
JPS6272040A (en) Information tracing system
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPH0340417B2 (en)
JP2912046B2 (en) File server control method
JP2780601B2 (en) Message batch processing system
JP2755103B2 (en) Storage device access method
JPS61190669A (en) Telemetering device
JPH09288608A (en) File sharing controller in distributed processing system
JP3544219B2 (en) File sharing system
JP2803270B2 (en) SCSI host adapter circuit
JPS63298550A (en) Non-stop trace system
JPS6029139B2 (en) Connection method between processing units
JP2511012B2 (en) Task termination method
JP2824890B2 (en) SCSI protocol controller
JPH053018B2 (en)
JPH0314155A (en) Instruction control system for local area network
JPH01112452A (en) System for controlling disk cash
JPH01126749A (en) Data control device for peripheral equipment
JPH02236613A (en) Disk sharing system
JPH04360248A (en) Remote file updating system
JPH0346052A (en) Inter-processor communication method
JPH01261763A (en) Dma transfer control device
JPH01206468A (en) Picture data processor
JPH036766A (en) Multi-address communication system in multi-processor