JPH076081A - Numeric data processor - Google Patents
Numeric data processorInfo
- Publication number
- JPH076081A JPH076081A JP17263293A JP17263293A JPH076081A JP H076081 A JPH076081 A JP H076081A JP 17263293 A JP17263293 A JP 17263293A JP 17263293 A JP17263293 A JP 17263293A JP H076081 A JPH076081 A JP H076081A
- Authority
- JP
- Japan
- Prior art keywords
- data
- data processing
- update
- storage means
- numerical
- 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
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】この発明は、非同期に動作する複
数のプロセスから更新される数値データ処理装置に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a numerical data processing device updated from a plurality of asynchronously operating processes.
【0002】[0002]
【従来の技術】図2に示すように、同一の数値データ1
00に対して、データ処理を行うデータ処理プロセス1
01、102、103が複数存在する場合には、数値デ
ータ100の整合性を保つために、複数のデータ処理プ
ロセス101、102、103によって、同一の数値デ
ータ100が同時に更新されないようにする必要があ
る。2. Description of the Related Art As shown in FIG.
Data processing process 1 that performs data processing for 00
When there are a plurality of 01, 102, 103, in order to maintain the consistency of the numerical data 100, it is necessary to prevent the same numerical data 100 from being updated simultaneously by a plurality of data processing processes 101, 102, 103. is there.
【0003】そこで、従来においては、任意の1つのデ
ータ処理プロセス101によって数値データ100にデ
ータ処理が行われている間に、他のデータ処理プロセス
102、103によって数値データ100にデータ処理
が行われるのを禁止するために、各プロセス101、1
02、103によるデータ処理が排他的に行われていた
(特開平4−340139号公報参照)。Therefore, conventionally, while the numerical data 100 is processed by any one data processing process 101, the data processing is performed on the numerical data 100 by the other data processing processes 102 and 103. To prevent each process 101, 1
The data processing by 02 and 103 was exclusively performed (see Japanese Patent Laid-Open No. 4-340139).
【0004】[0004]
【発明が解決しようとする課題】従来のデータ処理方法
では、所定の数値データに対して1つのデータ処理プロ
セスがデータ処理を行っている間は、他のデータ処理プ
ロセスは、当該数値データに対して現在実行されている
データ処理が終了するまでは、当該数値データに対する
データ処理を行うことができない。このため、次のよう
な問題があった。In the conventional data processing method, while one data processing process is performing data processing on predetermined numerical data, another data processing process is performing processing on the numerical data. Data processing cannot be performed on the numerical data until the currently executed data processing is completed. Therefore, there are the following problems.
【0005】すなわち、対話型のアプリケーションによ
って所定の数値データに対するデータ処理が行われてい
る途中でオペレータが席を外した場合等においては、当
該数値データに対する他のプロセスによるデータ処理禁
止状態が長時間にわたって続き、データ処理効率が悪い
という問題がある。That is, when the operator leaves his seat while data processing is being performed on predetermined numerical data by the interactive application, the data processing prohibited state by another process for the numerical data is long. However, there is a problem that the data processing efficiency is low.
【0006】また、所定の数値データに対する1つのデ
ータ処理プロセスによるデータ処理の頻度が高い場合に
は、当該数値データに対して他のデータ処理プロセスが
データ処理を実行しようとしても、他のデータ処理プロ
セスがデータ処理を実行できないということが起こり得
る。Further, when the frequency of data processing by one data processing process for predetermined numerical data is high, even if another data processing process tries to execute data processing for the numerical data, another data processing process is performed. It is possible that a process cannot perform data processing.
【0007】また、所定の数値データに対して1つのデ
ータ処理プロセスによるデータ処理が実行されている場
合、当該数値データに対して現在実行されているデータ
処理の終了時間等の情報を他のデータ処理プロセスが把
握することは困難である。このため、他のデータ処理プ
ロセスによるデータ処理の開始が必要以上に遅れたり、
他のデータ処理プロセスによるデータ処理の指示を必要
以上の回数分、発生させなければならないことがあっ
た。When data processing by one data processing process is performed on predetermined numeric data, information such as the end time of the data processing currently being performed on the numeric data is provided to other data. It is difficult for the treatment process to grasp. Therefore, the start of data processing by other data processing processes may be delayed more than necessary,
In some cases, data processing instructions from other data processing processes have to be generated more times than necessary.
【0008】この発明は、データ処理効率の向上が図れ
る数値データ処理装置を提供することを目的とする。An object of the present invention is to provide a numerical data processing device capable of improving the data processing efficiency.
【0009】[0009]
【課題を解決するための手段】この発明による数値デー
タ処理装置は、データ処理の対象となる数値データが記
憶された第1記憶手段、上記第1記憶手段に記憶された
数値データに対してデータ処理を行うための複数のプロ
セス、上記各プロセスによって発生する更新用データを
記憶する第2記憶手段、および上記第2記憶手段に記憶
された更新用データに基づいて上記第1記憶手段に記憶
された数値データを更新するデータ更新手段を備え、上
記各プロセスは、データ処理前とデータ処理後の数値デ
ータの差に相当するデータを更新用データとして上記第
2記憶手段に記憶させ、上記データ更新手段は、上記第
2記憶手段に更新用データが記憶されるごとに、当該更
新用データに基づいて上記第1記憶手段に記憶されてい
る数値データを更新することを特徴とする。A numerical data processing device according to the present invention includes a first storage means for storing numerical data to be processed, and data for the numerical data stored in the first storage means. A plurality of processes for performing processing, a second storage means for storing update data generated by each of the processes, and the first storage means based on the update data stored in the second storage means Data updating means for updating the numerical data, and each of the processes stores data corresponding to a difference between the numerical data before data processing and after the data processing in the second storage means as update data, and the data updating is performed. The means updates the numerical data stored in the first storage means based on the update data every time the update data is stored in the second storage means. Characterized in that it.
【0010】[0010]
【作用】各プロセスは、データ処理が確定すると、デー
タ処理前とデータ処理後の数値データの差に相当するデ
ータを更新用データとして第2記憶手段に記憶させる。
各プロセスによるデータ処理は、排他的には行われな
い。したがって、各プロセスによるデータ処理を同時に
行うことも可能である。When the data processing is confirmed, each process stores the data corresponding to the difference between the numerical data before the data processing and the numerical data after the data processing as the update data in the second storage means.
Data processing by each process is not performed exclusively. Therefore, it is possible to perform data processing by each process at the same time.
【0011】データ更新手段は、第2記憶手段に更新用
データが記憶されるごとに、当該更新用データに基づい
て第1記憶手段に記憶された数値データを更新する。各
プロセスによるデータ処理が排他的に行われなくても、
データ処理前とデータ処理後の数値データの差に相当す
るデータ(更新用データ)に基づいて数値データが更新
されるので、データの整合性は保持される。The data updating means updates the numerical data stored in the first storing means based on the updating data every time the updating data is stored in the second storing means. Even if data processing by each process is not performed exclusively,
Since the numerical data is updated based on the data (update data) corresponding to the difference between the numerical data before the data processing and the numerical data after the data processing, the consistency of the data is maintained.
【0012】[0012]
【実施例】以下、図1および図2を参照してこの発明の
実施例について説明する。Embodiments of the present invention will be described below with reference to FIGS. 1 and 2.
【0013】図1は、数値データの処理システムの概略
構成を示している。FIG. 1 shows a schematic configuration of a numerical data processing system.
【0014】データベース10には、所定の部品の在庫
数を表す数値データが記憶されている。データベース1
0に記憶されている在庫数データは50であるとする。
データベース10に記憶されている在庫数データに対し
ては、3つのデータ処理プロセス11、12、13によ
って更新処理が行われる。The database 10 stores numerical data representing the stock quantity of a predetermined part. Database 1
It is assumed that the stock quantity data stored in 0 is 50.
The inventory data stored in the database 10 is updated by the three data processing processes 11, 12, and 13.
【0015】在庫数データに対する各データ処理プロセ
ス11、12、13によるデータ処理は、排他的に行わ
れない。つまり、1つのデータ処理プロセスによる在庫
データのデータ処理が実行されている場合でも、他のデ
ータ処理プロセスによる在庫データのデータ処理は禁止
されない。Data processing by the respective data processing processes 11, 12, and 13 with respect to the inventory quantity data is not exclusively performed. That is, even when the data processing of the inventory data is being executed by one data processing process, the data processing of the inventory data by another data processing process is not prohibited.
【0016】今、3つのデータ処理プロセス11、1
2、13によるデータ処理が同時に行われる場合を想定
する。また、この際、データ処理プロセス11は20個
の部品を入庫するデータ処理を、データ処理プロセス1
2は3個の部品を出庫するデータ処理を、データ処理プ
ロセス13は10個の部品を出庫するデータ処理を、そ
れぞれ行うものとする。Now, three data processing processes 11, 1
It is assumed that the data processing by 2 and 13 are simultaneously performed. Further, at this time, the data processing process 11 performs the data processing for storing 20 parts by the data processing process 1
It is assumed that 2 performs data processing for unloading 3 parts, and the data processing process 13 performs data processing for unloading 10 parts.
【0017】各データ処理プロセス11、12、13
は、更新後のデータと更新前のデータとの差の数値デー
タ(更新用データ)を、データ処理プロセス11、1
2、13を識別するデータとともにリクエストバッファ
20に送る。例えば、データ処理プロセスによるデータ
処理が、部品を入庫するデータ処理の場合には、入庫数
が正数としてリクエストバッファ20に送られる。ま
た、データ処理プロセスによるデータ処理が、部品を出
庫するデータ処理の場合には、出庫数が負数としてリク
エストバッファ20に送られる。各データ処理プロセス
11、12、13からリクエストバッファ20への更新
用データの送出は、データ処理が確定された後に行われ
る。Each data processing process 11, 12, 13
Is the numerical data (update data) of the difference between the data after update and the data before update, and
It is sent to the request buffer 20 together with the data for identifying 2 and 13. For example, in the case where the data processing by the data processing process is data processing for stocking a part, the number of stocks is sent to the request buffer 20 as a positive number. Further, when the data processing by the data processing process is the data processing for shipping the parts, the number of shippings is sent to the request buffer 20 as a negative number. The update data is sent from each data processing process 11, 12, 13 to the request buffer 20 after the data processing is confirmed.
【0018】この例では、データ処理プロセス11から
は数値+20が、データ処理プロセス12からは数値−
3が、データ処理プロセス13からは数値−10が、そ
れぞれ更新用データとしてリクエストバッファ20に送
られる。各データ処理プロセス11、12、13からリ
クエストバッファ20への更新用データの書込処理は、
排他的に行われる。In this example, the numerical value +20 from the data processing process 11 and the numerical value − from the data processing process 12.
3 and the numerical value -10 from the data processing process 13 are sent to the request buffer 20 as update data. The process of writing update data from the data processing processes 11, 12, 13 to the request buffer 20 is as follows.
It is done exclusively.
【0019】管理部30は、リクエストバッファ20に
更新用データが送られて格納される毎に、リクエストバ
ッファ20に格納された更新用データを基に、データベ
ース10の内容を更新する。The management unit 30 updates the contents of the database 10 based on the update data stored in the request buffer 20 every time the update data is sent to and stored in the request buffer 20.
【0020】リクエストバッファ20に、まず、データ
処理プロセス11から+20の更新用データが送られて
きたとすると、管理部30はそのデータ”+20”に基
づいて、データベース10の内容を70(=50+2
0)に更新する。そして、データ更新が正常に行われた
か否かの結果を、更新用データ発生元のデータ処理プロ
セス11に返す。Assuming that update data of +20 is first sent from the data processing process 11 to the request buffer 20, the management unit 30 sets the content of the database 10 to 70 (= 50 + 2) based on the data "+20".
Update to 0). Then, the result of whether or not the data update is normally performed is returned to the data processing process 11 of the update data generation source.
【0021】次に、リクエストバッファ20に、データ
処理プロセス12から−3の更新用データが送られてき
たとすると、管理部30はそのデータ”−3”に基づい
て、データベース10の内容を67(=70−3)に更
新する。そして、データ更新が正常に行われたか否かの
結果を、更新用データ発生元のデータ処理プロセス12
に返す。Next, assuming that the data for updating -3 is sent from the data processing process 12 to the request buffer 20, the management unit 30 sets the contents of the database 10 to 67 (based on the data "-3"). = 70-3). Then, the result of whether or not the data is updated normally is used as a result of the data processing process 12 of the update data generation source.
Return to.
【0022】次に、リクエストバッファ20に、データ
処理プロセス13から−10の更新用データが送られて
きたとすると、データ管理部30はそのデータ”−1
0”に基づいて、データベース10の内容を57(=6
7−10)に更新する。そして、データ更新が正常に行
われたか否かの結果を、更新用データ発生元のデータ処
理プロセス13に返す。Next, suppose that update data of -10 is sent from the data processing process 13 to the request buffer 20, the data management unit 30 determines that data "-1".
Based on 0 ”, the contents of the database 10 are changed to 57 (= 6
7-10). Then, the result of whether or not the data update is normally performed is returned to the data processing process 13 of the update data generation source.
【0023】上記実施例によれば、在庫数データに対し
て複数のプロセスがほぼ同時に更新処理を行おうとする
場合、各プロセスによる処理を並行して行えるので、在
庫数データの更新処理効率が向上する。According to the above embodiment, when a plurality of processes try to update the inventory quantity data almost at the same time, the processes by the respective processes can be performed in parallel, so that the inventory quantity data update processing efficiency is improved. To do.
【0024】上記実施例ではデータ処理の対象が部品の
在庫数データであったが、データ処理の対象としては数
値データであれば部品の在庫数データ以外のデータであ
ってもよい。In the above embodiment, the data processing target is the inventory data of the parts, but the data processing target may be data other than the inventory data of the parts as long as it is numerical data.
【0025】上記実施例では、データ処理の対象となる
数値データが1つの場合について説明したが、データ処
理の対象となる数値データが複数種類存在する場合に
も、この発明を適用することができる。In the above embodiment, the case where there is only one numerical data subject to data processing has been described, but the present invention can be applied to the case where there are a plurality of types of numerical data subject to data processing. .
【0026】たとえば、データベース10に複数種類の
部品の在庫数が格納されており、各データ処理プロセス
11、12、13は、各種類の部品の在庫数のデータ処
理を行えるものとする。このような場合には、部品種類
ごとにリクエストバッファが設けられる。各データ処理
プロセス11、12、13は、任意の部品種類について
のデータ処理を行った場合、更新用データを当該部品種
類に対応するリクエストバッファに送る。データ管理部
30は、リクエストバッファに更新用データが記憶され
ると、当該更新用データに基づいて、データベース10
に記憶されている在庫数データのうち、当該リクエスト
バッファに対応する部品種類の在庫数データを更新させ
る。For example, it is assumed that the database 10 stores the inventory numbers of a plurality of types of parts, and that each of the data processing processes 11, 12, and 13 can perform data processing of the inventory number of each type of parts. In such a case, a request buffer is provided for each component type. When the data processing processes 11, 12, and 13 perform data processing for an arbitrary component type, the data processing processes send update data to the request buffer corresponding to the component type. When the update data is stored in the request buffer, the data management unit 30 stores the database 10 based on the update data.
Among the inventory quantity data stored in the above, the inventory quantity data of the component type corresponding to the request buffer is updated.
【0027】[0027]
【発明の効果】この発明によれば、同一の数値データに
対して複数のプロセスがほぼ同時に更新処理を行おうと
する場合、各プロセスによる処理を並行して行えるの
で、数値データの更新処理効率が向上する。According to the present invention, when a plurality of processes attempt to update the same numerical data almost at the same time, the processes by the respective processes can be performed in parallel, so that the numerical data can be updated efficiently. improves.
【0028】対話型のアプリケーションと、短時間に多
回数の更新処理を行うアプリケーションとによって、同
一の数値データが更新されるようなデータ処理システム
においては、特に有効である。This is particularly effective in a data processing system in which the same numerical data is updated by an interactive application and an application that performs a large number of updates in a short time.
【図1】数値データ処理システムの概略構成を示す電気
ブロック図である。FIG. 1 is an electrical block diagram showing a schematic configuration of a numerical data processing system.
【図2】従来の数値データ処理システムの概略構成を示
す電気ブロック図である。FIG. 2 is an electrical block diagram showing a schematic configuration of a conventional numerical data processing system.
10 データベース 11、12、13 データ処理プロセス 20 リクエストバッファ 30 データ管理部 10 database 11, 12, 13 data processing process 20 request buffer 30 data management unit
Claims (1)
憶された第1記憶手段、上記第1記憶手段に記憶された
数値データに対してデータ処理を行うための複数のプロ
セス、上記各プロセスによって発生する更新用データを
記憶する第2記憶手段、および上記第2記憶手段に記憶
された更新用データに基づいて上記第1記憶手段に記憶
された数値データを更新するデータ更新手段を備え、上
記各プロセスは、データ処理前とデータ処理後の数値デ
ータの差に相当するデータを更新用データとして上記第
2記憶手段に記憶させ、上記データ更新手段は、上記第
2記憶手段に更新用データが記憶されるごとに、当該更
新用データに基づいて上記第1記憶手段に記憶されてい
る数値データを更新する数値データ処理装置。1. A first storage means for storing numerical data to be processed, a plurality of processes for performing data processing on the numerical data stored in the first storage means, and each of the above processes. The second storage means for storing the generated update data, and the data update means for updating the numerical data stored in the first storage means based on the update data stored in the second storage means, Each process stores the data corresponding to the difference between the numerical data before the data processing and the numerical data after the data processing as the update data in the second storage means, and the data update means stores the update data in the second storage means. A numerical data processing device that updates the numerical data stored in the first storage means based on the update data each time the data is stored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17263293A JPH076081A (en) | 1993-06-17 | 1993-06-17 | Numeric data processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP17263293A JPH076081A (en) | 1993-06-17 | 1993-06-17 | Numeric data processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH076081A true JPH076081A (en) | 1995-01-10 |
Family
ID=15945482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP17263293A Pending JPH076081A (en) | 1993-06-17 | 1993-06-17 | Numeric data processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH076081A (en) |
-
1993
- 1993-06-17 JP JP17263293A patent/JPH076081A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7080377B2 (en) | Method for effective utilizing of shared resources in computerized system | |
US9086911B2 (en) | Multiprocessing transaction recovery manager | |
US7818749B2 (en) | Data processing method, data processing apparatus, and data processing program | |
US5369732A (en) | Method and apparatus for goal processing memory management | |
JPH076081A (en) | Numeric data processor | |
JPH08329019A (en) | Data management system of semaphore | |
JP3008890B2 (en) | Processing control unit | |
US5412792A (en) | Method and arrangement for controlling memory bank access requests in data processing system | |
JP2000353100A (en) | Task processing system | |
JPH09146839A (en) | Cache memory controller | |
US5778351A (en) | Method for storing system communications system data using modules and tables | |
JPH05257792A (en) | Method and device for accessing common data | |
JP3012444B2 (en) | Process dispatch method | |
JPH0833856B2 (en) | Serial number management method | |
JPH0340053A (en) | Control system for plural communication procedures | |
EP0425764A2 (en) | Input data control system and data management apparatus for use therewith | |
JPH0448348A (en) | Decentralized updating processing system | |
JPH1039941A (en) | Carry-over method for daily processing | |
JPH04223533A (en) | Common resource exclusive control system | |
JPH05334249A (en) | Nesting management system for catalog in interactive processing system | |
JPH033039A (en) | Method for loading object | |
JP2000029763A (en) | Storage device control method and storing system thereof | |
JPH11345092A (en) | Asynchronous data updating system and method | |
JPH05313916A (en) | Electronic computer and its interruption processing method | |
JPH08292906A (en) | Update buffer management device |