JPH076042A - Data reception controller - Google Patents
Data reception controllerInfo
- Publication number
- JPH076042A JPH076042A JP5170882A JP17088293A JPH076042A JP H076042 A JPH076042 A JP H076042A JP 5170882 A JP5170882 A JP 5170882A JP 17088293 A JP17088293 A JP 17088293A JP H076042 A JPH076042 A JP H076042A
- Authority
- JP
- Japan
- Prior art keywords
- data
- event
- storage queue
- processing
- data storage
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 claims abstract description 41
- 238000013500 data storage Methods 0.000 claims abstract description 21
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000013022 venting Methods 0.000 claims 1
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
Landscapes
- Digital Computer Display Output (AREA)
- Computer And Data Communications (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、Xウィンドウシステム
上で動作するアプリケーションプログラムのデータ受信
制御装置、特にプロセス間で行うデータ送受信に関する
ものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data reception control device for an application program operating on an X window system, and more particularly to data transmission / reception between processes.
【0002】[0002]
【従来の技術】対話型のソフトウェアとしてはワークス
テーションのグラフィック機能を最大限に引き出せるよ
うなソフトウェアが要求されている。また、ワークステ
ーションで動作するアプリケーションプログラムをワー
クステーションごとにプログラムし直さなければならな
いという、厄介な手間を省くことが必要である。このよ
うな要求からXウィンドウシステムが開発されて使用さ
れている。本発明はこのXウィンドウシステム上で動作
するアプリケーションプログラムに関するものである
が、Xウィンドウシステム自体は従来良く知られている
ので、その説明を省略する。2. Description of the Related Art Interactive software is required to maximize the graphics function of a workstation. In addition, it is necessary to save the troublesome work of having to reprogram the application program running on each workstation for each workstation. The X window system has been developed and used in response to such requirements. The present invention relates to an application program that operates on this X window system, but since the X window system itself is well known in the related art, its explanation is omitted.
【0003】本発明ではXサーバ(Xネットワークサー
バプログラム)を使用するので、それについて簡単に説
明する。Xサーバ(server)は、サービスの依頼
主であるアプリケーションプログラムからの接続リクェ
ストを受け付け、アプリケーションプログラムに対して
1つずつディスプレイ接続を確立し、このディスプレイ
接続を通じてアプリケーションプログラムからのリクェ
ストを受け取ったり、応答を返したりする。ワークステ
ーション側も同様に、ディスプレイ接続を使って、アプ
リケーションに対しイベント(event)を送り出
す。The present invention uses an X server (X network server program), which will be briefly described. The X server (server) accepts a connection request from an application program that is a service requester, establishes a display connection for each application program, receives a request from the application program through this display connection, and sends a response. To return. Similarly, the workstation side sends an event to the application using the display connection.
【0004】オフィス内においては、コンピュータを利
用したマルチメディア文書の作成が盛んになってきてい
る。複数のアプリケーションを同時に処理して一つの文
書を作成する場合もある。UNIXの環境ではXウィン
ドウシステム上で動作するアプリケーションの利用が増
えてきている。このようなアプリケーションは複数のプ
ロセスから構成されている場合が多くプロセス間でのデ
ータのやりとりが頻繁に行われている。In offices, the creation of multimedia documents using computers has become popular. In some cases, multiple applications may be processed simultaneously to create a single document. In the UNIX environment, the use of applications running on the X window system is increasing. Such applications are often composed of multiple processes, and data is frequently exchanged between the processes.
【0005】通常、アプリケーションプログラム内の特
定のプロセス間でデータを送受信する場合には、送信側
プロセスと受信側プロセスとの間でデータを共有するた
めの共有格納領域を用意し、そこでデータの受け渡しを
行うのであるが、従来の装置ではデータを受信する側の
プロセスで共有格納領域にデータが書き込まれているか
どうかを常に監視しており、あるいは送信側プロセスで
共有格納領域にデータを書き込んだとき、そのことを受
信側プロセスに通知していた。Usually, when data is transmitted and received between specific processes in an application program, a shared storage area for sharing data between a transmission side process and a reception side process is prepared, and the data is transferred there. However, in the conventional device, the process of the data receiving side always monitors whether the data is written in the shared storage area, or when the process of the sending side writes the data in the shared storage area. , Was informing the receiving process of that.
【0006】[0006]
【発明が解決しようとする課題】上述した従来の方式で
は、受信側プロセスにおいて又は送信側プロセス及び受
信側プロセスにおいて、データ送受信に付随する余分な
作業を実行しなければならないという問題があった。The above-mentioned conventional method has a problem in that the receiving side process or the transmitting side process and the receiving side process must execute extra work associated with data transmission and reception.
【0007】本発明の目的は従来の方式における上述の
問題点を解決し、送信側プロセスも受信側プロセスもデ
ータ送受信にともなう余分の作業を実行する必要がない
データ受信制御装置を提供することを目的としている。An object of the present invention is to solve the above-mentioned problems in the conventional system, and to provide a data reception control device in which neither the transmitting side process nor the receiving side process needs to perform extra work associated with data transmission / reception. Has an aim.
【0008】[0008]
【課題を解決するための手段】本発明によるデータ受信
制御装置では、共通記憶領域にデータが書き込まれるこ
とを入力イベントとして認識するように、Xサーバに指
示しておき、この入力イベントが発生したとき、Xサー
バはこれを受信側プロセスに通知し、この通知を受けた
受信側プロセスは共通記憶領域からデータを読み出して
処理することとした。In the data reception control device according to the present invention, the X server is instructed to recognize that data is written in the common storage area as an input event, and this input event occurs. At this time, the X server notifies the receiving side process, and the receiving side process receiving this notification reads the data from the common storage area and processes it.
【0009】[0009]
【実施例】以下、本発明の実施例を図面について説明す
る。図1は本発明の一実施例を示す全体構成図である。
図1において、1は受信側プロセス、2は送信側プロセ
ス、21はXサーバ、22はデータ格納キューであり、
Xウィンドウシステム上で動作するアプリケーションプ
ログラムの内のある特定のプロセスを受信側プロセス1
と送信側プロセス2とする。受信側プロセス1は、デー
タ格納キュー(共有記憶領域)22にデータが書き込ま
れたことを、Xサーバが入力イベントとして認識するよ
うに登録しておくイベント登録手段11と、この入力イ
ベントが発生したことをXサーバから通知され対応する
処理手段の呼出を行うイベント受付制御手段12と、こ
のイベント受付制御手段12の指示によりイベント発生
時のデータ受信処理を行うデータ受信手段13と、この
データ受信手段13の指示によりデータ格納キュー22
からデータを読み込む読み込み手段14と、この読み込
み手段14が読み込んだデータを解析して処理を行うデ
ータ処理手段15から構成される。Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is an overall configuration diagram showing an embodiment of the present invention.
In FIG. 1, 1 is a receiving process, 2 is a sending process, 21 is an X server, 22 is a data storage queue,
Receiving process 1 which is a specific process in an application program running on the X window system
And process 2 on the transmitting side. The receiving side process 1 registers the event that the X server recognizes that the data has been written in the data storage queue (shared storage area) 22 as an input event, and this input event has occurred. Event reception control means 12 which is notified from the X server to call the corresponding processing means, data reception means 13 which performs data reception processing when an event occurs in accordance with an instruction from the event reception control means 12, and this data reception means. Data storage queue 22 according to the instruction of 13
It is composed of a reading unit 14 for reading data from the data reading unit 14 and a data processing unit 15 for analyzing the data read by the reading unit 14 for processing.
【0010】図2は本発明における処理の流れの一例を
示すフローチャート図で、図において、31〜37はそ
れぞれステップを示す。ステップ31は初期化のステッ
プで、イベント登録手段11がXサーバ21に対して、
データ格納キュー22にデータが書き込まれたことを、
入力イベントとして認識するように指示しておく。入力
イベントが発生しない場合は通常の処理を実行しており
(ステップ32)、入力イベントが発生した場合(ステ
ップ33)、その入力イベントがステップ31で登録し
たイベントであるか否かを判定し(ステップ34)、他
のイベントであればステップ37へ移って当該イベント
に対する処理を実行する。FIG. 2 is a flow chart showing an example of the flow of processing in the present invention. In the figure, 31 to 37 respectively indicate steps. Step 31 is an initialization step, in which the event registration means 11 sends the X server 21
When data is written in the data storage queue 22,
Instruct to recognize it as an input event. If the input event does not occur, normal processing is executed (step 32). If the input event occurs (step 33), it is determined whether or not the input event is the event registered in step 31 ( If the event is another event (step 34), the process proceeds to step 37 and the process for the event is executed.
【0011】また、データ格納キュー22へデータが書
き込まれたというイベントであれば、ステップ35へ進
んでデータ格納キュー22からデータを読み込み、読み
込んだデータに対しデータ処理を実行する(ステップ3
6)。If the event is that data has been written to the data storage queue 22, the process proceeds to step 35, the data is read from the data storage queue 22, and data processing is executed on the read data (step 3).
6).
【0012】データ受信側プロセス1がステップ32で
通常の処理を行っている間にも、キー入力やマウス入力
などのイベントが頻繁に発生しており(ステップ3
3)、その都度Xサーバはイベント受付制御手段12に
通知を行い、受信側プロセス1は対応する処理を行って
いる(ステップ32、33、34、37)。このような
状態のとき、送信側プロセス2で受信側プロセスへ渡し
たいデータが発生した場合、そのデータをデータ格納キ
ュー22へ書き込む。Xサーバ21はこの書き込みを認
識し、ステップ31で登録した入力イベントが発生した
ことをイベント受付制御手段12に通知する。While the data receiving side process 1 is performing normal processing in step 32, events such as key input and mouse input frequently occur (step 3).
3) each time, the X server notifies the event reception control means 12 and the receiving process 1 performs the corresponding processing (steps 32, 33, 34, 37). In such a state, when the transmitting side process 2 generates data to be passed to the receiving side process, the data is written in the data storage queue 22. The X server 21 recognizes this writing and notifies the event reception control means 12 that the input event registered in step 31 has occurred.
【0013】ステップ34での判定はYESとなり、ス
テップ35へ進み、対応する処理を行うデータ受信手段
13に指示が与えられ、読み込み手段14がデータ格納
キュー22に書き込まれたデータを読み込み(ステップ
35)、データ処理手段15がデータを解析し処理する
(ステップ36)。データ処理手段15が処理を終わる
と、受信側プロセス1はイベント発生前の状態に戻り通
常の処理を実行する(ステップ32)。The determination in step 34 is YES, the process proceeds to step 35, an instruction is given to the data receiving means 13 for performing the corresponding processing, and the reading means 14 reads the data written in the data storage queue 22 (step 35). ), The data processing means 15 analyzes and processes the data (step 36). When the data processing means 15 finishes the processing, the receiving side process 1 returns to the state before the event occurrence and executes the normal processing (step 32).
【0014】[0014]
【発明の効果】以上説明したように本発明では、Xウィ
ンドウシステム上で動作するアプリケーションプログラ
ム内のある特定のプロセス間でデータを送受信する場合
に、データ格納キューへのデータ書き込みを、キー入力
やマウス入力と同様の入力イベントとして認識できるよ
うにすることにより、受信側プロセスがデータ格納キュ
ーに何時データが書き込まれるかを常に監視するような
動作を行う必要がなく、簡単迅速にデータ受信処理を実
行できるという効果がある。As described above, according to the present invention, when data is transmitted / received between certain processes in an application program operating on the X window system, data writing to the data storage queue is performed by key input or By making it possible to recognize as an input event similar to mouse input, it is not necessary for the receiving process to constantly monitor when data is written to the data storage queue, and data reception processing can be performed easily and quickly. The effect is that it can be executed.
【図1】本発明の一実施例を示す全体構成図である。FIG. 1 is an overall configuration diagram showing an embodiment of the present invention.
【図2】本発明の一実施例における処理の流れを示すフ
ローチャート図である。FIG. 2 is a flowchart showing a flow of processing in one embodiment of the present invention.
1 受信側プロセス 2 送信側プロセス 11 イベント登録手段 12 イベント受付制御手段 13 データ受信手段 14 読み込み手段 15 データ処理手段 21 Xサーバ 22 データ格納キュー 1 Receiving Process 2 Sending Process 11 Event Registration Means 12 Event Reception Control Means 13 Data Receiving Means 14 Reading Means 15 Data Processing Means 21 X Servers 22 Data Storage Queues
Claims (2)
リケーションプログラム内のプロセス間でデータ送受信
を行うデータ受信制御装置において、 送信側プロセスと受信側プロセスがデータ送受信のため
に使用するデータ格納キュー、 受信側プロセスに設けられ、前記データ格納キューにデ
ータが書き込まれたことを入力イベントとして認識する
ようにXサーバへ指示を行うイベント登録手段、 受信側プロセスに設けられ、前記Xサーバからのイベン
ト発生の通知を受け取り、発生したイベントが前記イベ
ント登録手段により登録された入力イベントであるか否
かを判定し、前記イベント登録手段により登録された入
力イベントである場合には対応する処理手段の呼び出し
を行うイベント受付制御手段、 受信側プロセスに設けられ、前記イベント受付制御手段
により呼び出され、前記データ格納キューのデータを読
み出して必要な処理を行う処理手段、 を備えたことを特徴とするデータ受信制御装置。1. In a data reception control device for transmitting and receiving data between processes within an application program operating on an X window system, a data storage queue and a reception side used by a transmission side process and a reception side process for data transmission and reception. An event registration means provided in the process, for instructing the X server to recognize that the data has been written in the data storage queue as an input event, and a notification of event occurrence from the X server provided in the receiving process. Event that receives the event, determines whether or not the generated event is the input event registered by the event registration means, and calls the corresponding processing means if the event is the input event registered by the event registration means. Admission control means, provided in the receiving side process, Called by venting reception control means, data reception control apparatus characterized by comprising a processing means for performing necessary processing reads data of the data storage queue.
必要な処理を行う処理手段は、前記イベント受付制御手
段の指示により当該イベント発生時のデータ受信処理を
行うデータ受信手段と、このデータ受信手段の指示によ
り前記データ格納キューからのデータを読み込む読み込
み手段と、この読み込み手段が読み込んだデータを解析
して処理を行うデータ処理手段とを有することを特徴と
する請求項第1項記載のデータ受信制御装置。2. A processing means for reading out data from a data storage queue and performing necessary processing, the data receiving means for performing data receiving processing at the time of occurrence of the event according to an instruction from the event reception control means, and the data receiving means. The data reception control according to claim 1, further comprising: a reading unit that reads data from the data storage queue according to an instruction, and a data processing unit that analyzes and processes the data read by the reading unit. apparatus.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5170882A JP2536723B2 (en) | 1993-06-18 | 1993-06-18 | Data reception control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5170882A JP2536723B2 (en) | 1993-06-18 | 1993-06-18 | Data reception control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH076042A true JPH076042A (en) | 1995-01-10 |
| JP2536723B2 JP2536723B2 (en) | 1996-09-18 |
Family
ID=15913067
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5170882A Expired - Fee Related JP2536723B2 (en) | 1993-06-18 | 1993-06-18 | Data reception control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2536723B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2019517043A (en) * | 2016-04-19 | 2019-06-20 | ドロップボックス, インコーポレイテッド | Automatic update of hybrid application |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS63228335A (en) * | 1987-03-18 | 1988-09-22 | Fujitsu Ltd | Event information and reception processing system in computer system |
-
1993
- 1993-06-18 JP JP5170882A patent/JP2536723B2/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS63228335A (en) * | 1987-03-18 | 1988-09-22 | Fujitsu Ltd | Event information and reception processing system in computer system |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2019517043A (en) * | 2016-04-19 | 2019-06-20 | ドロップボックス, インコーポレイテッド | Automatic update of hybrid application |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2536723B2 (en) | 1996-09-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4972368A (en) | Intelligent serial I/O subsystem | |
| US6269409B1 (en) | Method and apparatus for concurrent execution of operating systems | |
| US6782411B2 (en) | Virtualizing and controlling input and output of computer programs | |
| EP0501901A2 (en) | Display station controller | |
| US8132191B2 (en) | Method and apparatus for adapting and hosting legacy user interface controls | |
| US6594787B1 (en) | Input/output device managed timer process | |
| US5276896A (en) | Apparatus for implementing data communications between terminal devices and user programs | |
| US7925922B2 (en) | Failover method and system for a computer system having clustering configuration | |
| US6256660B1 (en) | Method and program product for allowing application programs to avoid unnecessary packet arrival interrupts | |
| US6789142B2 (en) | Method, system, and program for handling interrupt requests | |
| KR20040104467A (en) | Most eligible server in a common work queue environment | |
| EP0871307A2 (en) | Apparatus for flexible control of interrupts in multiprocessor systems | |
| US5301277A (en) | Method and apparatus for communicating peripheral data to/from minor operating systems running as subprocesses on a main operating system | |
| US5051926A (en) | System wide local copy management of screen copy printing | |
| JP3185040B2 (en) | Computer monitoring method and system using electronic mail | |
| JP2536723B2 (en) | Data reception control device | |
| US5925096A (en) | Method and apparatus for localized preemption in an otherwise synchronous, non-preemptive computing environment | |
| JPS619742A (en) | Phenomenon control system | |
| JPH09288608A (en) | File sharing controller in distributed processing system | |
| JP2003058515A (en) | Interprocessor command processing device, loosely coupled multiprocessor device, and command processing method | |
| AU707898B2 (en) | Load balancing and image rendering system | |
| JPH04255052A (en) | Multi-window control system in half duplex communication system | |
| KR19990059515A (en) | Console server method and device on OS | |
| JPS62138949A (en) | Terminal equipment | |
| JPH0436854A (en) | Inter-processor communication system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |