JP2003067204A - Computer system - Google Patents

Computer system

Info

Publication number
JP2003067204A
JP2003067204A JP2001254735A JP2001254735A JP2003067204A JP 2003067204 A JP2003067204 A JP 2003067204A JP 2001254735 A JP2001254735 A JP 2001254735A JP 2001254735 A JP2001254735 A JP 2001254735A JP 2003067204 A JP2003067204 A JP 2003067204A
Authority
JP
Japan
Prior art keywords
shared resource
resource access
function
computer system
execution
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.)
Withdrawn
Application number
JP2001254735A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Hayashida
至行 林田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2001254735A priority Critical patent/JP2003067204A/en
Publication of JP2003067204A publication Critical patent/JP2003067204A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To solve a problem which the design review of the entire code of a program is required. SOLUTION: A computer system where plural programs are operated in parallel is provided with a shared resource access information record table 106, a resource access collecting means 103 which collects a shared resource access time quantity, a shared resource access information collecting means 110 which records the shared resource access time quantity into the shared resource access information record table, a parallel execution management table 107, an execution sequence initialization means 105 which refers to the shared resource access information record table and initializes the parallel execution management table, and a parallel execution management means 104 which updates the parallel execution management table after receiving the completion notice of the execution from each function and authorizes the function to be carried out next by referring to the parallel execution management table. As a result, the system decreases the conflict of access to the shared resource as much as possible and optimizes the access.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、計算機システム
資源を共有しながら並列に動作する複数のプログラムの
並列処理最適化を図った計算機システムに関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system for optimizing parallel processing of a plurality of programs operating in parallel while sharing computer system resources.

【0002】[0002]

【従来の技術】従来の計算機システムの並列処理最適化
方式では、個別のプログラム中のループ処理や行列処理
の分割を行い、分割された各処理を並列化された各プロ
セッサヘ割り振る例にあるように、個別のプログラム内
での処理の並列化を最適化するものである。
2. Description of the Related Art In a conventional parallel processing optimization method for a computer system, loop processing and matrix processing in individual programs are divided and each divided processing is allocated to each parallelized processor. In addition, it optimizes the parallelization of processing within individual programs.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の計算機
システムの並列処理最適化方式では、個別のプログラム
中の、特定の処理を並列化するのみであり、並列に動作
する複数のプログラムの間での並列を最適化する手段
は、プログラム設計者がプログラムのコードを目視で確
認することにより実施していた。これにより、並列化を
前提としないで製作したプログラムを並列に実行させる
ために変更する際には、プログラム設計者によるプログ
ラムのコード全体に渡る設計の見直しが行われていた。
In the conventional parallel processing optimization method for a computer system described above, only specific processing in individual programs is parallelized, and a plurality of programs operating in parallel are to be parallelized. The means for optimizing the parallelism has been implemented by the program designer visually confirming the code of the program. As a result, when a program created without assuming parallelization is changed to be executed in parallel, the program designer has reviewed the design of the entire code of the program.

【0004】また、従来の計算機システムの並列処理最
適化方式では、最適化手段は処理の分割による最適化で
あり、計算機システム内の共有アクセス資源への衝突か
ら見た処理の最適化になっていなかったため、並列に実
行する複数のプログラム全体のスループット向上に対し
ては限界があるという問題点があった。
Further, in the conventional parallel processing optimization method for a computer system, the optimizing means is the optimization by dividing the processing, which is the optimization of the processing as seen from the collision with the shared access resource in the computer system. Therefore, there is a problem that there is a limit to the improvement of the throughput of all the programs executed in parallel.

【0005】この発明は、前述した問題点を解決するた
めになされたもので、複数のプログラムが実行する際に
各プログラムが共有してアクセスする共有資源へのアク
セスの競合を可能な限り減少でき、複数のプログラムが
並列に実行する際のアクセスの最適化を図ることができ
る計算機システムを得ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and when a plurality of programs execute, it is possible to reduce the contention of access to a shared resource shared by each program as much as possible. An object of the present invention is to obtain a computer system capable of optimizing access when a plurality of programs are executed in parallel.

【0006】[0006]

【課題を解決するための手段】この発明に係る計算機シ
ステムは、複数の共有資源から構成される計算機システ
ム共有資源群を備え、複数の機能を有する、複数のプロ
グラムが並列に動作する計算機システムであって、前記
プログラムの機能、かつ前記共有資源毎に共有資源アク
セス情報欄を有する共有資源アクセス情報記録テーブル
と、前記プログラムの機能が前記共有資源にアクセスを
行う際の共有資源アクセス情報を収集する資源アクセス
収集手段と、前記収集された共有資源アクセス情報を前
記共有資源アクセス情報記録テーブルの共有資源アクセ
ス情報欄ヘ記録する各機能内に組み込まれた共有資源ア
クセス情報収集手段と、前記共有資源毎に各機能の実行
順序を記録する並列実行管理テーブルと、前記共有資源
アクセス情報記録テーブルを参照し前記共有資源アクセ
ス情報に基いて前記並列実行管理テーブルを初期化する
実行順序初期化手段と、実行が完了したことを通知する
各機能内に組み込まれた実行完了通知手段と、各機能か
ら前記実行の完了の通知を受けて前記並列実行管理テー
ブルを更新するとともに、前記並列実行管理テーブルを
参照して次に実行すべき機能へ実行権を与える並列実行
管理手段とを備えたものである。
A computer system according to the present invention is a computer system having a computer system shared resource group composed of a plurality of shared resources and having a plurality of functions and a plurality of programs operating in parallel. A shared resource access information record table having a function of the program and a shared resource access information column for each shared resource; and shared resource access information when the function of the program accesses the shared resource. Resource access collection means, shared resource access information collection means incorporated in each function for recording the collected shared resource access information in the shared resource access information column of the shared resource access information recording table, and each shared resource A parallel execution management table that records the execution order of each function in the Table, the execution order initialization means for initializing the parallel execution management table based on the shared resource access information, the execution completion notifying means incorporated in each function for notifying execution completion, and Parallel execution management means for updating the parallel execution management table in response to a notification of completion of the execution from a function and for giving an execution right to a function to be executed next by referring to the parallel execution management table Is.

【0007】また、この発明に係る計算機システムは、
各プログラムの優先度を定義したプログラム優先度テー
ブルをさらに備え、前記実行順序初期化手段は、前記共
有資源アクセス情報記録テーブル、及び前記プログラム
優先度テーブルを参照し前記共有資源アクセス情報、及
び前記優先度に基いて前記並列実行管理テーブルを初期
化するものである。
The computer system according to the present invention is
The program further includes a program priority table that defines the priority of each program, and the execution order initialization means refers to the shared resource access information recording table and the program priority table, the shared resource access information, and the priority. The parallel execution management table is initialized based on the frequency.

【0008】また、この発明に係る計算機システムは、
前記共有資源アクセス情報を、共有資源アクセス時間量
としたものである。
The computer system according to the present invention is
The shared resource access information is a shared resource access time amount.

【0009】また、この発明に係る計算機システムは、
前記共有資源アクセス情報を、共有資源アクセスサイズ
としたものである。
The computer system according to the present invention is
The shared resource access information is a shared resource access size.

【0010】また、この発明に係る計算機システムは、
複数の共有資源から構成される計算機システム共有資源
群を備え、複数の機能を有する、複数のプログラムが並
列に動作する計算機システムであって、前記プログラム
の機能、かつ前記共有資源毎に共有資源アクセス優先度
を記録した共有資源アクセス優先度テーブルと、前記共
有資源毎に各機能の実行順序を記録する並列実行管理テ
ーブルと、前記共有資源アクセス優先度テーブルを参照
し前記共有資源アクセス優先度に基いて前記並列実行管
理テーブルを初期化する実行順序初期化手段と、実行が
完了したことを通知する各機能内に組み込まれた実行完
了通知手段と、各機能から前記実行の完了の通知を受け
て前記並列実行管理テーブルを更新するとともに、前記
並列実行管理テーブルを参照して次に実行すべき機能へ
実行権を与える並列実行管理手段とを備えたものであ
る。
The computer system according to the present invention is
A computer system having a computer system shared resource group configured of a plurality of shared resources and having a plurality of functions, in which a plurality of programs operate in parallel, and the functions of the programs and shared resource access for each of the shared resources A shared resource access priority table in which priorities are recorded, a parallel execution management table in which the execution order of each function is recorded for each of the shared resources, and the shared resource access priority table is referred to to identify the shared resource access priority table. And an execution order initialization means for initializing the parallel execution management table, an execution completion notifying means incorporated in each function for notifying completion of execution, and a notification of completion of the execution from each function. The parallel execution management table is updated and the execution right is given to the function to be executed next by referring to the parallel execution management table. Those having an execution management unit.

【0011】さらに、この発明に係る計算機システム
は、前記並列実行管理テーブルが、前記共有資源毎にア
クセスの制限時間を定義した共有資源アクセス制限時間
をさらに有し、前記並列実行管理手段は、前記並列実行
管理テーブルの共有資源アクセス制限時間を参照し、各
共有資源に対してアクセスの制限時間を超過した機能か
ら実行順序で次の機能へ実行権を移すものである。
Further, in the computer system according to the present invention, the parallel execution management table further has a shared resource access time limit defining an access time limit for each of the shared resources, and the parallel execution management means is the By referring to the shared resource access time limit of the parallel execution management table, the execution right is transferred from the function that has exceeded the access time limit to each shared resource to the next function in the execution order.

