JPH08292956A - Device and method for data base management - Google Patents

Device and method for data base management

Info

Publication number
JPH08292956A
JPH08292956A JP7095274A JP9527495A JPH08292956A JP H08292956 A JPH08292956 A JP H08292956A JP 7095274 A JP7095274 A JP 7095274A JP 9527495 A JP9527495 A JP 9527495A JP H08292956 A JPH08292956 A JP H08292956A
Authority
JP
Japan
Prior art keywords
priority
thread
processing
control
database management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7095274A
Other languages
Japanese (ja)
Inventor
Nobuteru Okada
伸輝 岡田
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 JP7095274A priority Critical patent/JPH08292956A/en
Publication of JPH08292956A publication Critical patent/JPH08292956A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE: To provide a multithread type data base managing device and its method which enable a preferential execution to a specific thread by performing a priority level control. CONSTITUTION: When there is a thread which is newly generated by a priority level control means 4, a dispatch means 1 sets a priority level for this thread. A thread having high priority is selected out of all executable threads according to the priority and the thread is executed. Thus, the dispatch means 1 assigns a CPU time according to the priority, so a data base system is provided which can effectively execute the work.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のクライアントか
らのデータベースへのアクセス要求を、複数のスレッド
に分けてスケジューリングを行いながら処理を行うデー
タベースの管理に関する。特に、優先順位の制御に基づ
いて、各スレッドへ制御を移すマルチスレッド型のデー
タベース管理に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to management of a database that processes access requests to a database from a plurality of clients while dividing the request into a plurality of threads. In particular, the present invention relates to multi-thread type database management in which control is transferred to each thread based on priority control.

【0002】[0002]

【従来の技術】1つのプロセスで、複数のクライアント
からのアクセス要求を、各処理単位(スレッド)に分け
てスケジューリングを行いながら1つのサーバー・プロ
セスで処理を行ういわゆるマルチスレッド・サーバー型
のデータベース管理方式が広く用いられている。図7に
は、例えば“日経データプロオープンシリーズ オープ
ンシステム1、1994,9、OS3−2020”に記
載されているマルチスレッド型のデータベース管理方式
の説明図が示されている。図7に示されているように、
ディスパッチ手段1は、各処理単位であるスレッド(5
〜9)へ処理の制御を移す機能を有している。また、シ
ーケンス手段2は、処理の制御が移されているスレッド
(5〜9)の処理の進行を監視しており、次に行うべき
処理を指示するものである。また、データベース・アク
セス手段3は、上記シーケンス手段2の指令に基づいて
データベースへのアクセスを行う。なお、スレッド(5
〜9)は、クライアント10、11によって生成される
ものである。
2. Description of the Related Art A so-called multi-thread server type database management in which access requests from a plurality of clients are divided into processing units (threads) and scheduled by one server process by one process The method is widely used. FIG. 7 shows an explanatory diagram of a multi-thread type database management method described in, for example, "Nikkei Data Pro Open Series Open System 1, 1994, 9, OS3-2020". As shown in FIG.
The dispatch means 1 uses threads (5
It has a function to transfer the control of processing to 9). The sequence means 2 monitors the progress of the processing of the threads (5 to 9) to which the control of the processing has been transferred, and instructs the processing to be performed next. Further, the database access means 3 accesses the database based on the instruction of the sequence means 2. The thread (5
9 to 9) are generated by the clients 10 and 11.

【0003】図7に示されているような従来のマルチス
レッド型のデータベース管理方式においては、クライア
ント10、11からデータベースの処理依頼があった場
合、その処理単位であるスレッド(5〜9)が生成され
る。ディスパッチ手段1は、処理可能なスレッドを適宜
選択し、処理の制御をこの選択したスレッドへ移す。シ
ーケンス手段2は、選択されたスレッドの処理の進行を
監視しており、次に行うべきデータベースの処理をデー
タベース・アクセス手段3に指示する。
In the conventional multi-threaded database management system as shown in FIG. 7, when a client 10 or 11 requests a database processing, the thread (5 to 9) as the processing unit is processed. Is generated. The dispatch means 1 appropriately selects a processable thread and transfers the control of the process to this selected thread. The sequence means 2 monitors the progress of the processing of the selected thread, and instructs the database access means 3 to perform the next database processing.

【0004】[0004]

【発明が解決しようとする課題】このように、従来のマ
ルチスレッド型のデータベース管理方式は、各スレッド
(5〜9)に優先度による制御を行ってはいない。すな
わち、ディスパッチ手段1は現在実行し得るスレッドを
スレッド(5〜9)の中から選んでおり、何ら優先度の
制御により制御を移すスレッドを選択することはしてい
なかった。そのため、優先的に処理を実行したいスレッ
ドがあってもそのスレッドを優先的に処理することはで
きなかった。
As described above, the conventional multi-thread type database management system does not control the threads (5 to 9) by priority. That is, the dispatch means 1 has selected a thread that can be executed at present from the threads (5 to 9), and has not selected the thread to which the control is transferred by controlling the priority. Therefore, even if there is a thread that wants to execute processing preferentially, that thread cannot be processed preferentially.

【0005】この結果、例えば特定の業務に関与するデ
ータベース処理を優先的に処理するという特権的な取扱
をすることができないという問題があった。
As a result, there has been a problem that, for example, the privileged handling of preferentially processing the database processing involved in a specific work cannot be performed.

【0006】本発明は、上記問題点を解決するためにな
されたものであり、その目的はマルチスレッド型のデー
タベースの管理において、各スレッドに優先順位を設
け、いわゆる優先順位制御によって特定のスレッドを優
先的に実行することを可能とすることである。
The present invention has been made to solve the above problems, and its purpose is to provide a priority to each thread in the management of a multi-thread type database and to control a specific thread by so-called priority control. It is possible to execute it preferentially.

【0007】[0007]

【課題を解決するための手段】第1の本発明は、上記課
題を解決するために、クライアントからのデータベース
へのアクセス要求によって生成されたスレッドへ処理の
制御を移すディスパッチ手段と、前記ディスパッチ手段
によって処理の制御を留保されたスレッドの処理のシー
ケンスに基づき、所定の指示を出力するシーケンス手段
と、前記シーケンス手段の前記所定の指示に基づき、デ
ータ・ベースへアクセスするデータ・ベースアクセス手
段と、を備えたマルチスレッド型のデータベース管理装
置において、前記ディスパッチ手段は、スレッド生成時
にその生成されたスレッドに優先順序を与え、この優先
順位に従って前記生成されたスレッドにCPU時間を割
り当て、しかる後に前記生成されたスレッドへ処理の制
御を移す第1優先順位制御手段、を含むことを特徴とす
るデータベース管理装置である。
In order to solve the above-mentioned problems, the first invention is a dispatch means for transferring control of processing to a thread generated by a client access request to a database, and said dispatch means. Sequence means for outputting a predetermined instruction based on a processing sequence of a thread whose control of processing has been reserved by; and a data base access means for accessing a data base based on the predetermined instruction of the sequence means, In the multi-thread type database management device having the above-mentioned, the dispatch means gives a priority order to the generated threads at the time of thread generation, allocates CPU time to the generated threads in accordance with this priority order, and thereafter generates the generated threads. Priority to transfer control of processing to the created thread Position control means, a database management system which comprises a.