【0012】[0012]

【発明の実施の形態】実施の形態1.この発明の実施の
形態1に係る計算機システムについて図面を参照しなが
ら説明する。図1は、この発明の実施の形態1に係る計
算機システムの全体構成を示す図である。なお、各図
中、同一符号は同一又は相当部分を示す。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiment 1. A computer system according to Embodiment 1 of the present invention will be described with reference to the drawings. 1 is a diagram showing the overall configuration of a computer system according to Embodiment 1 of the present invention. In each figure, the same reference numerals indicate the same or corresponding parts.

【0013】図1において、101は計算機システム共
有資源群であって、LANに接続されたLAN制御装
置、ディスク制御装置、ディスク装置、メモリ、入出力
制御装置、システム・バス等から構成される。
In FIG. 1, 101 is a computer system shared resource group, which comprises a LAN controller connected to a LAN, a disk controller, a disk device, a memory, an input / output controller, a system bus and the like.

【0014】また、同図において、102はオペレーテ
ィング・システム、103はオペレーティング・システ
ム102内へ組み込まれた資源アクセス収集手段であ
る。104は計算機システム内でオペレーティング・シ
ステム102の制御下で動作する並列実行管理手段、1
05は実行順序初期化手段、106は共有資源アクセス
情報記録テーブル、107は並列実行管理テーブルであ
る。
Further, in the figure, 102 is an operating system, and 103 is a resource access collecting means incorporated in the operating system 102. Reference numeral 104 denotes a parallel execution management unit that operates under the control of the operating system 102 in the computer system, and 1
Reference numeral 05 is an execution order initialization means, 106 is a shared resource access information recording table, and 107 is a parallel execution management table.

【0015】さらに、同図において、108は計算機シ
ステム内で並列実行管理手段104の制御下で動作する
複数のプログラム群(プログラムA〜プログラムM)、
109は該プログラム内に組み込まれた機能(機能A1
〜機能AN、…、機能M1〜機能MN)、110は該機
能に組み込まれた共有資源アクセス情報収集手段、11
1は該機能に組み込まれた実行完了通知手段を示す。
Further, in the figure, reference numeral 108 denotes a plurality of program groups (programs A to M) operating under the control of the parallel execution management means 104 in the computer system,
109 is a function incorporated in the program (function A1
-Function AN, ..., Function M1 to Function MN), 110 is shared resource access information collection means incorporated in the function, 11
Reference numeral 1 denotes an execution completion notifying means incorporated in the function.

【0016】図2は、この発明の実施の形態1に係る計
算機システムのプログラムの機能の共有資源アクセス情
報収集手段に関連する手段とテーブルの詳細構成を示す
図である。また、この図2は、計算機システムの共有資
源アクセス情報の収集段階の動作を示す。
FIG. 2 is a diagram showing a detailed structure of means and tables related to the shared resource access information collecting means of the program function of the computer system according to the first embodiment of the present invention. Further, FIG. 2 shows the operation at the stage of collecting shared resource access information of the computer system.

【0017】図2において、101は計算機システム共
有資源群、102はオペレーティング・システム、10
3はオペレーティング・システム102内に組み込まれ
た資源アクセス収集手段、106は後述するプログラム
の機能内に組み込まれた共有資源アクセス情報収集手段
110により、記録される共有資源アクセス情報記録テ
ーブルである。
In FIG. 2, 101 is a computer system shared resource group, 102 is an operating system, 10
Reference numeral 3 is a resource access collecting means incorporated in the operating system 102, and 106 is a shared resource access information recording table recorded by the shared resource access information collecting means 110 incorporated in the function of the program described later.

【0018】また、同図において、108は並列実行管
理手段104の制御下で動作するプログラム、109は
プログラム108に組み込まれた機能、110は機能1
09に組み込まれた共有資源アクセス情報収集手段を示
す。
In the figure, 108 is a program operating under the control of the parallel execution management means 104, 109 is a function incorporated in the program 108, and 110 is a function 1.
The shared resource access information collecting means incorporated in 09 is shown.

【0019】さらに、同図において、201は共有資源
アクセス情報記録テーブル106ヘ該機能の共有資源ア
クセス情報を記録する情報記録手段、202は資源アク
セス収集手段103に対して情報収集の開始を指示する
情報収集開始手段、203は資源アクセス収集手段10
3に対して情報収集の終了を指示する情報収集終了手段
である。なお、情報記録手段201、情報収集開始手段
202、及び情報収集終了手段203は、共有資源アク
セス情報収集手段110を構成する。
Further, in the figure, 201 is an information recording means for recording the shared resource access information of the function in the shared resource access information recording table 106, and 202 is an instruction to the resource access collecting means 103 to start the information collection. Information collection start means 203, resource access collection means 10
3 is an information collection ending means for instructing the end of the information collection. The information recording means 201, the information collection start means 202, and the information collection end means 203 constitute the shared resource access information collection means 110.

【0020】図3は、この発明の実施の形態1に係る計
算機システムの実行順序初期化手段及び並列実行管理手
段に関連する手段とテーブルの詳細構成を示す図であ
る。また、この図3は、計算機システムの複数のプログ
ラムの運用段階前後の動作を示す。
FIG. 3 is a diagram showing a detailed configuration of means and tables related to the execution order initialization means and the parallel execution management means of the computer system according to the first embodiment of the present invention. Further, FIG. 3 shows the operation of a plurality of programs of the computer system before and after the operation stage.

【0021】図3において、104は各機能内に組み込
まれた実行完了通知手段111からの実行の完了の通知
を受けて後述する並列実行管理テーブルを参照し、次に
実行すべき機能へ実行権を与える並列実行管理手段、1
06は共有資源アクセス情報記録テーブル、108は並
列実行管理手段104の制御下で動作するプログラム、
109はプログラム108に組み込まれた機能、105
は共有資源アクセス情報記録テーブル106を参照して
後述する並列実行管理テーブルを作成する実行順序初期
化手段、107は並列実行管理手段104によって記録
及び参照される並列実行管理テーブル、111は該機能
109が実行した後に並列実行管理手段104に対して
該機能109の実行の完了を通知する実行完了通知手段
である。
In FIG. 3, reference numeral 104 denotes a parallel execution management table, which will be described later, upon receipt of notification of completion of execution from the execution completion notifying means 111 incorporated in each function, and the execution right is given to the function to be executed next. Parallel execution management means for giving 1
06 is a shared resource access information recording table, 108 is a program that operates under the control of the parallel execution management means 104,
109 is a function incorporated in the program 108, 105
Is an execution order initialization means for creating a parallel execution management table described later by referring to the shared resource access information recording table 106, 107 is a parallel execution management table recorded and referenced by the parallel execution management means 104, and 111 is the function 109 Is an execution completion notifying means for notifying the parallel execution management means 104 of the completion of the execution of the function 109 after the execution.

【0022】図4は、この発明の実施の形態1に係る計
算機システムの実行順序初期化手段による、並列に動作
する複数のプログラムにおける機能の並び替えを示す図
である。
FIG. 4 is a diagram showing rearrangement of functions in a plurality of programs operating in parallel by the execution order initialization means of the computer system according to the first embodiment of the present invention.

【0023】図4において、401は各機能(A1、A
2、…、D2、D3)、402は各プログラム(プログ
ラムA、B、C、D)である。また、403は実行順序
初期化手段105により、アクセス時間量の多い共有資
源順でグループ化された並び替え後のアクセスキュー
(並列実行管理テーブル107)の機能列(共有資源a
アクセス配列、…、共有資源dアクセス配列)である。
In FIG. 4, 401 is each function (A1, A
2, ..., D2, D3) and 402 are respective programs (programs A, B, C, D). Further, 403 is a function sequence (shared resource a) of the access queue (parallel execution management table 107) after rearrangement, which is grouped by the execution order initializing unit 105 in the order of the shared resource with the largest access time.
Access array, ..., Shared resource d access array).

【0024】図5は、この発明の実施の形態1に係る計
算機システムの共有資源アクセス情報記録テーブルの構
成を示す図である。
FIG. 5 is a diagram showing the structure of the shared resource access information recording table of the computer system according to the first embodiment of the present invention.

【0025】図5において、501はプログラム識別
子、502は機能識別子、503は共有資源アクセス時
間量を示す。また、504は計算機システム内に存在す
る1つの共有資源aであり、505で指す行では、プロ
グラムAの機能A1により共有資源aに対して300、
他の共有資源に対しては0というアクセス時間量であっ
たことを示す。この図5に示す共有資源アクセス時間量
は、説明を簡単にするために、例えば機能A1が共有資
源aだけをアクセスする例を示すが、複数の共有資源を
アクセスする場合もある。
In FIG. 5, 501 is a program identifier, 502 is a function identifier, and 503 is a shared resource access time amount. Further, 504 is one shared resource a existing in the computer system, and in the line indicated by 505, 300 is assigned to the shared resource a by the function A1 of the program A,
It indicates that the access time amount was 0 for other shared resources. The shared resource access time amount shown in FIG. 5 shows an example in which the function A1 accesses only the shared resource a for the sake of simplification of description, but it may access a plurality of shared resources.

【0026】図6は、この発明の実施の形態1に係る計
算機システムの並列実行管理テーブルの構成を示す図で
ある。
FIG. 6 is a diagram showing the structure of the parallel execution management table of the computer system according to the first embodiment of the present invention.

【0027】図6において、601の各行は各共有資源
(a、b、c、d、…)に対応している。602の各列
は先頭行のキュー種別(1、2、3、…)欄を除き、機
能識別子(A1、A2、…)が左から実行される順番に
並んでおり、使用されていない要素は0の値が入ってい
る。
In FIG. 6, each row 601 corresponds to each shared resource (a, b, c, d, ...). Except for the queue type (1, 2, 3, ...) column in the first row, the columns of 602 are arranged in the order in which the function identifiers (A1, A2, ...) Are executed from the left, and elements that are not used are It has a value of 0.

【0028】つぎに、この実施の形態1に係る計算機シ
ステムの動作について図面を参照しながら説明する。
Next, the operation of the computer system according to the first embodiment will be described with reference to the drawings.

【0029】図7は、この発明の実施の形態1に係る計
算機システムのプログラムの機能の情報収集開始手段の
処理を示すフローチャートである。
FIG. 7 is a flow chart showing the processing of the information collection starting means of the program function of the computer system according to the first embodiment of the present invention.

【0030】図7のステップ701において、情報収集
開始手段202は、図2に示すように、オペレーティン
グ・システム102の資源アクセス収集手段103に対
して、全共有資源のアクセス時間の計測開始を指示す
る。
In step 701 of FIG. 7, the information collection starting means 202, as shown in FIG. 2, instructs the resource access collecting means 103 of the operating system 102 to start measuring the access time of all shared resources. .

【0031】図8は、この発明の実施の形態1に係る計
算機システムのプログラムの機能の情報収集終了手段の
処理を示すフローチャートである。
FIG. 8 is a flow chart showing the processing of the information collection end means of the program function of the computer system according to the first embodiment of the present invention.

【0032】図8のステップ801において、情報収集
終了手段203は、図2に示すように、オペレーティン
グ・システム102の資源アクセス収集手段103に対
して、全共有資源のアクセス時間の計測終了を指示す
る。
In step 801 of FIG. 8, the information collection end means 203 instructs the resource access collection means 103 of the operating system 102 to end the measurement of access times of all shared resources, as shown in FIG. .

【0033】図9は、この発明の実施の形態1に係る計
算機システムのプログラムの機能の情報記録手段の処理
を示すフローチャートである。
FIG. 9 is a flow chart showing the processing of the information recording means of the program function of the computer system according to the first embodiment of the present invention.

【0034】図9のステップ901において、情報記録
手段201は、該プログラムの識別子と該機能の識別子
をキーとして、図5に示した共有資源アクセス情報記録
テーブル106のプログラム識別子欄501、及び機能
識別子欄502から該当する行を検索し、該当する位置
を記録位置と定める。次に、ステップ902において、
オペレーティング・システム102の資源アクセス収集
手段103より全共有資源のアクセス時間量を読み出
す。次に、ステップ903において、全共有資源のアク
セス時間量を、共有資源アクセス情報記録テーブル10
6の共有資源アクセス時間量欄503の記録位置と定め
た要素の現在値に加算する。
In step 901 of FIG. 9, the information recording means 201 uses the program identifier and the function identifier as keys, and the program identifier column 501 and the function identifier of the shared resource access information recording table 106 shown in FIG. The corresponding line is searched from the column 502, and the corresponding position is determined as the recording position. Then, in step 902,
The access time amount of all shared resources is read from the resource access collection means 103 of the operating system 102. Next, in step 903, the access time amount of all shared resources is calculated as the shared resource access information recording table 10.
It is added to the current value of the element defined as the recording position of the shared resource access time amount column 503 of No. 6.

【0035】図10は、この発明の実施の形態1に係る
計算機システムのプログラムの機能の実行完了通知手段
の処理を示すフローチャートである。
FIG. 10 is a flow chart showing the processing of the execution completion notifying means of the function of the program of the computer system according to the first embodiment of the present invention.

【0036】図10のステップ1001において、実行
完了通知手段111は、該機能109が属する並列実行
管理テーブル107上の行(キュー)より他の行の各先
頭の機能が属する各プログラムのプログラム識別子と、
該機能109が属するプログラム108のプログラム識
別子とを比較し、ステップ1002において一致してい
るならば、ステップ1003において、プログラム識別
子と次に実行を要求するプログラム識別子と機能識別子
を渡して並列実行管理手段104へ該機能の完了を通知
する。また、ステップ1002において、一致していな
い場合は、ステップ1003を実行しないで終了する。
In step 1001 of FIG. 10, the execution completion notifying means 111 uses the program identifier of each program to which each head function of the other rows than the row (queue) on the parallel execution management table 107 to which the function 109 belongs, ,
The program identifier of the program 108 to which the function 109 belongs is compared, and if they match in step 1002, in step 1003, the program identifier and the program identifier and function identifier to be executed next are passed, and the parallel execution management means is passed. Notify the completion of the function to 104. If they do not match in step 1002, step 1003 is not executed and the process ends.

【0037】図11は、この発明の実施の形態1に係る
計算機システムの実行順序初期化手段の処理を示すフロ
ーチャートである。
FIG. 11 is a flow chart showing the processing of the execution sequence initialization means of the computer system according to the first embodiment of the present invention.

【0038】図11のステップ1101において、実行
順序初期化手段105は、図5に示す共有資源アクセス
情報記録テーブル106を参照して、図6に示すよう
な、存在する共有資源数の行数と存在する機能数の列数
を備えた並列実行管理テーブル107を作成し、全ての
要素を0で初期化する。
In step 1101 of FIG. 11, the execution order initialization means 105 refers to the shared resource access information recording table 106 shown in FIG. 5 and sets the number of existing shared resource rows as shown in FIG. The parallel execution management table 107 having the number of columns of existing functions is created, and all the elements are initialized to 0.

【0039】次に、ステップ1102において、図5に
示す共有資源アクセス情報記録テーブル106、及び図
6に示す並列実行管理テーブル107に作業ポインタを
設定する。つまり、共有資源アクセス情報記録テーブル
106の先頭列へポインタを設定するとともに、並列実
行管理テーブル107へポインタを設定する。
Next, at step 1102, a work pointer is set in the shared resource access information recording table 106 shown in FIG. 5 and the parallel execution management table 107 shown in FIG. That is, the pointer is set to the first column of the shared resource access information recording table 106, and the pointer is set to the parallel execution management table 107.

【0040】次に、ステップ1103において、共有資
源アクセス情報記録テーブル106の全ての行の走査が
完了したかを判断し、完了している場合は処理を終了
し、完了していない場合には次のステップ1104へ進
む。
Next, in step 1103, it is judged whether or not the scanning of all the rows of the shared resource access information recording table 106 is completed. If completed, the processing is terminated. To step 1104 of.

【0041】次に、ステップ1104において、共有資
源アクセス情報記録テーブル106の現作業ポインタが
指している行に対して、アクセス時間量の最も多い共有
資源を求める。
Next, in step 1104, the shared resource having the largest access time amount is obtained for the line pointed to by the current work pointer in the shared resource access information recording table 106.

【0042】次に、ステップ1105において、並列実
行管理テーブル107上の、ステップ1104で求めた
共有資源の行における最左の空いている要素へ、並列実
行管理テーブル107上のポインタを設定する。
Next, at step 1105, the pointer on the parallel execution management table 107 is set to the leftmost vacant element in the row of the shared resource obtained at step 1104 on the parallel execution management table 107.

【0043】次に、ステップ1106において、共有資
源アクセス情報記録テーブル106のポインタが指す機
能識別子を、並列実行管理テーブル107上のステップ
1105で求めた位置へ複写する。
Next, in step 1106, the function identifier pointed to by the pointer of the shared resource access information recording table 106 is copied to the position obtained in step 1105 on the parallel execution management table 107.

【0044】次に、ステップ1107において、共有資
源アクセス情報記録テーブル106のポインタを行方向
に一つ進める。
Next, at step 1107, the pointer of the shared resource access information recording table 106 is advanced by one in the row direction.

【0045】その後、ステップ1103〜1107の処
理を繰り返す。
After that, the processing of steps 1103 to 1107 is repeated.

【0046】図12は、この発明の実施の形態1に係る
計算機システムの並列実行管理手段の処理を示すフロー
チャートである。
FIG. 12 is a flow chart showing the processing of the parallel execution management means of the computer system according to the first embodiment of the present invention.