【0008】第2の本発明は、上記課題を解決するため
に、第1の本発明のデータベース管理装置において、前
記ディスパッチ手段は、さらに、前記ディスパッチ手段
が前記スレッドに優先順位を与える際に、特定のスレッ
ドに対しては特権優先順位を与え、この特権優先順位を
有するスレッドへ優先的にスレッドの処理の制御を移
し、特権優先順位を有するスレッドが明示的に処理を終
了するまでは、特権優先順位を有するスレッドにのみ処
理の制御を移す第2優先順位制御手段、を含むことを特
徴とするデータベース管理装置である。
A second aspect of the present invention, in order to solve the above-mentioned problems, in the database management device of the first aspect of the present invention, the dispatch means further comprises: when the dispatch means gives priority to the threads, Privilege priority is given to a specific thread, and control of thread processing is transferred preferentially to a thread having this privilege priority, and until the thread having the privilege priority explicitly finishes processing, privilege The database management apparatus is characterized by including second priority control means for transferring control of processing only to threads having priorities.

【0009】第3の本発明は、上記課題を解決するため
に、第2の本発明のデータベース管理装置において、前
記ディスパッチ手段は、さらに、前記ディスパッチ手段
が前記スレッドに優先順位を与える際に、前記特権優先
順位が与えられたスレッドが既に複数個存在する場合に
は、優先順位の高い特権優先順位を有するスレッドへ優
先的に処理を優先的に移す第3優先順位制御手段、を含
むことを特徴とするデータベース管理装置である。
A third aspect of the present invention, in order to solve the above-mentioned problems, in the database management apparatus of the second aspect of the present invention, the dispatch means further comprises: when the dispatch means gives priority to the threads, When a plurality of threads to which the privilege priority has been given already exist, third priority control means for preferentially transferring processing to a thread having a higher priority priority is included. A characteristic database management device.

【0010】第4の本発明は、上記課題を解決するため
に、第1の本発明のデータベース管理装置において、前
記ディスパッチ手段は、さらに、前記ディスパッチ手段
が前記スレッドに優先順位を設定しスレッド生成をする
ときにスレッドに対して優先順位を与え、特権優先順位
を有するスレッドが存在する場合には特権優先順位を有
するスレッドへ優先的にスレッドの処理の制御を移し、
特権優先順位を有するスレッドが明示的に処理を終了す
るまでは、特権優先順位を有するスレッドにのみ処理の
制御を移し、特権優先順位を有するスレッドの処理が終
了した後、優先順位に従って他のスレッドへ処理を移す
第4優先順位制御手段、を含むことを特徴とするデータ
ベース管理装置である。
In order to solve the above-mentioned problems, a fourth aspect of the present invention is directed to the database management device of the first aspect of the present invention, wherein the dispatching means further sets a priority order for the threads to generate threads. When giving a priority to a thread, if there is a thread having a privilege priority, the thread processing control is preferentially transferred to the thread having a privilege priority,
Until the thread having the privilege priority explicitly finishes the processing, the processing control is transferred only to the thread having the privilege priority, and after the processing of the thread having the privilege priority is completed, another thread is executed in accordance with the priority. And a fourth priority control means for shifting the processing to.

【0011】第5の本発明は、上記課題を解決するため
に、第1の本発明のデータベース管理装置において、前
記ディスパッチ手段は、さらに、前記ディスパッチ手段
が前記スレッドに優先順位を設定しスレッド生成をする
ときにスレッドに対してスレッドの処理内容に基づいて
優先順位を与え、この優先順位に従って前記スレッドへ
処理の制御を移す第5優先順位制御手段、を含むことを
特徴とするデータベース管理装置である。
A fifth aspect of the present invention, in order to solve the above-mentioned problems, in the database management device of the first aspect of the present invention, the dispatching means further sets a priority order for the threads to generate threads. In the database management apparatus, a fifth priority control means is provided for giving priority to a thread based on the processing content of the thread when performing the operation, and transferring control of the processing to the thread according to this priority. is there.

【0012】第6の本発明は、上記課題を解決するため
に、第1の本発明のデータベース管理装置において、前
記ディスパッチ手段は、さらに、前記ディスパッチ手段
が前記スレッドに優先順位を設定しスレッド生成をする
ときにスレッドに対して利用者毎に優先順位を与え、こ
の優先順位に従って前記スレッドへ処理の制御を移す第
6優先順位制御手段、を含むことを特徴とするデータベ
ース管理装置である。
In order to solve the above problems, a sixth aspect of the present invention is the database management device according to the first aspect of the present invention, wherein the dispatching means further sets a priority order for the threads and creates a thread. The database management apparatus is characterized by including a sixth priority control means for giving a priority to each thread for each user when performing, and transferring control of processing to the thread according to this priority.

【0013】第7の本発明は、上記課題を解決するため
に、第1の本発明のデータベース管理装置において、前
記ディスパッチ手段は、さらに、前記ディスパッチ手段
が前記スレッドに優先順位を設定しスレッド生成をする
ときにスレッドに対して端末装置毎に優先順位を与え、
この優先順位に従って前記スレッドへ処理の制御を移す
第7優先順位制御手段、を含むことを特徴とするデータ
ベース管理装置である。
In order to solve the above problems, a seventh aspect of the present invention is the database management device according to the first aspect of the present invention, wherein the dispatching means further sets a priority order for the threads to generate threads. When you do, give the thread a priority for each terminal,
The database management apparatus is characterized by including seventh priority control means for transferring processing control to the thread in accordance with this priority.

【0014】第8の本発明は、上記課題を解決するため
に、第1乃至第7の本発明のデータベース管理装置にお
いて、前記ディスパッチ手段は、さらに、前記スレッド
に与えられた優先順位を、動的に変更する優先順位変更
手段、を含むことを特徴とするデータベース管理装置で
ある。
In order to solve the above-mentioned problems, an eighth aspect of the present invention is the database management apparatus according to any one of the first to seventh aspects of the present invention, wherein the dispatch means further changes the priority order given to the threads. The database management apparatus is characterized by including priority order changing means for changing the priority.

【0015】第9の本発明は、上記課題を解決するため
に、クライアントからのデータベースへのアクセス要求
によって生成されたスレッドへ処理の制御を移すディス
パッチ工程と、前記ディスパッチ工程によって処理の制
御を留保されたスレッドの処理のシーケンスに基づき、
所定の指示を出力するシーケンス工程と、前記シーケン
ス工程の前記所定の指示に基づき、データ・ベースへア
クセスするデータ・ベースアクセス工程と、を備えたマ
ルチスレッド型のデータベース管理方法において、前記
ディスパッチ工程は、スレッド生成時にその生成された
スレッドに優先順序を与え、この優先順位に従って前記
生成されたスレッドにCPU時間を割り当て、しかる後
に前記生成されたスレッドへ処理の制御を移す第1優先
順位制御工程、を含むことを特徴とするデータベース管
理方法である。
In order to solve the above problems, the ninth aspect of the present invention reserves control of processing by a dispatch step in which control of processing is transferred to a thread generated by a request from a client to access a database. Based on the sequence of processing of the thread
In a multithreaded database management method comprising a sequence step of outputting a predetermined instruction and a data base access step of accessing a data base based on the predetermined instruction of the sequence step, the dispatch step includes A first priority control step of giving a priority to the generated threads when the threads are generated, allocating CPU time to the generated threads according to this priority, and then transferring control of processing to the generated threads, It is a database management method characterized by including.

【0016】第10の本発明は、上記課題を解決するた
めに第9の本発明のデータベース管理方法において、前
記ディスパッチ工程は、さらに、前記ディスパッチ工程
が前記スレッドに優先順位を与える際に、特定のスレッ
ドに対しては特権優先順位を与え、この特権優先順位を
有するスレッドへ優先的にスレッドの処理の制御を移
し、特権優先順位を有するスレッドが明示的に処理を終
了するまでは、特権優先順位を有するスレッドにのみ処
理の制御を移す第2優先順位制御工程、を含むことを特
徴とするデータベース管理方法である。
A tenth aspect of the present invention, in order to solve the above-mentioned problems, is the database management method according to the ninth aspect of the present invention, wherein the dispatch step further specifies when the dispatch step gives priority to the thread. Priority priority is given to the thread of the priority level, the control of the thread processing is preferentially transferred to the thread having this privilege priority, and the priority priority is given until the thread having the privilege priority explicitly finishes the processing. A database management method comprising a second priority control step of transferring control of processing only to threads having priorities.

【0017】第11の本発明は、上記課題を解決するた
めに、第10の本発明のデータベース管理方法におい
て、前記ディスパッチ工程は、さらに、前記ディスパッ
チ工程が前記スレッドに優先順位を与える際に、前記特
権優先順位が与えられたスレッドが既に複数個存在する
場合には、優先順位の高い特権優先順位を有するスレッ
ドへ優先的に処理を優先的に移す第3優先順位制御工
程、を含むことを特徴とするデータベース管理方法であ
る。
An eleventh aspect of the present invention is, in order to solve the above-mentioned problems, in the database management method according to the tenth aspect of the present invention, the dispatch step further comprises: when the dispatch step gives priority to the thread, When a plurality of threads to which the privilege priority has been given already exist, a third priority control step of preferentially transferring processing to a thread having a higher priority priority is included. It is a characteristic database management method.

【0018】第12の本発明は、上記課題を解決するた
めに、上記第9の本発明のデータベース管理方法におい
て、前記ディスパッチ工程は、さらに、前記ディスパッ
チ工程が前記スレッドに優先順位を設定しスレッド生成
をするときにスレッドに対して優先順位を与え、特権優
先順位を有するスレッドが存在する場合には特権優先順
位を有するスレッドへ優先的にスレッドの処理の制御を
移し、特権優先順位を有するスレッドが明示的に処理を
終了するまでは、特権優先順位を有するスレッドにのみ
処理の制御を移し、特権優先順位を有するスレッドの処
理が終了した後、優先順位に従って他のスレッドへ処理
を移す第4優先順位制御工程、を含むことを特徴とする
データベース管理方法である。
A twelfth aspect of the present invention, in order to solve the above-mentioned problems, in the database management method according to the ninth aspect of the present invention, in the dispatch step, the dispatch step further sets a priority for the thread. When a thread is created, a priority is given to the thread, and if a thread having a privilege priority exists, the thread processing control is preferentially transferred to the thread having the privilege priority, and the thread having the privilege priority is given. Until the processing explicitly ends the processing, the processing control is transferred only to the thread having the privilege priority, and after the processing of the thread having the privilege priority is completed, the processing is transferred to another thread according to the priority. A database management method including a priority control step.

【0019】第13の本発明は、上記課題を解決するた
めに、上記第9の本発明のデータベース管理方法におい
て、前記ディスパッチ工程は、さらに、前記ディスパッ
チ工程が前記スレッドに優先順位を設定しスレッド生成
をするときにスレッドに対してスレッドの処理内容に基
づいて優先順位を与え、この優先順位に従って前記スレ
ッドへ処理の制御を移す第5優先順位制御工程、を含む
ことを特徴とするデータベース管理方法である。
A thirteenth aspect of the present invention is, in order to solve the above-mentioned problems, in the database management method according to the ninth aspect of the present invention, the dispatch step further comprises the step of prioritizing the threads by the thread. A fifth priority order control step of giving a priority to a thread based on the processing content of the thread at the time of generation, and transferring the control of the processing to the thread in accordance with the priority order. Is.

【0020】第14の本発明は、上記課題を解決するた
めに、上記第9の本発明のデータベース管理方法におい
て、前記ディスパッチ工程は、さらに、前記ディスパッ
チ工程が前記スレッドに優先順位を設定しスレッド生成
をするときにスレッドに対して利用者毎に優先順位を与
え、この優先順位に従って前記スレッドへ処理の制御を
移す第6優先順位制御工程、を含むことを特徴とするデ
ータベース管理方法である。
A fourteenth aspect of the present invention, in order to solve the above-mentioned problems, in the database management method according to the ninth aspect of the present invention, in the dispatch step, the dispatch step further sets a priority to the thread. The database management method is characterized by including a sixth priority order control step of giving priority to a thread for each user at the time of generation and transferring control of processing to the thread according to this priority order.

【0021】第15の本発明は、上記課題を解決するた
めに、上記第9の本発明のデータベース管理方法におい
て、前記ディスパッチ工程は、さらに、前記ディスパッ
チ工程が前記スレッドに優先順位を設定しスレッド生成
をするときにスレッドに対して端末方法毎に優先順位を
与え、この優先順位に従って前記スレッドへ処理の制御
を移す第7優先順位制御工程、を含むことを特徴とする
データベース管理方法である。
A fifteenth aspect of the present invention, in order to solve the above-mentioned problems, in the database management method according to the ninth aspect of the present invention, in the dispatch step, the dispatch step further sets a priority to the thread. A database management method characterized by including a seventh priority order control step of giving a priority to a thread for each terminal method at the time of generation and transferring control of processing to the thread according to this priority order.

【0022】第16の本発明は、上記課題を解決するた
めに、上記第9乃至第15の本発明のデータベース管理
方法において、前記ディスパッチ工程は、さらに、前記
スレッドに与えられた優先順位を、動的に変更する優先
順位変更工程、を含むことを特徴とするデータベース管
理方法である。
In order to solve the above problems, the 16th aspect of the present invention is the database management method according to the ninth to fifteenth aspects of the present invention, wherein the dispatching step further assigns the priority order given to the threads. It is a database management method characterized by including a priority changing step of changing dynamically.

【0023】[0023]

【作用】第1の本発明における第1優先順位制御手段
は、生成されるスレッドに優先順位を与え、この優先順
位に基づいてスレッドに処理の制御が移される。そのた
め、各スレッド間に処理の優先順位を設けることがで
き、効率的な業務の遂行が可能となる。
The first priority control means in the first aspect of the present invention gives priority to the generated threads, and the processing control is transferred to the threads based on this priority. Therefore, the priority of processing can be set among the threads, and efficient work can be performed.