【0047】図12のステップ1201において、並列
実行管理手段104は、図10の実行完了通知手段11
1により機能から実行完了通知があったかを調べ、あっ
た場合は、次のステップ1202において全ての機能が
完了したかを調べる。機能から実行完了通知がなかった
場合には、機能からの実行完了通知を再び待つ。
In step 1201 of FIG. 12, the parallel execution management means 104 causes the execution completion notifying means 11 of FIG.
In step 1, it is checked whether or not there is an execution completion notification from the function. When the execution completion notification is not received from the function, the execution completion notification from the function is waited again.

【0048】次に、ステップ1202において、全ての
機能が完了したか(キュー(図6に示す並列実行管理テ
ーブル107)が空か)を判断し、全ての機能が完了し
ている場合は、並列実行管理手段104は処理を終了す
る。一方、まだ全ての機能が完了していない場合には、
次のステップ1203へ進む。
Next, at step 1202, it is judged whether all the functions have been completed (whether the queue (the parallel execution management table 107 shown in FIG. 6) is empty), and if all the functions have been completed, the parallel processing is executed. The execution management means 104 ends the process. On the other hand, if all functions are not completed yet,
Proceed to the next step 1203.

【0049】次に、ステップ1203において、実行完
了を通知した機能をキュー(並列実行管理テーブル10
7)から外し、該キューの内容を先頭(左)へ詰める。
Next, at step 1203, the function notified of the completion of execution is queued (parallel execution management table 10
Remove from 7) and fill the contents of the queue to the beginning (left).

【0050】次に、ステップ1204において、図10
の実行完了通知手段111より渡された次に実行するプ
ログラム識別子と機能識別子に該当する、並列実行管理
テーブル107上の要素をポイントする。つまり、並列
実行管理テーブル107を走査して、実行要求通知の要
求機能かを判断し、実行要求通知の要求機能の場合に
は、次のステップ1205へ進む。
Next, in step 1204, as shown in FIG.
The element on the parallel execution management table 107 corresponding to the program identifier and the function identifier to be executed next, which is passed from the execution completion notifying means 111, is pointed to. That is, the parallel execution management table 107 is scanned to determine whether the function is a request function for execution request notification. If the function is a request function for execution request notification, the process proceeds to the next step 1205.

【0051】そして、ステップ1205において、見つ
かった場合に、該機能の機能識別子を該行(キュー)の
先頭へ移動し、空きをつめる。
Then, in step 1205, if found, the function identifier of the function is moved to the head of the line (queue) to fill the space.

【0052】以上のように、この実施の形態1によれ
ば、一度目の実行である、共有資源アクセス情報の収集
段階において、各機能の共有資源に対するアクセス状況
を共有資源アクセス情報記録テーブル106に記録して
おき、それに基づいて処理順序を変更するため、同一の
共有資源ヘアクセスする機能が並列に動作し性能の低下
を抑えることができるという効果が得られる。また、機
能の実行順序は入れ替えるが、元のプログラム内での機
能の実行順序は保つため、プログラムの結果が変わるこ
とはない。
As described above, according to the first embodiment, the access status to the shared resource of each function is stored in the shared resource access information recording table 106 at the stage of collecting the shared resource access information, which is the first execution. Since the information is recorded and the processing order is changed based on the information, the functions of accessing the same shared resource operate in parallel, and it is possible to suppress the deterioration of performance. Further, although the execution order of the functions is exchanged, the execution order of the functions in the original program is maintained, so that the result of the program does not change.

【0053】実施の形態2.この発明の実施の形態2に
係る計算機システムについて図面を参照しながら説明す
る。なお、この実施の形態2に係る計算機システムの基
本的構成は、上記実施の形態1と同様である。但し、共
有資源アクセス情報である共有資源アクセス時間量を収
集するための手段、テーブルは不要である。
Embodiment 2. A computer system according to Embodiment 2 of the present invention will be described with reference to the drawings. The basic configuration of the computer system according to the second embodiment is the same as that of the first embodiment. However, the means and table for collecting the shared resource access time, which is the shared resource access information, is unnecessary.

【0054】図13は、この発明の実施の形態2に係る
計算機システムの実行順序初期化手段及び並列実行管理
手段に関連する手段とテーブルの詳細構成を示す図であ
る。また、この図13は、計算機システムの複数のプロ
グラムの運用段階前後の動作を示す。
FIG. 13 is a diagram showing a detailed configuration of means and tables related to the execution order initialization means and the parallel execution management means of the computer system according to the second embodiment of the present invention. Further, FIG. 13 shows the operation of a plurality of programs of the computer system before and after the operation stage.

【0055】図13において、1301は各プログラム
の各機能の各共有資源に対するアクセス優先度の定義を
格納した共有資源アクセス優先度テーブルである。な
お、その他の構成については、上記実施の形態1と同一
なのでその重複する説明を省略する。
In FIG. 13, reference numeral 1301 denotes a shared resource access priority table storing the definition of access priority for each shared resource of each function of each program. Since the other configurations are the same as those in the first embodiment, the duplicated description will be omitted.

【0056】図14は、この発明の実施の形態2に係る
計算機システムの共有資源アクセス優先度テーブルの構
成を示す図である。
FIG. 14 is a diagram showing the structure of the shared resource access priority table of the computer system according to the second embodiment of the present invention.

【0057】図14において、1401はプログラム識
別子、1402は機能識別子の各欄である。1403は
該機能の各共有資源に対応した共有資源アクセス優先度
を格納した欄である。1404の行では、プログラム識
別子Aの機能識別子A1の機能は、共有資源aへのアク
セス優先度が6であることを示す。優先度は大きい値ほ
ど優先度が高いとするが、逆の場合も可能である。
In FIG. 14, 1401 is a program identifier and 1402 is a function identifier column. Reference numeral 1403 is a column storing the shared resource access priority corresponding to each shared resource of the function. In the line 1404, the function of the function identifier A1 of the program identifier A indicates that the access priority to the shared resource a is 6. The larger the priority, the higher the priority, but the opposite case is also possible.

【0058】図15は、この発明の実施の形態2に係る
計算機システムの並列実行管理テーブルの構成を示す図
である。
FIG. 15 is a diagram showing the structure of the parallel execution management table of the computer system according to the second embodiment of the present invention.

【0059】図15において、1501の各行は各共有
資源(a、b、c、d、…)に対応している。1502
の各列は先頭行のキュー種別(1、2、3、…)欄を除
き、機能識別子が左から該共有資源へのアクセス優先度
の高い順番に並んでおり、使用されていない要素は0の
値が入っている。
In FIG. 15, each row 1501 corresponds to each shared resource (a, b, c, d, ...). 1502
Except for the queue type (1, 2, 3, ...) column in the first row, the function identifiers are arranged in order from the left with the highest priority of access to the shared resource, and the unused elements are 0. Contains the value of.

【0060】次に、この実施の形態2に係る計算機シス
テムの動作について説明する。
Next, the operation of the computer system according to the second embodiment will be described.

【0061】図16は、この実施の形態2に係る計算機
システムの実行順序初期化手段の処理を示すフローチャ
ートである。
FIG. 16 is a flow chart showing the processing of the execution sequence initialization means of the computer system according to the second embodiment.

【0062】図16のステップ1601において、実行
順序初期化手段105は、図14に示す共有資源アクセ
ス優先度テーブル1301を参照して、図15に示す並
列実行管理テーブル107を作成する。
In step 1601 of FIG. 16, the execution order initialization means 105 creates the parallel execution management table 107 shown in FIG. 15 by referring to the shared resource access priority table 1301 shown in FIG.

【0063】次に、ステップ1602において、ステッ
プ1601で作成された並列実行管理テーブル107の
先頭行(キュー)から全行を走査する。
Next, in step 1602, all rows are scanned from the top row (queue) of the parallel execution management table 107 created in step 1601.

【0064】そして、ステップ1603において、共有
資源アクセス優先度テーブル1301を参照して、各行
(キュー)内の実行する機能列を降順(優先度の高い
順)に並べ替える。なお、この実施の形態2に係る実行
順序初期化手段105の基本的な処理は、図11に示す
上記実施の形態1に係る実行順序初期化手段105の処
理と同様であり、共有資源アクセス情報記録テーブル1
06の代わりに、共有資源アクセス優先度テーブル13
01を参照する。
Then, in step 1603, the shared function access priority table 1301 is referred to and the function columns to be executed in each row (queue) are rearranged in descending order (higher priority order). The basic processing of the execution order initialization means 105 according to the second embodiment is similar to the processing of the execution order initialization means 105 according to the first embodiment shown in FIG. Recording table 1
Instead of 06, the shared resource access priority table 13
Refer to 01.

【0065】以上のように、この実施の形態2によれ
ば、上記実施の形態1における同一共有資源にアクセス
する機能が並列に動作して性能を低下させないという効
果に加えて、ある共有資源に対してより高い優先度を要
求する機能を優先的に実行させることができるという効
果が得られる。
As described above, according to the second embodiment, in addition to the effect that the functions for accessing the same shared resource in the first embodiment do not operate in parallel and the performance is not deteriorated, On the other hand, it is possible to obtain the effect that the function requiring a higher priority can be preferentially executed.