【0024】第2の本発明における第2優先順位制御手
段は、特権優先順位を有するスレッドが明示的に処理を
終了するまでは、この特権優先順位を有するスレッドの
み処理の制御が移される。そのため、他を排して、その
スレッドのみを実行したい場合にも、効率的な業務の遂
行が可能となる。
The second priority control means in the second aspect of the present invention transfers control of processing only to the thread having the privilege priority until the thread having the privilege priority explicitly finishes the processing. Therefore, even when it is desired to execute only the thread while eliminating the others, it is possible to efficiently perform the work.

【0025】第3の本発明における第3優先順位制御手
段は、特権優先順位が与えられているスレッドが複数個
存在する場合には、優先順位の高いスレッドから優先的
に処理が移される。そのため、特権優先順位が複数個存
在する場合にも、効率的な業務の遂行が可能となる。
In the third priority control means in the third aspect of the present invention, when there are a plurality of threads to which the privilege priority is given, the processing is preferentially moved from the thread having the higher priority. Therefore, even when there are a plurality of privileged priorities, efficient work can be performed.

【0026】第4の本発明における第4優先順位制御手
段は、特権優先順位を有するスレッドの処理が終了した
後、通常の優先順位に従って他のスレッドへ処理が移さ
れる。そのため、特権優先順位を有するスレッドと、通
常の優先順位のみを有するスレッドとを効率的に処理す
ることが可能である。
In the fourth priority control means in the fourth aspect of the present invention, after the processing of the thread having the privilege priority is completed, the processing is transferred to another thread according to the normal priority. Therefore, it is possible to efficiently process a thread having a privilege priority and a thread having only a normal priority.

【0027】第5の本発明における第5優先順位制御手
段は、各スレッドの処理内容に基づいて、優先順位を与
えている。そのため、効率的に業務の遂行が可能とな
る。
The fifth priority control means in the fifth aspect of the present invention gives the priority based on the processing contents of each thread. Therefore, it is possible to efficiently carry out the work.

【0028】第6の本発明における第6優先順位制御手
段は、各スレッドに対して、利用者毎に優先順位を与え
ている。このため、利用者毎の効率的な業務の遂行が可
能である。
The sixth priority control means in the sixth aspect of the present invention gives each thread a priority for each user. Therefore, it is possible to efficiently carry out the work for each user.

【0029】第7の本発明における第7優先順位制御手
段は、各スレッドに対して端末装置毎に優先順位を与え
る。そのため、端末装置毎の効率的な業務の遂行が可能
である。
The seventh priority control means in the seventh aspect of the present invention gives priority to each thread for each terminal device. Therefore, it is possible to efficiently perform the work for each terminal device.

【0030】第8の本発明における第8優先順位変更手
段は、一旦優先順位が与えられているスレッドに対し
て、その優先順位を動的に変更する。そのため、業務の
遂行途中で各スレッドの処理の優先順位のを変更したい
場合には、柔軟に対応することが可能である。
The eighth priority changing means according to the eighth aspect of the present invention dynamically changes the priority of a thread to which a priority is once assigned. Therefore, when it is desired to change the processing priority of each thread during the execution of the work, it is possible to flexibly deal with it.

【0031】第9乃至第16の本発明は、上記第1乃至
第8の本発明のデータベース管理装置において実現され
るデータベース管理方法である。そのため、第9乃至第
16の本発明は、上記第1乃至第8の本発明と同様の作
用を有する。
The ninth to sixteenth inventions are database management methods realized by the database management apparatus of the first to eighth inventions. Therefore, the ninth to 16th aspects of the present invention have the same operation as the first to eighth aspects of the invention.

【0032】[0032]

【実施例】以下、本発明の好適な実施例を図面に基づい
て説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings.

【0033】図1には、本発明の好適な実施例であるデ
ータベース管理装置及びデータベース管理方法を説明す
る説明図が示されている。図1に示されている説明図
と、上記従来のデターベース管理装置を説明する図7と
を比較すれば理解されように、本実施例において特徴的
な構成は優先順位制御手段4である。また、図2には、
優先順位に基づいてスレッドを選択し、このスレッドを
実行するディスパッチ手段1の動作が示されている。
FIG. 1 is an explanatory view for explaining a database management apparatus and a database management method which are preferred embodiments of the present invention. As will be understood by comparing the explanatory view shown in FIG. 1 with FIG. 7 for explaining the conventional database management apparatus, the priority control means 4 is a characteristic configuration in this embodiment. In addition, in FIG.
The operation of the dispatch means 1 for selecting a thread based on priority and executing this thread is shown.

【0034】まず、クライアント10、11からデータ
ベースに関する処理依頼があった場合に、その処理を行
うためのスレッド(5〜9)が生成される。すると、デ
ィスパッチ手段1は、優先順位制御手段4によって新た
に生成されたスレッドがあるかどうかをステップ21に
おいてチェックを行う。
First, when the client 10 or 11 requests a processing regarding a database, threads (5 to 9) for performing the processing are generated. Then, the dispatch means 1 checks in step 21 whether there is a thread newly created by the priority control means 4.

【0035】チェックの結果、新規に生成されたスレッ
ドがあると判断された場合には、優先順位制御手段4は
その新規に生成されたスレッドに優先順位をステップ2
2において設定する。
As a result of the check, if it is determined that there is a newly created thread, the priority control means 4 sets the priority to the newly created thread in step 2
Set in 2.

【0036】このステップ22において優先順位を設定
する場合には、優先順位制御手段4はそのスレッド(5
〜9)を表すスレッドID、優先順位、スレッドの状態
情報を記憶するテーブルを更新する。すなわち、ステッ
プ23において、スレッドID及び優先順位対応表へ、
生成されたスレッドのID、及びそのスレッドの与えら
れた優先順位、そのスレッドの状態情報を示す情報のそ
れぞれを登録するのである。
When the priority order is set in step 22, the priority order control means 4 sets the thread (5
9-9), the table storing the thread ID, the priority, and the thread state information is updated. That is, in step 23, to the thread ID and priority correspondence table,
The ID of the created thread, the given priority of the thread, and the information indicating the status information of the thread are registered.

【0037】なお、ここでスレッドの状態情報とは、例
えば「実行可能」、「入出力待ち」などとなる。登録が
行われた後、優先順位制御手段4は、この図3に示され
ているような表に登録されている状態情報に基づいて、
登録されている全てのスレッドに関して実行可能である
か否かについてチェックを行う(ステップ24)。
The thread status information here is, for example, "executable" or "input / output wait". After the registration is performed, the priority control means 4 determines, based on the status information registered in the table as shown in FIG.
It is checked whether all the registered threads can be executed (step 24).

【0038】ステップ24において、実行可能なスレッ
ドがあると判断された場合には、優先順位制御手段4
は、上記図3に示す表に登録されている優先順位の情報
を参照し、実行可能な全てのスレッドに関して特権優先
順位が与えられているか否かをチェックする(ステップ
25)。
If it is determined in step 24 that there is an executable thread, the priority control means 4
Refers to the priority information registered in the table shown in FIG. 3 and checks whether or not the privilege priority is given to all the executable threads (step 25).

【0039】このステップ25において特権優先順位が
所定のスレッドに対して与えられていると判断された場
合には、優先順位制御手段4は、その特権優先順位を有
する実行可能なスレッドの中からさらに優先順位に基づ
いて実行するスレッドを選択する(ステップ26)。
When it is determined in step 25 that the privilege priority is given to the predetermined thread, the priority control means 4 further selects from the executable threads having the privilege priority. A thread to be executed is selected based on the priority (step 26).

【0040】そして、ディスパッチ手段1は、特権優先
順位を有するスレッドが明示的に処理を終了しない限
り、そのスレッドがCPU時間を占有するようにCPU
時間の割当を行って選択したスレッド(特権優先順位を
有する)を実行する(ステップ27)。
Then, the dispatch means 1 uses the CPU so that the thread having the privilege priority will occupy the CPU time unless the thread explicitly finishes the processing.
Allocate time to execute the selected thread (with privilege priority) (step 27).

【0041】一方、上記ステップ25において特権優先
順位が与えられているスレッドがないと判断された場合
には、ディスパッチ手段1における優先順位制御手段4
は、上記図3に示されているような表に登録されている
優先順位情報を参照し、実行可能なスレッドの中から優
先順位に基づいて次に実行するスレッドを選択する(ス
テップ28)。
On the other hand, when it is judged in step 25 that there is no thread to which the privilege priority is given, the priority control means 4 in the dispatch means 1
Refers to the priority order information registered in the table as shown in FIG. 3 and selects a thread to be executed next based on the priority order from the executable threads (step 28).

【0042】そして、ディスパッチ手段1は、優先順位
に基づいてCPU時間の割当を行い選択されたスレッド
を実行する(ステップ29)。
Then, the dispatch means 1 allocates the CPU time based on the priority and executes the selected thread (step 29).

【0043】このようにして、ステップ27、ステップ
29においてスレッドが実行された後、ディスパッチ手
段1は優先順位制御手段4によってクライアントからの
処理要求として処理終了が示されているか否かがチェッ
クされる(ステップ30)。実行されたスレッドは処理
要求として処理終了が示されていたと判断された場合に
は、ディスパッチ手段1は優先順位制御手段4によって
図3に示されているようなスレッドID及び優先順位対
応表からそのスレッドに関するエントリーを削除する
(ステップ31)。
After the threads are executed in steps 27 and 29 in this manner, the dispatch means 1 checks by the priority control means 4 whether or not the processing end is indicated as a processing request from the client. (Step 30). When it is determined that the executed thread is indicated as the processing end by the processing request, the dispatch means 1 uses the priority ID control means 4 from the thread ID and the priority correspondence table as shown in FIG. The entry related to the thread is deleted (step 31).

【0044】実行したスレッドが処理要求として処理終
了が示されていないと判断された場合には、ディスパッ
チ手段1は優先順位制御手段4によって図3に示される
スレッドID及び優先順位対応表にそのスレッドに関す
るスレッドの状態情報を登録する(ステップ32)。
When it is judged that the executed thread does not indicate the end of processing as the processing request, the dispatch means 1 causes the priority control means 4 to display the thread ID and the priority correspondence table in the thread ID shown in FIG. Registers the thread state information regarding (step 32).

【0045】なお、処理要求として処理終了が示される
とは、スレッドからディスパッチ手段1に対する要求と
して、終了処理が要求されているか否という意味であ
る。
The fact that the processing end is indicated as the processing request means that the end processing is requested as a request from the thread to the dispatch means 1.

【0046】スレッドの選択基準となる優先順位の設定
としては、例えばデータベースに対する参照、更新とい
ったスレッドの処理内容毎に設定することが考えられ
る。さらに、優先順位の設定は、各利用者毎、端末毎に
設定することも好適である。
As the setting of the priority as the thread selection criterion, it is possible to set it for each processing content of the thread such as reference and update to the database. Further, it is preferable that the priority order is set for each user and each terminal.

【0047】データベースに対する参照、更新といった
スレッドの処理内容によって優先順位を設定する場合に
は、優先順位制御手段4においては例えば予め作成され
た処理内容と優先順位との対応表を参照し、スレッドの
処理内容に基づいて優先順位を設定する。この処理内容
と優先順位との対応表は、例えば図4に示されているよ
うな表になる。図4に示されているように、処理内容が
「select」は優先順位20、処理内容「dele
te」は優先順位60、のように設定される。このよう
に、スレッドの処理内容に基づいて、図3に示されてい
るようなスレッドのIDと、優先順位の対応表への登録
が行われる。
When the priority order is set according to the processing contents of the thread such as reference and update to the database, the priority order controlling means 4 refers to, for example, a previously created correspondence table of the processing contents and the priority order, and The priority order is set based on the processing content. The correspondence table of the processing contents and the priority order is a table as shown in FIG. 4, for example. As shown in FIG. 4, when the processing content is “select”, the priority is 20, and the processing content is “dele”.
"te" is set as the priority order 60. In this way, based on the processing content of the thread, the thread ID and the priority order correspondence table as shown in FIG. 3 are registered.

【0048】また、利用者毎に優先順位を設定する場合
には、優先順位制御手段4において例えば予め作成した
利用者と優先順位との対応表を参照することによって優
先順位を設定することが好適である。このような利用者
と優先順位との対応表は、例えば、図5に示されている
ような表になる。図5に示されているように、例えばユ
ーザが「John」である場合には優先順位が60、ユ
ーザが「Eric」である場合には優先順位が40のよ
うにそれぞれ設定されている。
Further, when the priority order is set for each user, it is preferable that the priority order is set by referring to the correspondence table of the user and the priority order created in advance in the priority order control means 4, for example. Is. Such a correspondence table of users and priorities is, for example, a table as shown in FIG. As shown in FIG. 5, for example, when the user is “John”, the priority is set to 60, and when the user is “Eric”, the priority is set to 40.

【0049】さらに、端末毎に優先順位を設定する場合
には、優先順位制御手段4において、例えば予め作成し
た端末と優先順位との対応表を参照し、各スレッドに対
して優先順位を設定することが望ましい。例えば、この
ような端末と優先順位との対応表の例が、図6に示され
ている。図6に示されているように、例えば端末が「T
001」である場合には優先順位30、端末が「T00
6」である場合には優先順位20、がそれぞれ設定され
る。このような対応表に基づいて、スレッドと関連する
端末に基づき図3に示すスレッドの端末に基づき図3に
示すスレッドのIDと優先順位との対応表への登録が行
われる。
Further, when the priority order is set for each terminal, the priority order control means 4 refers to, for example, a correspondence table between the terminals and the priority order created in advance, and sets the priority order for each thread. Is desirable. For example, an example of a correspondence table of such terminals and priorities is shown in FIG. As shown in FIG. 6, for example, the terminal
If it is “001”, the priority is 30, and the terminal is “T00.
When it is "6", the priority order 20 is set. Based on such a correspondence table, based on the terminal associated with the thread, registration is performed in the correspondence table of the thread ID and priority shown in FIG. 3 based on the thread terminal shown in FIG.