【0066】実施の形態3.この発明の実施の形態3に
係る計算機システムについて図面を参照しながら説明す
る。なお、この実施の形態3に係る計算機システムの基
本的構成は、上記実施の形態1と同様である。
Third Embodiment A computer system according to Embodiment 3 of the present invention will be described with reference to the drawings. The basic configuration of the computer system according to the third embodiment is the same as that of the first embodiment.

【0067】図17は、この発明の実施の形態3に係る
計算機システムの実行順序初期化手段及び並列実行管理
手段に関連する手段とテーブルの詳細構成を示す図であ
る。また、この図17は、計算機システムの複数のプロ
グラムの運用段階前後の動作を示す。
FIG. 17 is a diagram showing a detailed structure of means and tables related to the execution order initialization means and the parallel execution management means of the computer system according to the third embodiment of the present invention. Further, FIG. 17 shows the operation of a plurality of programs of the computer system before and after the operation stage.

【0068】図17において、1701は各プログラム
の実行優先度の定義を格納したプログラム優先度テーブ
ルである。なお、その他の構成については、上記実施の
形態1と同一なのでその重複する説明を省略する。
In FIG. 17, reference numeral 1701 denotes a program priority table which stores the definition of the execution priority of each program. Since the other configurations are the same as those in the first embodiment, the duplicated description will be omitted.

【0069】図18は、この発明の実施の形態3に係る
計算檸システムのプログラム優先度テーブルの構成を示
す図である。
FIG. 18 is a diagram showing the structure of the program priority table of the computing system according to the third embodiment of the present invention.

【0070】図18において、1801は各プログラム
のプログラム識別子(A、B、C、D、E)を格納した
列であり、1802は各プログラムの実行優先度(1
0、9、8、7、6)を格納した列である。
In FIG. 18, 1801 is a column storing the program identifiers (A, B, C, D, E) of each program, and 1802 is the execution priority (1
0, 9, 8, 7, 6).

【0071】図19は、この発明の実施の形態3に係る
計算機システムの並列実行管理テーブルの構成を示す図
である。
FIG. 19 is a diagram showing the structure of the parallel execution management table of the computer system according to the third embodiment of the present invention.

【0072】図19において、1901の各行は各共有
資源(a、b、c、d、…)に対応している。1902
の各列は先頭行のキュー種別(1、2、3、…)欄を除
き、機能識別子が左からプログラムの優先度の高い順番
に並んでおり、使用されていない要素は0の値が入って
いる。
In FIG. 19, each row 1901 corresponds to each shared resource (a, b, c, d, ...). 1902
Except for the queue type (1, 2, 3, ...) column in the first row, the function identifiers are arranged in order from the left with the highest priority of the program, and 0 is entered for unused elements. ing.

【0073】次に、この実施の形態3に係る計算機シス
テムの動作について説明する。
Next, the operation of the computer system according to the third embodiment will be described.

【0074】図20は、この実施の形態3に係る計算機
システムの実行順序初期化手段の処理を示すフローチャ
ートである。
FIG. 20 is a flow chart showing the processing of the execution sequence initialization means of the computer system according to the third embodiment.

【0075】図20のステップ2001において、実行
順序初期化手段105は、共有資源アクセス情報記録テ
ーブル106と、図18に示すプログラム優先度テーブ
ル1701を参照して、図19に示す並列実行管理テー
ブル107を作成する。
In step 2001 of FIG. 20, the execution order initialization means 105 refers to the shared resource access information recording table 106 and the program priority table 1701 shown in FIG. 18 to refer to the parallel execution management table 107 shown in FIG. To create.

【0076】次に、ステップ2002において、ステッ
プ2001で作成された並列実行管理テーブル107の
先頭行(キュー)から全行を走査する。
Next, in step 2002, all rows are scanned from the top row (queue) of the parallel execution management table 107 created in step 2001.

【0077】そして、ステップ2003において、プロ
グラム優先度テーブル1701を参照して、各行(キュ
ー)内の実行する機能列を降順(優先度の高い順)に並
べ替える。なお、この実施の形態3に係る実行順序初期
化手段105の基本的な処理は、図11に示す上記実施
の形態1に係る実行順序初期化手段105の処理と同様
であり、プログラム優先度テーブル1701(第1キ
ー)と、共有資源アクセス情報記録テーブル106(第
2キー)を参照する。
Then, in step 2003, referring to the program priority table 1701, the function columns to be executed in each row (queue) are rearranged in descending order (higher priority order). The basic processing of the execution order initialization means 105 according to the third embodiment is the same as the processing of the execution order initialization means 105 according to the first embodiment shown in FIG. Reference numeral 1701 (first key) and the shared resource access information recording table 106 (second key).

【0078】以上のように、この実施の形態3によれ
ば、上記実施の形態1における同一共有資源にアクセス
する機能が並列に動作して性能を低下させないという効
果に加えて、高い優先度を要求するプログラムに属する
機能を優先的に実行させることができるという効果が得
られる。なお、この実施の形態3は、他の実施の形態に
も適用できる。
As described above, according to the third embodiment, in addition to the effect that the functions for accessing the same shared resource in the first embodiment do not operate in parallel and the performance is not lowered, a high priority is given. The effect that the function belonging to the requested program can be preferentially executed is obtained. The third embodiment can also be applied to other embodiments.

【0079】実施の形態4.この発明の実施の形態4に
係る計算機システムについて図面を参照しながら説明す
る。なお、この実施の形態4に係る計算機システムの基
本的構成は、上記実施の形態1と同様である。
Fourth Embodiment A computer system according to Embodiment 4 of the present invention will be described with reference to the drawings. The basic configuration of the computer system according to the fourth embodiment is the same as that of the first embodiment.

【0080】図21は、この発明の実施の形態4に係る
計算機システムの並列実行管理テーブルの構成を示す図
である。
FIG. 21 is a diagram showing the structure of the parallel execution management table of the computer system according to the fourth embodiment of the present invention.

【0081】図21において、2101の各行は各共有
資源(a、b、c、d、…)に対応している。2102
の各列は先頭行のキュー種別(1、2、3、…)欄を除
き、機能識別子(A1、…)が実行の順番に並んでお
り、使用されていない要素は0の値が入っている。21
03の列は各共有資源に対する1つの機能が1回の実行
で共有資源ヘアクセスを許される時間、共有資源アクセ
ス制限時間(10、9、8、7、…)を示す
In FIG. 21, each row 2101 corresponds to each shared resource (a, b, c, d, ...). 2102
In each column, except for the queue type (1, 2, 3, ...) column in the first row, the function identifiers (A1, ...) Are arranged in the order of execution, and the unused elements have a value of 0. There is. 21
Column 03 indicates the time during which one function for each shared resource is allowed to access the shared resource in one execution, and the shared resource access time limit (10, 9, 8, 7, ...).

【0082】次に、この実施の形態4に係る計算機シス
テムの動作について説明する。
Next, the operation of the computer system according to the fourth embodiment will be described.

【0083】図22は、この実施の形態4に係る計算機
システムの並列実行管理手段の処理を示すフローチャー
トである。
FIG. 22 is a flow chart showing the processing of the parallel execution management means of the computer system according to the fourth embodiment.

【0084】図22のステップ2201において、並列
実行管理手段104は、図21に示す並列実行管理テー
ブル107の割込みインターバル(共有資源アクセス制
限時間)を読み込んで、自身へ割込みが入るようにタイ
マーを設定する。複数の共有資源に対して個別に設定し
ているため、図21に示す例では、インターバル10、
9、8、7、…でそれぞれタイマーが起動される。
In step 2201 of FIG. 22, the parallel execution management means 104 reads the interrupt interval (shared resource access time limit) of the parallel execution management table 107 shown in FIG. 21 and sets a timer so that an interrupt will be issued to itself. To do. Since it is set individually for a plurality of shared resources, in the example shown in FIG.
The timer is started at 9, 8, 7, ....

【0085】次に、ステップ2202において、イベン
ト待ちを行い、機能からの完了通知の場合は、図12に
示す実施の形態1に係る並列実行管理手段104と同一
の処理を行い、前のステップ2201で設定したタイマ
ーが起動された場合には、次のステップ2203へ進
む。
Next, in step 2202, an event is awaited, and in the case of completion notification from the function, the same processing as the parallel execution management means 104 according to the first embodiment shown in FIG. 12 is performed, and the previous step 2201 is executed. When the timer set in step 1 is started, the process proceeds to the next step 2203.

【0086】次に、ステップ2202において、どの共
有資源のキューを処理すればよいかを調べる。
Next, in step 2202, it is checked which shared resource queue should be processed.

【0087】次に、ステップ2204において、今回の
割込みで未処理の共有資源があるかを調べ、ない場合は
ステップ2202へ戻り、複数の共有資源に対して処理
しなければならない場合には、処理の数だけ以降のステ
ップ2205からステップ2207までを繰り返す。
Next, in step 2204, it is checked whether or not there is an unprocessed shared resource at this interrupt. If there is no shared resource, the process returns to step 2202, and if a plurality of shared resources must be processed, the process is executed. The following steps 2205 to 2207 are repeated by the number of times.

【0088】ステップ2205において、現在実行中の
機能に対し共有資源アクセス制限時間に達した旨の中断
通知を送信して実行を中断させる。
In step 2205, the interruption notification indicating that the shared resource access time limit has been reached is transmitted to the function currently being executed to interrupt the execution.

【0089】ステップ2206において、該機能をキュ
ーの最後尾へ移動させ、キュー全体を左へ詰める。
In step 2206, the function is moved to the end of the queue, and the entire queue is moved to the left.

【0090】ステップ2207において、並列実行管理
手段104は、新しくキューの先頭になった機能へ実行
権を与える。
In step 2207, the parallel execution management means 104 gives the execution right to the function that has newly become the head of the queue.

【0091】この実施の形態4に係る計算機システムで
は、各プログラム108の各機能109の各共有資源に
対するアクセスの制限時間を定義した共有資源アクセス
制限時間を並列実行管理テーブル107内に有し、並列
実行管理手段104が、共有資源アクセス制限時間を参
照して、各共有資源に対して制限時間を超過した機能か
ら他の機能へ実行権を移すことにより、特定の機能が特
定の共有資源を独占しないようにしたものである。な
お、他の実施の形態にも適用できる。
In the computer system according to the fourth embodiment, the parallel execution management table 107 has a shared resource access time limit defining a time limit for access to each shared resource of each function 109 of each program 108. The execution management unit 104 refers to the shared resource access time limit and transfers the execution right from the function that has exceeded the time limit to each shared resource, so that the specific function monopolizes the specific shared resource. I did not try to do it. In addition, it can be applied to other embodiments.

【0092】以上のように、この実施の形態4によれ
ば、上記実施の形態1における同一共有資源にアクセス
する機能が並列に動作して性能を低下させないという効
果に加えて、並列実行管理手段104が、並列実行管理
テーブル107内の共有資源アクセス制限時間を参照し
て、各共有資源に対して制限時間に達した機能から他の
機能へ実行権を移すことにより、特定の機能が特定の共
有資源を独占しないという効果が得られる。
As described above, according to the fourth embodiment, in addition to the effect that the functions for accessing the same shared resource in the first embodiment do not operate in parallel to reduce the performance, the parallel execution management means The 104 refers to the shared resource access time limit in the parallel execution management table 107, and transfers the execution right from the function of which the time limit has been reached to another function to each shared resource, so that the specific function is identified. The effect of not monopolizing shared resources is obtained.

【0093】実施の形態5.この発明の実施の形態5に
係る計算機システムについて図面を参照しながら説明す
る。なお、この実施の形態5に係る計算機システムの基
本的構成は、上記実施の形態1と同様である。また、動
作においても上記実施の形態1と同様であり、共有資源
アクセス情報として、共有資源アクセス時間量の代わり
に、共有資源アクセスサイズを扱う。
Embodiment 5. A computer system according to Embodiment 5 of the present invention will be described with reference to the drawings. The basic configuration of the computer system according to the fifth embodiment is similar to that of the first embodiment. The operation is similar to that of the first embodiment, and the shared resource access size is used instead of the shared resource access time amount as the shared resource access information.

【0094】図23は、この発明の実施の形態5に係る
計算機システムの共有資源アクセス情報記録テーブルの
構成を示す図である。
FIG. 23 is a diagram showing the structure of the shared resource access information recording table of the computer system according to the fifth embodiment of the present invention.

【0095】図23において、2301はプログラム識
別子、2302は機能識別子の各欄である。2303は
該機能の各共有資源に対応した共有資源アクセスサイズ
を格納した欄である。2304の行では、プログラム識
別子Aの機能識別子A1である機能は、共有資源aへの
アクセスサイズが1024であることを示す。
In FIG. 23, 2301 is a program identifier and 2302 is a function identifier. Reference numeral 2303 is a column storing a shared resource access size corresponding to each shared resource of the function. In the line 2304, the function having the function identifier A1 of the program identifier A indicates that the access size to the shared resource a is 1024.

【0096】この実施の形態5に係る計算機システムで
は、各プログラム108の各機能109が、共有資源ア
クセス情報の収集段階の実行において、計算機システム
の共有資源にアクセスを行う際に、アクセスサイズをオ
ペレーティング・システム102に組み込まれた資源ア
クセス収集手段103によって収集し、図23に示す共
有資源アクセス情報記録テーブル106ヘ、アクセスサ
イズを共有資源アクセス情報として記録する。なお、こ
の実施の形態5は、上記各実施の形態にも適用できる。
In the computer system according to the fifth embodiment, each function 109 of each program 108 sets the access size when operating the shared resource of the computer system in the execution of the collection stage of the shared resource access information. Collected by the resource access collection means 103 incorporated in the system 102, and record the access size as shared resource access information in the shared resource access information recording table 106 shown in FIG. The fifth embodiment can also be applied to each of the above embodiments.

【0097】以上のように、この実施の形態5によれ
ば、並列処理間の共有資源に対するアクセス競合をアク
セスサイズの観点から分類することができ、ある共有資
源に対して大量アクセスを行う処理が並列に動作するこ
とを回避できるという効果が得られる。
As described above, according to the fifth embodiment, it is possible to classify the access competition for the shared resource between the parallel processes from the viewpoint of the access size, and to perform the process of mass accessing a certain shared resource. The effect that it is possible to avoid operating in parallel is obtained.

【0098】[0098]

【発明の効果】この発明に係る計算機システムは、以上
説明したとおり、複数の共有資源から構成される計算機
システム共有資源群を備え、複数の機能を有する、複数
のプログラムが並列に動作する計算機システムであっ
て、前記プログラムの機能、かつ前記共有資源毎に共有
資源アクセス情報欄を有する共有資源アクセス情報記録
テーブルと、前記プログラムの機能が前記共有資源にア
クセスを行う際の共有資源アクセス情報を収集する資源
アクセス収集手段と、前記収集された共有資源アクセス
情報を前記共有資源アクセス情報記録テーブルの共有資
源アクセス情報欄ヘ記録する各機能内に組み込まれた共
有資源アクセス情報収集手段と、前記共有資源毎に各機
能の実行順序を記録する並列実行管理テーブルと、前記
共有資源アクセス情報記録テーブルを参照し前記共有資
源アクセス情報に基いて前記並列実行管理テーブルを初
期化する実行順序初期化手段と、実行が完了したことを
通知する各機能内に組み込まれた実行完了通知手段と、
各機能から前記実行の完了の通知を受けて前記並列実行
管理テーブルを更新するとともに、前記並列実行管理テ
ーブルを参照して次に実行すべき機能へ実行権を与える
並列実行管理手段とを備えたので、共有資源へのアクセ
スの競合を可能な限り減少でき、複数のプログラムが並
列に実行する際のアクセスの最適化を図ることができる
という効果を奏する。
As described above, the computer system according to the present invention includes a computer system shared resource group composed of a plurality of shared resources, and has a plurality of functions and a plurality of programs operating in parallel. And a shared resource access information recording table having a function of the program and a shared resource access information column for each shared resource, and shared resource access information when the function of the program accesses the shared resource. Resource access collecting means, a shared resource access information collecting means incorporated in each function for recording the collected shared resource access information in the shared resource access information column of the shared resource access information recording table, and the shared resource A parallel execution management table that records the execution order of each function for each, and the shared resource access information And the execution order initializing means for initializing the parallel execution management table on the basis of reference to the shared resource access information recording table, and execution completion notification means incorporated in each function of notifying that the execution has been completed,
Parallel execution management means for updating the parallel execution management table in response to the notification of completion of the execution from each function, and for giving an execution right to the function to be executed next by referring to the parallel execution management table Therefore, it is possible to reduce the contention for access to the shared resource as much as possible, and it is possible to optimize the access when a plurality of programs execute in parallel.

【0099】また、この発明に係る計算機システムは、
以上説明したとおり、各プログラムの優先度を定義した
プログラム優先度テーブルをさらに備え、前記実行順序
初期化手段は、前記共有資源アクセス情報記録テーブ
ル、及び前記プログラム優先度テーブルを参照し前記共
有資源アクセス情報、及び前記優先度に基いて前記並列
実行管理テーブルを初期化するので、共有資源へのアク
セスの競合を可能な限り減少でき、かつ特定のプログラ
ムの処理を優先することができるという効果を奏する。
Further, the computer system according to the present invention is
As described above, the program priority table that defines the priority of each program is further provided, and the execution order initialization means refers to the shared resource access information recording table and the program priority table to access the shared resource. Since the parallel execution management table is initialized based on the information and the priority, it is possible to reduce the contention for access to the shared resource as much as possible and give priority to the processing of a specific program. .

【0100】また、この発明に係る計算機システムは、
以上説明したとおり、前記共有資源アクセス情報を、共
有資源アクセス時間量としたので、共有資源へのアクセ
スの競合を可能な限り減少でき、複数のプログラムが並
列に実行する際のアクセスの最適化を図ることができる
という効果を奏する。
The computer system according to the present invention is
As described above, since the shared resource access information is the shared resource access time amount, it is possible to reduce the contention for access to the shared resource as much as possible, and optimize the access when a plurality of programs execute in parallel. The effect that it can be achieved is produced.