【0050】なお、本実施例においては、スレッドの優
先順位は、例えば図5に示されているような予め作成さ
れたスレッドの処理と優先順位との対応表を参照して設
定したが、設定後にスレッドの優先順位を動的に変更す
ることも好適である。このように、優先順位を動的に変
更することによって、データベースの処理が行われてい
る途中において各端末や処理の優先順位が変更した場合
にも柔軟に対応可能なデータベース管理装置及びデータ
ベース管理方法が得られるものである。
In the present embodiment, the thread priority is set with reference to a correspondence table of thread processing and priority created in advance as shown in FIG. 5, for example. It is also preferable to dynamically change the priority of the thread later. As described above, by dynamically changing the priority order, the database management apparatus and the database management method can flexibly cope with the case where the priority order of each terminal or processing is changed during the processing of the database. Is obtained.

【0051】[0051]

【発明の効果】以上述べたように、本発明によれば、優
先制御に基づいてスレッドを実行させることにより、例
えば特定の業務に関与するデータベース処理を優先的に
処理するなどの処理が可能となり、柔軟なデータベース
システムを構築することが可能である。
As described above, according to the present invention, by executing a thread based on priority control, it is possible to perform processing such as preferentially processing a database processing involved in a specific job. It is possible to build a flexible database system.

【0052】具体的には、第1の本発明によれば、いわ
ゆる優先順位制御を行うことにより、効率的な業務の遂
行が可能なデータベースシステムの構築が可能である。
Specifically, according to the first aspect of the present invention, by performing so-called priority control, it is possible to construct a database system capable of efficiently performing work.

【0053】第2の本発明によれば、他のスレッドの実
行を排して、所定のスレッドのみを実行対象とし得るデ
ータベースシステムが得られる。そのため、極めて緊急
性の高い処理にも対応可能な柔軟なデータベースシステ
ムが提供可能である。
According to the second aspect of the present invention, it is possible to obtain a database system in which execution of other threads can be eliminated and only predetermined threads can be executed. Therefore, it is possible to provide a flexible database system that can handle extremely urgent processing.

【0054】第3の本発明によれば、特権優先順位が与
えられたスレッドが複数個ある場合にも、効率的な運用
の可能なデータベースシステムが実現される。
According to the third aspect of the present invention, a database system capable of efficient operation can be realized even when there are a plurality of threads to which privileged priorities are given.

【0055】第4の本発明によれば、特権優先順位を有
するスレッドの処理が終了した後、優先順位に従って他
のスレッドの処理が行われるので、特権優先順位を有す
るスレッドと通常のスレッドとを効率的に実行可能なデ
ータベースシステムが実現可能である。
According to the fourth aspect of the present invention, after the processing of the thread having the privilege priority is completed, the processing of the other threads is performed in accordance with the priority, so that the thread having the privilege priority and the normal thread are processed. A database system that can be efficiently executed can be realized.

【0056】第5の本発明によれば、スレッドの処理内
容に基づいて優先順位が与えられるため、より効率的な
処理ができるデータベースシステムが提供可能である。
According to the fifth aspect of the present invention, since the priorities are given based on the processing contents of the threads, it is possible to provide a database system capable of more efficient processing.

【0057】第6の本発明によれば、利用者毎に優先順
位が与えられている効率的な作業が可能なデータベース
システムが得られる。
According to the sixth aspect of the present invention, it is possible to obtain a database system capable of efficient work in which priority is given to each user.

【0058】第7の本発明によれば、端末装置毎に優先
順位が与えられているため、端末装置毎の効率的な運用
が可能なデータベースシステムが得られる。
According to the seventh aspect of the present invention, since a priority is given to each terminal device, a database system capable of efficient operation for each terminal device can be obtained.

【0059】第8の本発明によれば、スレッドに与えら
れる優先順位が、動的に変更可能であるため、優先順位
の変更にも迅速に対応可能な柔軟なデータベースシステ
ムが得られる。
According to the eighth aspect of the present invention, since the priorities given to the threads can be dynamically changed, it is possible to obtain a flexible database system capable of promptly responding to changes in the priorities.

【0060】第9乃至第16の本発明によれば、上記第
1から第8までのデータベース管理装置によって実行さ
れるデータベース管理方法が実現可能であり、上記第1
から第8までの本発明と同様の作用効果を奏するもので
ある。
According to the ninth to sixteenth inventions, the database management method executed by the first to eighth database management devices can be realized, and the first to eighth inventions can be realized.
The same effects as those of the present invention of the first through eighth aspects are obtained.

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

【図1】 本発明の好適な実施例であるデータベース管
理装置及びデータベース管理方法を説明する説明図であ
る。
FIG. 1 is an explanatory diagram illustrating a database management apparatus and a database management method according to a preferred embodiment of the present invention.

【図2】 本実施例のディスパッチ手段1の動作を説明
するフローチャートである。
FIG. 2 is a flow chart for explaining the operation of the dispatch means 1 of this embodiment.

【図3】 本実施例の優先順位制御手段で参照する表を
表す説明図である。
FIG. 3 is an explanatory diagram showing a table referred to by a priority control unit of this embodiment.

【図4】 本実施例の優先順位制御手段で参照する表を
表す説明図である。
FIG. 4 is an explanatory diagram showing a table referred to by a priority control unit of this embodiment.

【図5】 本実施例の優先順位制御手段で参照する表を
表す説明図である。
FIG. 5 is an explanatory diagram showing a table referred to by a priority control unit of this embodiment.

【図6】 本実施例の優先順位制御手段で参照する表を
表す説明図である。
FIG. 6 is an explanatory diagram showing a table referred to by a priority control unit of this embodiment.

【図7】 従来のデータベース管理方式を表す説明図で
ある。
FIG. 7 is an explanatory diagram showing a conventional database management method.

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