【0101】また、この発明に係る計算機システムは、
以上説明したとおり、前記共有資源アクセス情報を、共
有資源アクセスサイズとしたので、共有資源へのアクセ
スの競合を可能な限り減少でき、複数のプログラムが並
列に実行する際のアクセスの最適化を図ることができる
という効果を奏する。
Further, the computer system according to the present invention is
As described above, since the shared resource access information is the shared resource access size, contention for access to the shared resource can be reduced as much as possible, and the access is optimized when a plurality of programs execute in parallel. There is an effect that can be.

【0102】また、この発明に係る計算機システムは、
以上説明したとおり、複数の共有資源から構成される計
算機システム共有資源群を備え、複数の機能を有する、
複数のプログラムが並列に動作する計算機システムであ
って、前記プログラムの機能、かつ前記共有資源毎に共
有資源アクセス優先度を記録した共有資源アクセス優先
度テーブルと、前記共有資源毎に各機能の実行順序を記
録する並列実行管理テーブルと、前記共有資源アクセス
優先度テーブルを参照し前記共有資源アクセス優先度に
基いて前記並列実行管理テーブルを初期化する実行順序
初期化手段と、実行が完了したことを通知する各機能内
に組み込まれた実行完了通知手段と、各機能から前記実
行の完了の通知を受けて前記並列実行管理テーブルを更
新するとともに、前記並列実行管理テーブルを参照して
次に実行すべき機能へ実行権を与える並列実行管理手段
とを備えたので、共有資源へのアクセスの競合を可能な
限り減少でき、かつ各共有資源に対してアクセス優先度
の高い機能が優先的に実行することができるという効果
を奏する。
Further, the computer system according to the present invention is
As described above, it has a computer system shared resource group composed of a plurality of shared resources and has a plurality of functions.
A computer system in which a plurality of programs operate in parallel, the functions of the programs, and a shared resource access priority table in which the shared resource access priority is recorded for each shared resource, and execution of each function for each shared resource A parallel execution management table that records the order, an execution order initialization unit that refers to the shared resource access priority table and initializes the parallel execution management table based on the shared resource access priority, and that execution is completed The execution completion notifying means incorporated in each function for notifying the execution of the notification, and updating the parallel execution management table upon receiving notification of completion of the execution from each function, and executing the next execution by referring to the parallel execution management table. Since it has a parallel execution management means for giving execution right to the function to be executed, it is possible to reduce the contention of access to the shared resource as much as possible. High functionality of access priority with respect to each shared resource there is an effect that it is possible to preferentially executed.

【0103】さらに、この発明に係る計算機システム
は、以上説明したとおり、前記並列実行管理テーブル
が、前記共有資源毎にアクセスの制限時間を定義した共
有資源アクセス制限時間をさらに有し、前記並列実行管
理手段は、前記並列実行管理テーブルの共有資源アクセ
ス制限時間を参照し、各共有資源に対してアクセスの制
限時間を超過した機能から実行順序で次の機能へ実行権
を移すので、共有資源へのアクセスの競合を可能な限り
減少でき、かつ特定の機能が特定の共有資源を独占しな
いようにすることができるという効果を奏する。
Further, in the computer system according to the present invention, as described above, the parallel execution management table further has a shared resource access time limit defining an access time limit for each shared resource, and the parallel execution is performed. The management means refers to the shared resource access time limit of the parallel execution management table and transfers the execution right from the function that has exceeded the access time limit to each shared resource to the next function in the execution order. It is possible to reduce the contention of access of the device as much as possible and prevent a specific function from monopolizing a specific shared resource.

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

【図1】 この発明の実施の形態1に係る計算機システ
ムの全体構成を示す図である。
FIG. 1 is a diagram showing an overall configuration of a computer system according to a first embodiment of the present invention.

【図2】 この発明の実施の形態1に係る計算機システ
ムの共有資源アクセス情報収集手段の関連構成を示す図
である。
FIG. 2 is a diagram showing a related configuration of a shared resource access information collection unit of the computer system according to the first embodiment of the present invention.

【図3】 この発明の実施の形態1に係る計算機システ
ムの実行順序初期化手段及び並列実行管理手段の関連構
成を示す図である。
FIG. 3 is a diagram showing a related configuration of an execution order initialization unit and a parallel execution management unit of the computer system according to the first embodiment of the present invention.

【図4】 この発明の実施の形態1に係る計算機システ
ムの実行順序初期化手段の機能の並び替え処理を示す図
である。
FIG. 4 is a diagram showing a process of rearranging the functions of the execution order initialization means of the computer system according to the first embodiment of the present invention.

【図5】 この発明の実施の形態1に係る計算機システ
ムの共有資源アクセス情報記録テーブルの構成を示す図
である。
FIG. 5 is a diagram showing a configuration of a shared resource access information recording table of the computer system according to the first embodiment of the present invention.

【図6】 この発明の実施の形態1に係る計算機システ
ムの並列実行管理テーブルの構成を示す図である。
FIG. 6 is a diagram showing a configuration of a parallel execution management table of the computer system according to the first embodiment of the present invention.

【図7】 この発明の実施の形態1に係る計算機システ
ムの共有資源アクセス情報収集手段の情報収集開始手段
の処理を示すフローチャートである。
FIG. 7 is a flowchart showing the processing of the information collection starting means of the shared resource access information collecting means of the computer system according to the first embodiment of the present invention.

【図8】 この発明の実施の形態1に係る計算機システ
ムの共有資源アクセス情報収集手段の情報収集終了手段
の処理を示すフローチャートである。
FIG. 8 is a flowchart showing the processing of the information collection end means of the shared resource access information collection means of the computer system according to the first embodiment of the present invention.

【図9】 この発明の実施の形態1に係る計算機システ
ムの共有資源アクセス情報収集手段の情報記録手段の処
理を示すフローチャートである。
FIG. 9 is a flowchart showing the processing of the information recording means of the shared resource access information collecting means of the computer system according to the first embodiment of the present invention.

【図10】 この発明の実施の形態1に係る計算機シス
テムの実行完了通知手段の処理を示すフローチャートで
ある。
FIG. 10 is a flowchart showing a process of an execution completion notifying means of the computer system according to the first embodiment of the present invention.

【図11】 この発明の実施の形態1に係る計算機シス
テムの実行順序初期化手段の処理を示すフローチャート
である。
FIG. 11 is a flowchart showing the processing of the execution order initialization means of the computer system according to the first embodiment of the present invention.

【図12】 この発明の実施の形態1に係る計算機シス
テムの並列実行管理手段の処理を示すフローチャートで
ある。
FIG. 12 is a flowchart showing a process of parallel execution management means of the computer system according to the first embodiment of the present invention.

【図13】 この発明の実施の形態2に係る計算機シス
テムの実行順序初期化手段及び並列実行管理手段の関連
構成を示す図である。
FIG. 13 is a diagram showing a related configuration of an execution order initialization unit and a parallel execution management unit of the computer system according to the second embodiment of the present invention.

【図14】 この発明の実施の形態2に係る計算機シス
テムの共有資源アクセス優先度テーブルの構成を示す図
である。
FIG. 14 is a diagram showing a configuration of a shared resource access priority table of the computer system according to the second embodiment of the present invention.

【図15】 この発明の実施の形態2に係る計算機シス
テムの並列実行管理テーブルの構成を示す図である。
FIG. 15 is a diagram showing a configuration of a parallel execution management table of the computer system according to the second embodiment of the present invention.

【図16】 この発明の実施の形態2に係る計算機シス
テムの実行順序初期化手段の処理を示すフローチャート
である。
FIG. 16 is a flowchart showing the processing of the execution sequence initialization means of the computer system according to the second embodiment of the present invention.

【図17】 この発明の実施の形態3に係る計算機シス
テムの実行順序初期化手段及び並列実行管理手段の関連
構成を示す図である。
FIG. 17 is a diagram showing a related configuration of an execution order initialization unit and a parallel execution management unit of the computer system according to the third embodiment of the present invention.

【図18】 この発明の実施の形態3に係る計算機シス
テムのプログラム優先度テーブルの構成を示す図であ
る。
FIG. 18 is a diagram showing the structure of a program priority table of the computer system according to the third embodiment of the present invention.

【図19】 この発明の実施の形態3に係る計算機シス
テムの並列実行管理テーブルの構成を示す図である。
FIG. 19 is a diagram showing a configuration of a parallel execution management table of a computer system according to the third embodiment of the present invention.

【図20】 この発明の実施の形態3に係る計算機シス
テムの実行順序初期化手段の処理を示すフローチャート
である。
FIG. 20 is a flowchart showing the processing of the execution sequence initialization means of the computer system according to the third embodiment of the present invention.

【図21】 この発明の実施の形態4に係る計算機シス
テムの並列実行管理テーブルの構成を示す図である。
FIG. 21 is a diagram showing a configuration of a parallel execution management table of a computer system according to the fourth embodiment of the present invention.

【図22】 この発明の実施の形態4に係る計算機シス
テムの並列実行管理手段の処理を示すフローチャートで
ある。
FIG. 22 is a flowchart showing the processing of the parallel execution management means of the computer system according to the fourth embodiment of the present invention.

【図23】 この発明の実施の形態5に係る計算機シス
テムの共有資源アクセス情報記録テーブルの構成を示す
図である。
FIG. 23 is a diagram showing a structure of a shared resource access information recording table of the computer system according to the fifth embodiment of the present invention.

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

101 計算機システム共有資源群、102 オペレー
ティング・システム、103 資源アクセス収集手段、
104 並列実行管理手段、105 実行順序初期化手
段、106 共有資源アクセス情報記録テーブル、10
7 並列実行管理テーブル、108 プログラム、10
9 機能、110 共有資源アクセス情報収集手段、1
11 実行完了通知手段、201 情報記録手段、20
2 情報収集開始手段、203 情報収集終了手段、1
301 共有資源アクセス優先度テーブル、1701
プログラム優先度テーブル。
101 computer system shared resource group, 102 operating system, 103 resource access collecting means,
104 parallel execution management means, 105 execution order initialization means, 106 shared resource access information recording table, 10
7 Parallel execution management table, 108 programs, 10
9 functions, 110 shared resource access information collection means, 1
11 execution completion notifying means, 201 information recording means, 20
2 information collection start means, 203 information collection end means, 1
301 shared resource access priority table, 1701
Program priority table.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 複数の共有資源から構成される計算機シ
ステム共有資源群を備え、複数の機能を有する、複数の
プログラムが並列に動作する計算機システムであって、 前記プログラムの機能、かつ前記共有資源毎に共有資源
アクセス情報欄を有する共有資源アクセス情報記録テー
ブルと、 前記プログラムの機能が前記共有資源にアクセスを行う
際の共有資源アクセス情報を収集する資源アクセス収集
手段と、 前記収集された共有資源アクセス情報を前記共有資源ア
クセス情報記録テーブルの共有資源アクセス情報欄ヘ記
録する各機能内に組み込まれた共有資源アクセス情報収
集手段と、 前記共有資源毎に各機能の実行順序を記録する並列実行
管理テーブルと、 前記共有資源アクセス情報記録テーブルを参照し前記共
有資源アクセス情報に基いて前記並列実行管理テーブル
を初期化する実行順序初期化手段と、 実行が完了したことを通知する各機能内に組み込まれた
実行完了通知手段と、 各機能から前記実行の完了の通知を受けて前記並列実行
管理テーブルを更新するとともに、前記並列実行管理テ
ーブルを参照して次に実行すべき機能へ実行権を与える
並列実行管理手段とを備えたことを特徴とする計算機シ
ステム。
1. A computer system comprising a computer system shared resource group composed of a plurality of shared resources and having a plurality of functions, in which a plurality of programs operate in parallel, the functions of the programs and the shared resources. A shared resource access information recording table having a shared resource access information column for each, a resource access collecting unit for collecting shared resource access information when the function of the program accesses the shared resource, and the collected shared resource A shared resource access information collecting unit incorporated in each function for recording access information in the shared resource access information column of the shared resource access information recording table, and parallel execution management for recording the execution order of each function for each shared resource. And a table based on the shared resource access information with reference to the shared resource access information recording table. The execution order initialization means for initializing the parallel execution management table by the above, the execution completion notifying means incorporated in each function for notifying the completion of execution, and the notification of the completion of the execution from each function. A computer system comprising: a parallel execution management unit that updates the parallel execution management table and gives an execution right to a function to be executed next by referring to the parallel execution management table.
【請求項2】 各プログラムの優先度を定義したプログ
ラム優先度テーブルをさらに備え、 前記実行順序初期化手段は、前記共有資源アクセス情報
記録テーブル、及び前記プログラム優先度テーブルを参
照し前記共有資源アクセス情報、及び前記優先度に基い
て前記並列実行管理テーブルを初期化することを特徴と
する請求項1記載の計算機システム。
2. A program priority table defining the priority of each program is further provided, and the execution order initialization means refers to the shared resource access information recording table and the program priority table to access the shared resource. The computer system according to claim 1, wherein the parallel execution management table is initialized based on information and the priority.
【請求項3】 前記共有資源アクセス情報は、共有資源
アクセス時間量であることを特徴とする請求項1又は2
記載の計算機システム。
3. The shared resource access information is a shared resource access time amount.
The described computer system.
【請求項4】 前記共有資源アクセス情報は、共有資源
アクセスサイズであることを特徴とする請求項1又は2
記載の計算機システム。
4. The shared resource access information is a shared resource access size.
The described computer system.
【請求項5】 複数の共有資源から構成される計算機シ
ステム共有資源群を備え、複数の機能を有する、複数の
プログラムが並列に動作する計算機システムであって、 前記プログラムの機能、かつ前記共有資源毎に共有資源
アクセス優先度を記録した共有資源アクセス優先度テー
ブルと、 前記共有資源毎に各機能の実行順序を記録する並列実行
管理テーブルと、 前記共有資源アクセス優先度テーブルを参照し前記共有
資源アクセス優先度に基いて前記並列実行管理テーブル
を初期化する実行順序初期化手段と、 実行が完了したことを通知する各機能内に組み込まれた
実行完了通知手段と、 各機能から前記実行の完了の通知を受けて前記並列実行
管理テーブルを更新するとともに、前記並列実行管理テ
ーブルを参照して次に実行すべき機能へ実行権を与える
並列実行管理手段とを備えたことを特徴とする計算機シ
ステム。
5. A computer system comprising a computer system shared resource group composed of a plurality of shared resources and having a plurality of functions, wherein a plurality of programs operate in parallel, the functions of the programs and the shared resources. A shared resource access priority table recording the shared resource access priority for each, a parallel execution management table recording the execution order of each function for each shared resource, and the shared resource access priority table for referencing the shared resource Execution order initialization means for initializing the parallel execution management table based on access priority, execution completion notification means incorporated in each function for notifying completion of execution, and completion of the execution from each function Is notified, the parallel execution management table is updated, and the parallel execution management table is referred to the next function to be executed. Computer system is characterized in that a parallel execution management means for providing a row right.
【請求項6】 前記並列実行管理テーブルは、前記共有
資源毎にアクセスの制限時間を定義した共有資源アクセ
ス制限時間をさらに有し、 前記並列実行管理手段は、前記並列実行管理テーブルの
共有資源アクセス制限時間を参照し、各共有資源に対し
てアクセスの制限時間を超過した機能から実行順序で次
の機能へ実行権を移すことを特徴とする請求項1から請
求項5までのいずれかに記載の計算機システム。
6. The parallel execution management table further has a shared resource access time limit defining an access time limit for each of the shared resources, and the parallel execution management means has a shared resource access time limit of the parallel execution management table. 6. The execution right is transferred to the next function in the execution order from the function that has exceeded the access time limit for each shared resource with reference to the time limit. Computer system.
JP2001254735A 2001-08-24 2001-08-24 Computer system Withdrawn JP2003067204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001254735A JP2003067204A (en) 2001-08-24 2001-08-24 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001254735A JP2003067204A (en) 2001-08-24 2001-08-24 Computer system

Publications (1)

Publication Number Publication Date
JP2003067204A true JP2003067204A (en) 2003-03-07

Family

ID=19082851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001254735A Withdrawn JP2003067204A (en) 2001-08-24 2001-08-24 Computer system

Country Status (1)

Country Link
JP (1) JP2003067204A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014038656A (en) * 2013-10-24 2014-02-27 Fujitsu Ltd Multi-core processor system, control program, and control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014038656A (en) * 2013-10-24 2014-02-27 Fujitsu Ltd Multi-core processor system, control program, and control method

Similar Documents

Publication Publication Date Title
CN1194280C (en) Computer system and computer-readable recording medium
KR20120109533A (en) Managing queries
JP2002163239A (en) Multi-processor system and control method for it
US20080172670A1 (en) Method and Apparatus for Reducing Contention for Computer System Resources Using Soft Locks
JP4961931B2 (en) Job execution scheduling program, job execution scheduling method, and job execution scheduling apparatus
JPH04219844A (en) High-speed medium preferential release type exclusive system
JP2003067204A (en) Computer system
US7673182B2 (en) Method and apparatus for obtaining stack traceback data for multiple computing nodes of a massively parallel computer system
JP2001282551A (en) Job processor and job processing method
JPH1049388A (en) Input and output controller
CN113241120A (en) Gene sequencing system and sequencing method
JP4951326B2 (en) Computer program for optimizing the processing order of I / O requests
JP4117621B2 (en) Data batch transfer device
JPH06282447A (en) Queue management system
JP3189874B2 (en) I / O request issuance schedule device
JP2019164510A (en) Storage system and IO processing control method
JPH0991098A (en) Device driver access system
JP3252517B2 (en) I / O control method and I / O control system
JPH10171509A (en) Process controller
JPH11259431A (en) Distributed processing method and computer readable storage medium for recording network distributed processing program
JPH05257614A (en) Method for controlling disk input/output and device therefor
JP5804970B2 (en) Data processing apparatus, data processing method, and program
JPH0944438A (en) Multiplex processing method for synchronous type input/ output instruction
JPH113231A (en) Software processing method
JP2000235551A (en) Data base arrangement retrieval control method and recording medium

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20081104