1 ディスパッチ手段、2 シーケンス手段、3 デー
タベース・アクセス手段、4 優先順位制御手段、5,
6,7,8,9 スレッド、10,11 クライアン
ト。
1 dispatch means, 2 sequence means, 3 database access means, 4 priority control means, 5,
6,7,8,9 threads, 10,11 clients.

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】 クライアントからのデータベースへのア
クセス要求によって生成されたスレッドへ処理の制御を
移すディスパッチ手段と、 前記ディスパッチ手段によって処理の制御を留保された
スレッドの処理のシーケンスに基づき、所定の指示を出
力するシーケンス手段と、 前記シーケンス手段の前記所定の指示に基づき、データ
・ベースへアクセスするデータ・ベースアクセス手段
と、 を備えたマルチスレッド型のデータベース管理装置にお
いて、前記ディスパッチ手段は、 スレッド生成時にその生成されたスレッドに優先順序を
与え、この優先順位に従って前記生成されたスレッドに
CPU時間を割り当て、しかる後に前記生成されたスレ
ッドへ処理の制御を移す第1優先順位制御手段、 を含むことを特徴とするデータベース管理装置。
1. A dispatch means for transferring control of processing to a thread generated by a client access request to a database, and a predetermined instruction based on a processing sequence of a thread whose processing control is reserved by the dispatch means. In a multi-threaded database management device comprising: a sequence means for outputting a data base; and a data base access means for accessing a data base based on the predetermined instruction of the sequence means. A first priority control means for giving a priority order to the generated threads, allocating CPU time to the generated threads according to the priority, and then transferring control of processing to the generated threads. Database management system characterized by .
【請求項2】 請求項1記載のデータベース管理装置に
おいて、前記ディスパッチ手段は、さらに、 前記ディスパッチ手段が前記スレッドに優先順位を与え
る際に、特定のスレッドに対しては特権優先順位を与
え、この特権優先順位を有するスレッドへ優先的にスレ
ッドの処理の制御を移し、特権優先順位を有するスレッ
ドが明示的に処理を終了するまでは、特権優先順位を有
するスレッドにのみ処理の制御を移す第2優先順位制御
手段、 を含むことを特徴とするデータベース管理装置。
2. The database management device according to claim 1, wherein the dispatch means further gives a privilege priority to a specific thread when the dispatch means gives the thread priority. Second, control of thread processing is preferentially transferred to a thread having privilege priority, and control is transferred only to thread having privilege priority until the thread having privilege priority explicitly finishes processing. A database management device comprising: priority control means.
【請求項3】 請求項2記載のデータベース管理装置に
おいて、前記ディスパッチ手段は、さらに、 前記ディスパッチ手段が前記スレッドに優先順位を与え
る際に、前記特権優先順位が与えられたスレッドが既に
複数個存在する場合には、優先順位の高い特権優先順位
を有するスレッドへ優先的に処理を優先的に移す第3優
先順位制御手段、 を含むことを特徴とするデータベース管理装置。
3. The database management device according to claim 2, wherein the dispatch means further includes a plurality of threads to which the privilege priority has been given when the dispatch means gives priority to the threads. And a third priority control means for preferentially transferring processing to a thread having a high priority privilege.
【請求項4】 請求項1記載のデータベース管理装置に
おいて、前記ディスパッチ手段は、さらに、 前記ディスパッチ手段が前記スレッドに優先順位を設定
しスレッド生成をするときにスレッドに対して優先順位
を与え、特権優先順位を有するスレッドが存在する場合
には特権優先順位を有するスレッドへ優先的にスレッド
の処理の制御を移し、特権優先順位を有するスレッドが
明示的に処理を終了するまでは、特権優先順位を有する
スレッドにのみ処理の制御を移し、特権優先順位を有す
るスレッドの処理が終了した後、優先順位に従って他の
スレッドへ処理を移す第4優先順位制御手段、 を含むことを特徴とするデータベース管理装置。
4. The database management device according to claim 1, wherein the dispatch unit further assigns a priority to the thread when the dispatch unit sets the priority of the thread and creates a thread, If there is a thread with priority, the thread's processing control is preferentially transferred to the thread with privilege priority, and the privilege priority is changed until the thread with privilege priority explicitly finishes processing. A database management device, comprising: fourth priority control means for transferring processing control only to the owning thread, and after processing of the thread having the privilege priority is completed, transferring the processing to another thread according to the priority. .
【請求項5】 請求項1記載のデータベース管理装置に
おいて、前記ディスパッチ手段は、さらに、 前記ディスパッチ手段が前記スレッドに優先順位を設定
しスレッド生成をするときにスレッドに対してスレッド
の処理内容に基づいて優先順位を与え、この優先順位に
従って前記スレッドへ処理の制御を移す第5優先順位制
御手段、 を含むことを特徴とするデータベース管理装置。
5. The database management device according to claim 1, wherein the dispatching unit is further configured for the thread based on the processing content of the thread when the dispatching unit sets the priority of the thread and creates the thread. A priority control means for giving priority to the thread and transferring control of processing to the thread according to the priority.
【請求項6】 請求項1記載のデータベース管理装置に
おいて、前記ディスパッチ手段は、さらに、 前記ディスパッチ手段が前記スレッドに優先順位を設定
しスレッド生成をするときにスレッドに対して利用者毎
に優先順位を与え、この優先順位に従って前記スレッド
へ処理の制御を移す第6優先順位制御手段、 を含むことを特徴とするデータベース管理装置。
6. The database management device according to claim 1, wherein the dispatching unit further sets a priority for the thread when the dispatching unit sets a priority for the thread, and prioritizes the thread for each user. And a sixth priority control means for transferring processing control to the thread according to this priority.
【請求項7】 請求項1記載のデータベース管理装置に
おいて、前記ディスパッチ手段は、さらに、 前記ディスパッチ手段が前記スレッドに優先順位を設定
しスレッド生成をするときにスレッドに対して端末装置
毎に優先順位を与え、この優先順位に従って前記スレッ
ドへ処理の制御を移す第7優先順位制御手段、 を含むことを特徴とするデータベース管理装置。
7. The database management device according to claim 1, wherein the dispatching unit further sets a priority for the thread for each terminal when the dispatching unit sets a priority for the thread and creates a thread. And a seventh priority control means for transferring processing control to the thread according to this priority.
【請求項8】 請求項1乃至請求項7に記載のデータベ
ース管理装置において、 前記ディスパッチ手段は、さらに、 前記スレッドに与えられた優先順位を、動的に変更する
優先順位変更手段、 を含むことを特徴とするデータベース管理装置。
8. The database management device according to claim 1, wherein the dispatch unit further includes a priority order changing unit that dynamically changes the priority order given to the thread. A database management device characterized by.
【請求項9】 クライアントからのデータベースへのア
クセス要求によって生成されたスレッドへ処理の制御を
移すディスパッチ工程と、 前記ディスパッチ工程によって処理の制御を留保された
スレッドの処理のシーケンスに基づき、所定の指示を出
力するシーケンス工程と、 前記シーケンス工程の前記所定の指示に基づき、データ
・ベースへアクセスするデータ・ベースアクセス工程
と、 を備えたマルチスレッド型のデータベース管理方法にお
いて、前記ディスパッチ工程は、 スレッド生成時にその生成されたスレッドに優先順序を
与え、この優先順位に従って前記生成されたスレッドに
CPU時間を割り当て、しかる後に前記生成されたスレ
ッドへ処理の制御を移す第1優先順位制御工程、 を含むことを特徴とするデータベース管理方法。
9. A predetermined instruction based on a dispatch step of transferring control of processing to a thread generated in response to a database access request from a client, and a processing sequence of a thread whose control of processing is reserved by the dispatch step. In a multi-threaded database management method, the sequence step of outputting a data base, and a data base access step of accessing a data base based on the predetermined instruction of the sequence step. A first priority control step of giving a priority to the created threads at times, allocating CPU time to the created threads according to this priority, and then transferring control of processing to the created threads. Database management method characterized by .
【請求項10】 請求項9記載のデータベース管理方法
において、前記ディスパッチ工程は、さらに、 前記ディスパッチ工程が前記スレッドに優先順位を与え
る際に、特定のスレッドに対しては特権優先順位を与
え、この特権優先順位を有するスレッドへ優先的にスレ
ッドの処理の制御を移し、特権優先順位を有するスレッ
ドが明示的に処理を終了するまでは、特権優先順位を有
するスレッドにのみ処理の制御を移す第2優先順位制御
工程、 を含むことを特徴とするデータベース管理方法。
10. The database management method according to claim 9, wherein the dispatch step further gives a privilege priority to a specific thread when the dispatch step gives the thread priority. Second, control of thread processing is preferentially transferred to a thread having privilege priority, and control is transferred only to thread having privilege priority until the thread having privilege priority explicitly finishes processing. A database management method comprising: a priority control step.
【請求項11】 請求項10記載のデータベース管理方
法において、前記ディスパッチ工程は、さらに、 前記ディスパッチ工程が前記スレッドに優先順位を与え
る際に、前記特権優先順位が与えられたスレッドが既に
複数個存在する場合には、優先順位の高い特権優先順位
を有するスレッドへ優先的に処理を優先的に移す第3優
先順位制御工程、 を含むことを特徴とするデータベース管理方法。
11. The database management method according to claim 10, wherein in the dispatch step, when the dispatch step gives priority to the threads, a plurality of threads to which the privilege priority has been given already exist. And a third priority control step of preferentially transferring processing to a thread having a privilege priority of a high priority, the database management method.
【請求項12】 請求項9記載のデータベース管理方法
において、前記ディスパッチ工程は、さらに、 前記ディスパッチ工程が前記スレッドに優先順位を設定
しスレッド生成をするときにスレッドに対して優先順位
を与え、特権優先順位を有するスレッドが存在する場合
には特権優先順位を有するスレッドへ優先的にスレッド
の処理の制御を移し、特権優先順位を有するスレッドが
明示的に処理を終了するまでは、特権優先順位を有する
スレッドにのみ処理の制御を移し、特権優先順位を有す
るスレッドの処理が終了した後、優先順位に従って他の
スレッドへ処理を移す第4優先順位制御工程、 を含むことを特徴とするデータベース管理方法。
12. The database management method according to claim 9, wherein the dispatch step further assigns a priority to the thread when the dispatch step sets a priority for the thread and creates a thread, If there is a thread with priority, the thread's processing control is preferentially transferred to the thread with privilege priority, and the privilege priority is changed until the thread with privilege priority explicitly finishes processing. A fourth priority control step of transferring control of processing only to the owning thread, and after processing of the thread having the privilege priority is completed, transferring the processing to another thread according to the priority, .
【請求項13】 請求項9記載のデータベース管理方法
において、前記ディスパッチ工程は、さらに、 前記ディスパッチ工程が前記スレッドに優先順位を設定
しスレッド生成をするときにスレッドに対してスレッド
の処理内容に基づいて優先順位を与え、この優先順位に
従って前記スレッドへ処理の制御を移す第5優先順位制
御工程、 を含むことを特徴とするデータベース管理方法。
13. The database management method according to claim 9, wherein the dispatching step is further based on a thread processing content for the thread when the dispatching step sets a priority for the thread and creates the thread. A fifth priority control step of giving priority to each thread and transferring control of processing to the thread according to the priority.
【請求項14】 請求項9記載のデータベース管理方法
において、前記ディスパッチ工程は、さらに、 前記ディスパッチ工程が前記スレッドに優先順位を設定
しスレッド生成をするときにスレッドに対して利用者毎
に優先順位を与え、この優先順位に従って前記スレッド
へ処理の制御を移す第6優先順位制御工程、 を含むことを特徴とするデータベース管理方法。
14. The database management method according to claim 9, wherein the dispatch step further sets a priority for the thread for each user when the dispatch step sets a priority for the thread and creates a thread. And a sixth priority control step of transferring control of processing to the thread according to this priority order, and a database management method.
【請求項15】 請求項9記載のデータベース管理方法
において、前記ディスパッチ工程は、さらに、 前記ディスパッチ工程が前記スレッドに優先順位を設定
しスレッド生成をするときにスレッドに対して端末方法
毎に優先順位を与え、この優先順位に従って前記スレッ
ドへ処理の制御を移す第7優先順位制御工程、 を含むことを特徴とするデータベース管理方法。
15. The database management method according to claim 9, wherein in the dispatch step, when the dispatch step sets a priority for the thread and creates a thread, the thread is prioritized for each terminal method. And a seventh priority control step of transferring control of processing to the thread according to this priority, and the database management method.
【請求項16】 請求項9乃至請求項15に記載のデー
タベース管理方法において、 前記ディスパッチ工程は、さらに、 前記スレッドに与えられた優先順位を、動的に変更する
優先順位変更工程、 を含むことを特徴とするデータベース管理方法。
16. The database management method according to claim 9, wherein the dispatch step further includes a priority order changing step of dynamically changing the priority order given to the thread. Database management method characterized by.
JP7095274A 1995-04-20 1995-04-20 Device and method for data base management Pending JPH08292956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7095274A JPH08292956A (en) 1995-04-20 1995-04-20 Device and method for data base management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7095274A JPH08292956A (en) 1995-04-20 1995-04-20 Device and method for data base management

Publications (1)

Publication Number Publication Date
JPH08292956A true JPH08292956A (en) 1996-11-05

Family

ID=14133200

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7095274A Pending JPH08292956A (en) 1995-04-20 1995-04-20 Device and method for data base management

Country Status (1)

Country Link
JP (1) JPH08292956A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8117614B2 (en) 2006-05-19 2012-02-14 International Business Machines Corporation Extract CPU time facility
JP2013516008A (en) * 2009-12-23 2013-05-09 アビニシオ テクノロジー エルエルシー Query management

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8117614B2 (en) 2006-05-19 2012-02-14 International Business Machines Corporation Extract CPU time facility
US8516485B2 (en) 2006-05-19 2013-08-20 International Business Machines Corporation Extract CPU time facility
US9047078B2 (en) 2006-05-19 2015-06-02 International Business Machines Corporation Extract CPU time facility
US10572301B2 (en) 2006-05-19 2020-02-25 International Business Machines Corporation Extract CPU time facility
JP2013516008A (en) * 2009-12-23 2013-05-09 アビニシオ テクノロジー エルエルシー Query management

Similar Documents

Publication Publication Date Title
US7316017B1 (en) System and method for allocatiing communications to processors and rescheduling processes in a multiprocessor system
US6668269B1 (en) Computer system process scheduler determining and executing processes based upon changeable priorities
US7926062B2 (en) Interrupt and exception handling for multi-streaming digital processors
JP2004038758A (en) Storage controller, control method for storage controller, and program
WO2009113381A1 (en) Multiprocessor system and method of sharing device among os in multiprocessor system
JPH07141305A (en) Control method for execution of parallel computer
US5511194A (en) Processing system and processing method capable of dynamically replacing job environment
JPH08292956A (en) Device and method for data base management
JP2008225641A (en) Computer system, interrupt control method and program
JP2000259430A (en) Processing method for computer system
JP2001142723A (en) Resource allocating method, computer system, and recording medium
JPH0424828A (en) Multi-task control system
JPH07114518A (en) Task scheduling system of multiprocessor system
JPS63636A (en) Task control system
JPH09160792A (en) Data processor
JP2000194573A (en) System and method for thread control
JPH04335441A (en) Command immediate answer property securing system
JPH0378837A (en) Task control system
JPS63301332A (en) Job executing system
JPH0221329A (en) Report output system
JPH044456A (en) Shared file processing system
JPH08329022A (en) Input/output process load decentralization control system for multiprocessor system
JPH0535506A (en) Program dispatch processing system
JP2002007143A (en) Batch job execution scheduling method by transition scheduler
JPH02197948A (en) File transfer system