JP2004348257A - Resource reservation exclusive processing system - Google Patents
Resource reservation exclusive processing system Download PDFInfo
- Publication number
- JP2004348257A JP2004348257A JP2003142311A JP2003142311A JP2004348257A JP 2004348257 A JP2004348257 A JP 2004348257A JP 2003142311 A JP2003142311 A JP 2003142311A JP 2003142311 A JP2003142311 A JP 2003142311A JP 2004348257 A JP2004348257 A JP 2004348257A
- Authority
- JP
- Japan
- Prior art keywords
- resource
- time slot
- exclusion
- reservation
- processing system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
【0001】
【発明の属する技術分野】
この発明は、会議の予約など複数の端末からオンラインでスケジュールを処理する情報システムであって、同時に複数のスケジュール処理を効率的に行なうためのリソース予約排他処理システムに関するものである。
【0002】
【従来の技術】
従来、例えば会議室の予約システム等のように、複数の端末から同時に同一の会議室に対する予約や会議室の参照を行なうオンラインシステムを構築する場合、データの矛盾を防ぐために対象の会議室に対して排他を獲得し、会議室の予約や参照の処理が終了すると獲得した排他を解放することで複数の処理が同時に実行されても問題が発生しないように同期制御を行なっていた。
【0003】
このように、対象会議室など競合するリソースに対して、複数のアプリケーションがリソースの獲得や解放を行なうことで同時に複数のアプリケーションが動作し、並列に処理が行なえるように動作するものであった。なお、同一のリソースに対して複数のプログラムが同時に動作する並列処理の同期方法などは、例えば特許文献1および非特許文献1等に記述されている。
【0004】
【特許文献1】
特開平4−302679号公報
【非特許文献1】
Lubomir Bic、Alan C.Shaw共著、西川博昭訳「日経BP社 オペレーティングシステムの論理設計」 P51〜P57
【0005】
【発明が解決しようとする課題】
従来の方式では、会議室というリソース単位で排他制御を行なっているため、例えばある会議室の11月に予約を行なう処理と、12月の予約を行なう処理を同時に実行することができず、予約のトランザクション量が大きくなってきた場合、処理効率を上げることができないという課題があった。
【0006】
この発明は上記のような問題点を解決するためになされたもので、排他対象のリソースに時間スロットを設け、排他対象のリソースの時間スロットに対してロックを行なうことで、例えば会議室の11月と12月というように時間が異なる予約を同時に処理させることで処理効率を向上させることを目的とする。
【0007】
【課題を解決するための手段】
この発明に係るリソース予約排他処理システムは、排他対象のリソースに対して、処理時間単位となる所定期間の時間スロットを設ける時間スロット設定手段と、時間スロットに基きリソース獲得要求をするリソース獲得要求手段と、リソースを管理するリソース管理手段と、リソース獲得要求手段により要求されたリソースを獲得処理するリソース獲得処理手段と、リソース獲得処理手段により獲得したリソースに対して予約の排他処理を行う排他実行処理手段と、リソースに対して必要な処理が終了すると当該リソースを開放するリソース解放処理手段とを備えるものである。
【0008】
【発明の実施の形態】
この発明に係るリソース予約排他処理システムの実施の一形態について説明する。
実施の形態1.
この発明の実施の形態1に係るリソース予約排他処理システム100ついて図1〜図10を参照して説明する。なお、図1は実施の形態1に係るリソース予約排他処理システム100の構成を示す図である。図2はこのリソース予約排他処理システム100のリソース獲得処理部のフローチャートであり、図3はリソース解放処理部のフローチャートであり、図4はリソース管理部のフローチャートであり、図5はリソース排他実行処理部のフローチャートである。また、図6はこのリソース予約排他処理システム100の時間スロット管理テーブルであり、図7は時間スロットブロックを示す図である。さらに、図8はこのリソース予約排他処理システム100のキューのエントリを示す図であり、図9は排他エントリを示す図であり、図10はリソース管理情報を示す図である。
【0009】
リソース予約排他処理システム100は図1に示すように、APP(アプリケーションプログラム)11〜APP1n、会議室DB(データベース)2、排他制御部3が備わって構成され、排他制御部3にはリソース獲得処理部4a、リソース解放処理部5a、時間スロットテーブル6、リソース管理部7、リソース管理情報DB8が備わる。時間スロットテーブル6には時間スロット管理テーブル21、リソース排他実行処理部22、時間スロット301〜30nを備える時間スロットブロック24、時間スロット301〜30nに従属する待ちエントリ501〜50nからなる待ち行列401〜40nで構成されている。なお、APP11〜1nを総称する場合はAPP1と記す。他の構成も同様である。
【0010】
APP1は、会議室DB2などを使って、例えば会議室の予約などを行なうアプリケーションプログラムである。会議室DB2は、APP1が実行するときの会議室に関するデータが格納されている。排他制御部3は排他処理を実行し制御するブロックであって、その中のリソース獲得処理部4aはAPP1の指示に従ってリソースを確保し、リソース解放処理部5aは必要な処理が終了すると排他オブジェクトを受け取り、リソースを開放する。また時間スロットテーブル6は、1つのリソースを管理し、リソースの数だけ存在する。リソース管理部7は、時間スロットテーブル6を管理し、リソース管理情報DB8は、時間スロットテーブル6を生成するために必要な情報が格納されたデータベースである。
【0011】
時間スロットテーブル6を構成する時間スロット管理テーブル21は、図6に示すような記述を有し、時間スロット30を管理するために必要な情報が記録されたテーブルである。リソース排他実行処理部22は、実際に予約の排他処理を行う。時間スロットブロック24は図7に示すような記述を有し、複数の時間スロット30を備えたブロックであって、夫々の時間スロット301〜30nには時間スロット獲得を待っている待ちエントリ501〜50nからなる待ち行列401〜40nが備わる。
【0012】
次に動作について説明する。
APP1は、会議室DB2などを使って会議室の予約などを行なうアプリケーションプログラムである。APP1は、複数の利用者から利用されるため複数存在しそれぞれ独立して動作している。APP1は、予約したい時間を会議室をリソースとして開始時間、終了時間を排他制御部3に渡すことでお互い同期して動作する。このような状態を想定し、リソース獲得処理部4a(図2)、リソース解放処理部5a(図3)、リソース管理部7(図4)、リソース排他実行処理部22(図5)のフローチャートに沿って、夫々の動作の流れと相互の関連、作用について順次説明する。
【0013】
まず、リソース獲得処理部4aの動作について説明する。図2に示すようにAPP1からリソースID、開始時間、終了時間の情報を受け取ると(ステップST101)、これらの情報をリソース管理部7に渡し、リソースIDを取得する(ステップST102)。ステップST102においてリソースIDが取得されたか否かを判別し(ステップST103)、取得されていなければ(NO)、エラーメッセージをAPP1に送る(ステップST104)。
【0014】
一方、取得されていれば(YES)、図8に示すキューのエントリ50を作成して該当するスロットIDの待ち行列40の最後に挿入し(ステップST105)、リソース排他実行処理部22に通知する(ステップST106)。その後、リソース排他実行処理部22から排他の獲得の通知を待つ(ステップST107)。獲得できたら図9に示す排他オブジェクトを作成してAPP1に返す(ステップST108)。
【0015】
つぎに、リソース解放処理部5aの動作について説明する。図3に示すようにリソース解放処理部5aはAPP1から排他オブジェクトを受け取ると(ステップST201)、オブジェクトにセットされている時間スロット30から該当するスロットのプログラム識別子をクリアして空き状態にした後(ステップST202)、リソース排他実行処理部22に通知し(ステップST203)、排他エントリを無効にする(ステップST204)。
【0016】
つぎに、リソース管理部7の動作について説明する。図4に示すようにリソース管理部7は図10に示すリソース管理情報を使って時間スロットテーブル6を作成した後(ステップST301)、リソース獲得処理部4aからのリソース確認要求を待ち(ステップST302)、要求がくると該当するリソースの時間スロットテーブル6を調べ、エントリ50の有無を検証する(ステップST303)。ステップST303によるエントリ50の検証から、その有無を判別し(ステップST304)、エントリ50がある場合(YES)はそのスロットIDをリソース獲得処理部4aに返し(ステップST305)、一方、エントリ50がない場合(NO)はエントリなしをリソース獲得処理部4aに返す(ステップST306)。
【0017】
つぎに、リソース排他実行処理部22の動作について説明する。図5に示すようにリソース排他実行処理部22はリソース獲得処理部4aおよびリソース解放処理部5aからの連絡を待ち(ステップST401)、通知があった場合、時間スロット30にある待ち行列40を調べ、全ての時間スロット30を処理したか否かを判別する(ステップST402)。全ての時間スロット30を処理した場合(YES)、ステップST401に戻り動作を繰り返す。処理していない場合(NO)、時間スロットエントリでエントリ50に空きがあり、キューに要求が在るものがあるか否かを判別する(ステップST403)。ない場合(NO)はステップST402に戻り動作を繰り返す。
【0018】
一方、ある場合(YES)、要求キーからキューエントリを取り出し、時間スロット30のエントリ50のAPP識別子をセットし、時間スロット30を使用状態にする(ステップST404)。そして、図8に示すようにキューエントリにセットされている通知用オブジェクトを使ってリソース獲得処理部4aに通知する(ステップST405)。
【0019】
リソース獲得処理部4a、リソース解放処理部5a、リソース管理部7、リソース排他実行処理部22の夫々の動作について個別について説明したが、夫々の装置間の関連について、つぎに概略を説明する。
【0020】
APP1は、リソースが欲しいときにリソース獲得処理部4aにリソース、開始時間および終了時間を渡し(ステップST101(図2))、リソース獲得処理部4aはリソースの獲得ができると排他オブジェクトを受け取る(ステップST107(図2))。APP1は、必要な予約処理が終了すると受け取った排他オブジェクトをリソース解放処理部5aに渡し(ステップST201(図3))、リソースを解放する。リソース獲得処理部4aは、リソースと開始時間、終了時間を貰うとリソース管理部7に該当する時間スロット30を調べてもらい、その時間スロット30の待ち行列40にキューエントリを作成してエントリ50を設定する。
【0021】
キューのエントリ50には、APP1の識別子と通知用のオブジェクトをセットし、リソース排他実行処理部22から獲得要求が通知されるのを待つ(ステップST102(図2))。獲得できたら排他オブジェクトを作成してAPP1に返す。リソース排他実行処理部22は、時間スロット30にある待ち行列40を調べ(ステップST402(図5))、使用されていない時間スロットオブジェクトで待ち行列40にエントリ50があるものを見つけると、待ち行列40からエントリ50を取り出し、時間スロットブロック24のプログラム識別子にAPP1の識別子をセットし時間スロット30を使用状態にする(ステップST404(図5))。そして、キューエントリにセットされている通知用オブジェクトを使ってリソース獲得処理部4aに通知する(ステップST405(図5))。
【0022】
リソース解放処理部5aは、排他オブジェクトを受け取ると(ステップST201(図3))、オブジェクトにセットされている時間スロット30から該当する時間スロット30のプログラム識別子をクリアし空き状態にした後(ステップST202(図3))、リソース排他実行処理部22に通知する(ステップST203(図3))。リソース管理部7は、リソース管理情報の情報を使って時間スロットテーブル6を作成した後(ステップST301(図4))、リソース獲得処理部4aからのスロットサーチ要求を待ち(ステップST302(図4))、要求がくると該当するリソースの時間スロット30を見つけて(ステップST303(図4))そのスロットIDをリソース獲得処理部4aに返す(ステップST305(図4))。以上が排他的にリソースの予約を行う一連の動作である。
【0023】
以上説明したようにこの実施の形態1によれば、リソースに対して使用する時間帯が異なる予約処理を同時に実行することができ、処理性能を向上させることができる。なお、この実施の形態1では、アプリケーションプログラムと排他制御部が同一のプロセスで構成された例を示しているが、通信メッセージを使うことでアプリケーションプログラムと排他制御部が別プロセスで構成されていてもよい。
【0024】
また、時間スロットテーブルを共有メモリにすることでアプリケーションプログラムと排他制御部を同一のプロセスにし、各アプリケーションプログラムが個別のプロセスとして動作する構成にしてもよい。
【0025】
さらに、この実施の形態1ではリソース排他実行処理部は、リソース獲得処理部及びリソース解放処理部からの通知で動作を開始しているが、一定時間経過後で自動的に処理を開始するようにしてもよい。また、リソース排他実行処理部の処理をリソース獲得処理部が行なってもよいものである。
【0026】
実施の形態2.
この発明の実施の形態2に係るリソース予約排他処理システム200について図11および図12を参照して説明する。なお、図11は実施の形態2に係るリソース予約排他処理システム200の構成を示す図であり、図12はリソース予約排他処理システム200のリソース管理部のフローチャートである。
【0027】
この実施の形態2は図11に示すように、上述した実施の形態1に加えてリソース管理部7は、APP1から要求があった時に時間スロットテーブル6を作成する手段を備えていることにおいて異なるものである(リソース管理部7aとする)。他の構成要素とその働きは実施の形態1において説明したことと同様であり、それらの説明は省略する。
【0028】
次にリソース管理部7aの動作について図12のフローチャートに沿って説明する。リソース管理部7aは、まず、APP1からのリソース確認要求を待つ(ステップST501)。該当するリソースの時間スロットテーブル6を調べエントリ50の有無を検証する(ステップST502)。ステップST502の検証でエントリ50があるか否かを判別し(ステップST503)、ない場合は(NO)、さらにリソースIDがあるか否かを判別する(ステップST504)。
【0029】
ステップST504においてリソースIDがない場合(NO)、時間スロットブロック24以外の時間スロットテーブル6を作成し(ステップST505)、ステップST506に進む。一方、リソースIDがある場合(YES)、そのままステップST506に進む。ステップST506において、該当する時間スロット30から開始する時間スロットブロック24を作成し、時間スロット管理テーブル21に追加する(ステップST506)。その後、該当する時間スロットブロック24の最終更新日を更新し、スロットIDをAPP1に返す(ステップST507)。
【0030】
一方、ステップST503において、エントリ50がある場合も、ステップST507において該当する時間スロットブロック24の最終更新日を更新し、スロットIDをAPP1に返す(ステップST507)。ステップST507の後、ステップST501に戻り、処理を繰り返す。
【0031】
以上説明したようにこの実施の形態2によれば、必要なときに必要な量の時間スロットテーブルを作成することが可能となる。
【0032】
実施の形態3.
この発明の実施の形態3に係るリソース予約排他処理システム300について図13を参照して説明する。なお、図13リソース予約排他処理システム300の構成を示す図である。
【0033】
この実施の形態3は、上述した実施の形態1に加えてリソース管理情報DB8の時間幅単位が日固定に対して、年、月、日、時間、分、秒の中から選択して設定することができる手段を備えるものである(リソース管理情報DB8aとする)。他の構成要素とその働きは実施の形態1において説明したことと同様であり、それらの説明は省略する。
【0034】
このリソース管理情報DB8aを備えることで、上述した実施の形態1において、リソース管理部7が時間スロットブロック24を作成する時、設定された時間幅単位で作成することが可能となるものである。
【0035】
以上説明したようにこの実施の形態3によれば、時間スロットの単位を変更することができるため、リソースに最適な時間幅を使うことができ、効率よく同時利用性を向上させることができる。
【0036】
実施の形態4.
この発明の実施の形態4に係るリソース予約排他処理システム400について図14〜図17を参照して説明する。なお、図14はリソース予約排他処理システム400の構成を示す図であり、図15はリソース予約排他処理システム400のリソース獲得処理部のフローチャートであり、図16はリソース予約排他処理システム400のリソース解放処理部のフローチャートであり、図17はリソース予約排他処理システムの排他オブジェクトを示す図である。
【0037】
この実施の形態4は、上述した実施の形態1に加えてリソース獲得処理部4bは、APP1から要求があったリソースの時間幅を時間スロットテーブル6の時間スロット幅に合わせて分割し、リソースの獲得を行なう手段と、リソース解放処理部5bは獲得した複数の時間スロット30を解放する手段とを備えているものである。他の構成要素とその働きは実施の形態1において説明したことと同様であり、それらの説明は省略する。
【0038】
つぎに、リソース獲得処理部4bの動作について、図15のフローチャートに沿って説明する。APP1からリソースID、必要なリソースの開始時間及び終了時間を受け取ると(ステップST601)、該当するリソースの時間スロット管理テーブル21から時間幅、開始時間を使って必要な時間スロット30を複数個調べる(ステップST602)。
【0039】
つぎに、該当する時間スロット24を全て処理したか否かを判別し(ステップST603)、処理していれば(YES)、リソース管理部7にリソースID、開始時間および終了時間を渡し、リソースIDを取得する(ステップST604)。つぎに、ステップST604でリソースIDを取得できたか否かを判別し(ステップST605)、取得できた場合(YES)、キーエントリを作成し、該当するスロットIDの待ち行列40の最後に挿入する(ステップST606)。その後、リソース排他実行処理部22に通知し(ステップST607)、リソース排他実行処理部22からの排他の獲得の通知を待ち(ステップST608)、通知があった場合、ステップST603に戻り、動作を繰り返す。
【0040】
一方、ステップST605で取得できなかった場合(NO)、エラーメッセージをAPP1に通知して(ステップST609)終了する。
また、ステップST603で処理していなければ(NO)、排他エントリを作成し、APP1に通知して(ステップST610)終了する。
【0041】
つぎに、リソース解放処理部5bの動作について、図16のフローチャートに沿って説明する。APP1から図17に示すような排他オブジェクトを受け取ると(ステップST701)、獲得した全ての該当するリソースの時間スロット30のエントリ50から、APP1の識別子を削除する(ステップST702)。つぎにリソース排他実行部22に通知し(ステップST703)、排他エントリを無効にして(ステップST704)終了する。
【0042】
以上説明したようにこの実施の形態4によれば、時間スロット幅に合わせて複数の時間スロットを獲得することでAPPは該当するリソースがどのような時間幅で区切られているかを意識せずにリソースが必要な期間を単に要求するだけでよく、システムを効率良く開発することができる。
【0043】
実施の形態5.
この発明の実施の形態5に係るリソース予約排他処理システム500について図18および図19を参照して説明する。なお、図18は実施の形態5に係るリソース予約排他処理システム500の構成を示す図であり、図19はリソース予約排他処理システム500のリソース監視部のフローチャートである。
【0044】
この実施の形態5は、上述した実施の形態2に加えてリソース監視部23が設けられたものである。他の構成要素とその働きは実施の形態1および実施の形態2において説明したことと同様であり、それらの説明は省略する。
【0045】
リソース監視部23は、定期的に時間スロットテーブル6の時間スロットブロック24を監視し、一定期間使用されない時間スロットブロック24を検知すると該当する時間スロットブロック24を破棄するように動作するものである。
【0046】
つぎに、リソース監視部23の動作について、図19のフローチャートに沿って説明する。まず、一定時間を計時し(ステップST801)、全てのリソースの時間スロットブロック24の最終使用時刻と現在の時刻を調べ、経過時間を検証する(ステップST802)。ステップST802の検証結果に基づき利用エントリがなく、一定時間以上経過しているか否かを判別し(ステップST803)、一定時間以上経過していなければ(NO)、ステップST801に戻って動作を繰り返し、一方、一定時間以上経過していれば(YES)、該当する時間スロットを破棄する(ステップST804)。
【0047】
以上説明したようにこの実施の形態5によれば、使用されない時間スロットブロックが定期的に破棄されることで時間スロットテーブルの大きさを一定量に抑えることができるため、使用メモリ使用量及び該当するメモリスロット検索を最適にすることが可能となる。
【0048】
【発明の効果】
以上のように、この発明によれば、リソースに対して使用する時間帯が異なる予約処理を同時に実行することができ、処理性能を向上させることができる。また、時間スロットテーブルを共有メモリにすることでアプリケーションプログラムと排他制御部を同一のプロセスにし、各アプリケーションプログラムが別々のプロセスとして動作させることが可能となる効果がある。
【図面の簡単な説明】
【図1】この発明の実施の形態1に係るリソース予約排他処理システムの構成を示す図である。
【図2】実施の形態1に係るリソース予約排他処理システムのリソース獲得処理部のフローチャートである。
【図3】実施の形態1に係るリソース予約排他処理システムのリソース解放処理部のフローチャートである。
【図4】実施の形態1に係るリソース予約排他処理システムのリソース管理部のフローチャートである。
【図5】実施の形態1に係るリソース予約排他処理システムのリソース実行処理部のフローチャートである。
【図6】実施の形態1に係るリソース予約排他処理システムの時間スロット管理テーブルである。
【図7】実施の形態1に係るリソース予約排他処理システムの時間スロットブロックを示す図である。
【図8】実施の形態1に係るリソース予約排他処理システムのキューのエントリを示す図である。
【図9】実施の形態1に係るリソース予約排他処理システムの排他エントリを示す図である。
【図10】実施の形態1に係るリソース予約排他処理システムのリソース管理情報を示す図である。
【図11】この発明の実施の形態2に係るリソース予約排他処理システムの構成を示す図である。
【図12】実施の形態2に係るリソース予約排他処理システムのリソース管理部のフローチャートである。
【図13】この発明の実施の形態3に係るリソース予約排他処理システムの構成を示す図である。
【図14】この発明の実施の形態4に係るリソース予約排他処理システムの構成を示す図である。
【図15】実施の形態4に係るリソース予約排他処理システムのリソース獲得処理部のフローチャートである。
【図16】実施の形態4に係るリソース予約排他処理システムのリソース解放処理部のフローチャートである。
【図17】実施の形態4に係るリソース予約排他処理システムの排他オブジェクトを示す図である。
【図18】この発明の実施の形態5に係るリソース予約排他処理システムの構成を示す図である。
【図19】実施の形態5に係るリソース予約排他処理システムのリソース監視部のフローチャートである。
【符号の説明】
1,11〜1n APP、2 会議室DB、3 排他制御部、4a,4b リソース獲得処理部(リソース獲得処理手段)、5a,5b リソース解放処理部(リソース解放処理手段)、6 時間スロットテーブル、7,7a リソース管理部(リソース管理手段)、8,8a リソース管理情報DB、21 時間スロット管理テーブル、22 リソース排他実行処理部(排他実行処理手段)、23リソース監視部、24 時間スロットブロック、30,301〜30n 時間スロット、40,401〜40n 待ち行列、50,501〜50n 待ちエントリ、100,200,300,400,500 リソース予約排他処理システム。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an information system for processing a schedule online from a plurality of terminals, such as a conference reservation, and to a resource reservation exclusive processing system for efficiently performing a plurality of schedule processes at the same time.
[0002]
[Prior art]
Conventionally, for example, when an online system for making a reservation for the same conference room and referring to the conference room from a plurality of terminals simultaneously, such as a conference room reservation system, is constructed, a target conference room is required to prevent data inconsistency. In this case, the exclusive control is acquired, and when the process of reserving or referring to the conference room is completed, the acquired exclusive is released, so that the synchronous control is performed so that no problem occurs even if a plurality of processes are executed simultaneously.
[0003]
As described above, when a plurality of applications acquire or release a resource for a competing resource such as a target conference room, the plurality of applications operate at the same time, and operate so that the processing can be performed in parallel. . A method of synchronizing parallel processing in which a plurality of programs operate simultaneously on the same resource is described in, for example,
[0004]
[Patent Document 1]
JP-A-4-302679 [Non-Patent Document 1]
Lubomir Bic, Alan C.A. Shaw co-author, translated by Hiroaki Nishikawa, "Logical Design of Operating System, Nikkei BP"
[0005]
[Problems to be solved by the invention]
In the conventional method, since exclusive control is performed on a resource basis called a conference room, for example, a process of making a reservation for a certain conference room in November and a process of making a reservation for December cannot be performed simultaneously. However, when the transaction volume has increased, there has been a problem that the processing efficiency cannot be increased.
[0006]
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. A time slot is provided for a resource to be excluded and a time slot of the resource to be excluded is locked, so that, for example, 11 An object of the present invention is to improve processing efficiency by simultaneously processing reservations having different times such as month and December.
[0007]
[Means for Solving the Problems]
A resource reservation exclusion processing system according to the present invention includes a time slot setting means for providing a time slot of a predetermined period as a processing time unit for a resource to be excluded, and a resource acquisition request means for making a resource acquisition request based on the time slot. And resource management means for managing resources; resource acquisition processing means for acquiring and processing resources requested by resource acquisition request means; and exclusive execution processing for performing exclusive processing of reservation for the resources acquired by the resource acquisition processing means. Means and resource release processing means for releasing the resource when necessary processing for the resource is completed.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
An embodiment of a resource reservation exclusion processing system according to the present invention will be described.
A resource reservation
[0009]
As shown in FIG. 1, the resource reservation
[0010]
APP1 is an application program that uses the conference room DB2 or the like to make reservations for a conference room, for example. The conference room DB2 stores data relating to the conference room when the APP1 executes. The
[0011]
The time slot management table 21 constituting the time slot table 6 has a description as shown in FIG. 6, and is a table in which information necessary for managing the time slot 30 is recorded. The resource exclusion
[0012]
Next, the operation will be described.
APP1 is an application program for performing reservation of a conference room using the conference room DB2 and the like. Since the
[0013]
First, the operation of the resource
[0014]
On the other hand, if it has been acquired (YES), the entry 50 of the queue shown in FIG. 8 is created and inserted at the end of the queue 40 of the corresponding slot ID (step ST105), and the resource exclusion
[0015]
Next, the operation of the resource
[0016]
Next, the operation of the
[0017]
Next, the operation of the resource exclusion
[0018]
On the other hand, if there is (YES), the queue entry is extracted from the request key, the APP identifier of the entry 50 of the time slot 30 is set, and the time slot 30 is set to the use state (step ST404). Then, as shown in FIG. 8, the resource
[0019]
Each operation of the resource
[0020]
The
[0021]
The identifier of APP1 and the object for notification are set in the entry 50 of the queue, and the system waits for the acquisition request from the resource
[0022]
Upon receiving the exclusive object (step ST201 (FIG. 3)), the resource
[0023]
As described above, according to the first embodiment, it is possible to simultaneously execute the reservation processes using different time zones for the resources, and to improve the processing performance. Although the first embodiment shows an example in which the application program and the exclusion control unit are configured by the same process, the application program and the exclusion control unit are configured by different processes by using a communication message. Is also good.
[0024]
Further, the application program and the exclusive control unit may be made the same process by using the time slot table as a shared memory, and each application program may operate as an individual process.
[0025]
Further, in the first embodiment, the resource exclusion execution processing unit starts the operation in response to the notification from the resource acquisition processing unit and the resource release processing unit. You may. Further, the processing of the resource exclusion execution processing unit may be performed by the resource acquisition processing unit.
[0026]
A resource reservation
[0027]
As shown in FIG. 11, the second embodiment is different from the first embodiment in that the
[0028]
Next, the operation of the
[0029]
If there is no resource ID in step ST504 (NO), a time slot table 6 other than the
[0030]
On the other hand, if there is an entry 50 in step ST503, the last update date of the corresponding
[0031]
As described above, according to the second embodiment, it is possible to create a necessary amount of time slot table when necessary.
[0032]
A resource reservation
[0033]
In the third embodiment, in addition to the first embodiment, the time width unit of the resource
[0034]
The provision of the resource management information DB 8a enables the
[0035]
As described above, according to the third embodiment, the unit of the time slot can be changed, so that the optimal time width can be used for the resource, and the simultaneous availability can be efficiently improved.
[0036]
Embodiment 4 FIG.
A resource reservation
[0037]
In the fourth embodiment, in addition to the first embodiment, the resource acquisition processing unit 4b divides the time width of the resource requested by the
[0038]
Next, the operation of the resource acquisition processing unit 4b will be described with reference to the flowchart of FIG. When the resource ID and the required resource start time and end time are received from the APP 1 (step ST601), a plurality of required time slots 30 are checked from the time slot management table 21 of the corresponding resource using the time width and the start time (step ST601). Step ST602).
[0039]
Next, it is determined whether or not all the
[0040]
On the other hand, if the data could not be obtained in step ST605 (NO), an error message is notified to APP1 (step ST609), and the processing ends.
If the processing has not been performed in step ST603 (NO), an exclusive entry is created and notified to APP1 (step ST610), and the processing ends.
[0041]
Next, the operation of the resource release processing unit 5b will be described with reference to the flowchart of FIG. When an exclusive object as shown in FIG. 17 is received from APP1 (step ST701), the identifier of APP1 is deleted from the entries 50 of the time slots 30 of all the obtained resources (step ST702). Next, the resource
[0042]
As described above, according to the fourth embodiment, by acquiring a plurality of time slots in accordance with the time slot width, the APP does not need to be aware of what time width the corresponding resource is divided into. The resource only needs to request the required period, and the system can be efficiently developed.
[0043]
Embodiment 5 FIG.
A resource reservation
[0044]
In the fifth embodiment, a resource monitoring unit 23 is provided in addition to the components of the second embodiment. Other components and their functions are the same as those described in the first and second embodiments, and description thereof will be omitted.
[0045]
The resource monitoring unit 23 operates to periodically monitor the
[0046]
Next, the operation of the resource monitoring unit 23 will be described with reference to the flowchart of FIG. First, a certain time is measured (step ST801), the last use time and the current time of the
[0047]
As described above, according to the fifth embodiment, the size of the time slot table can be suppressed to a certain amount by periodically discarding the unused time slot blocks. This makes it possible to optimize the memory slot search to be performed.
[0048]
【The invention's effect】
As described above, according to the present invention, it is possible to simultaneously execute reservation processes using different time zones for resources, and to improve processing performance. Further, by using the time slot table as a shared memory, the application program and the exclusive control unit can be made the same process, and each application program can operate as a separate process.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of a resource reservation exclusion processing system according to
FIG. 2 is a flowchart of a resource acquisition processing unit of the resource reservation exclusion processing system according to the first embodiment.
FIG. 3 is a flowchart of a resource release processing unit of the resource reservation exclusion processing system according to the first embodiment.
FIG. 4 is a flowchart of a resource management unit of the resource reservation exclusion processing system according to the first embodiment.
FIG. 5 is a flowchart of a resource execution processing unit of the resource reservation exclusion processing system according to the first embodiment.
FIG. 6 is a time slot management table of the resource reservation exclusive processing system according to the first embodiment.
FIG. 7 is a diagram showing a time slot block of the resource reservation exclusive processing system according to the first embodiment.
FIG. 8 is a diagram showing queue entries of the resource reservation exclusive processing system according to the first embodiment;
FIG. 9 is a diagram showing an exclusive entry of the resource reservation exclusive processing system according to the first embodiment.
FIG. 10 is a diagram showing resource management information of the resource reservation exclusion processing system according to the first embodiment.
FIG. 11 is a diagram showing a configuration of a resource reservation exclusion processing system according to
FIG. 12 is a flowchart of a resource management unit of the resource reservation exclusion processing system according to the second embodiment.
FIG. 13 is a diagram showing a configuration of a resource reservation exclusion processing system according to
FIG. 14 is a diagram showing a configuration of a resource reservation exclusion processing system according to Embodiment 4 of the present invention.
FIG. 15 is a flowchart of a resource acquisition processing unit of the resource reservation exclusion processing system according to the fourth embodiment.
FIG. 16 is a flowchart of a resource release processing unit of the resource reservation exclusion processing system according to the fourth embodiment.
FIG. 17 is a diagram showing an exclusive object of the resource reservation exclusive processing system according to the fourth embodiment.
FIG. 18 is a diagram showing a configuration of a resource reservation exclusion processing system according to Embodiment 5 of the present invention.
FIG. 19 is a flowchart of a resource monitoring unit of the resource reservation exclusion processing system according to the fifth embodiment.
[Explanation of symbols]
1, 11-1n APP, 2 conference room DB, 3 exclusive control unit, 4a, 4b resource acquisition processing unit (resource acquisition processing means), 5a, 5b resource release processing unit (resource release processing means), 6 time slot table, 7, 7a resource management unit (resource management unit), 8, 8a resource management information DB, 21 time slot management table, 22 resource exclusive execution processing unit (exclusive execution processing unit), 23 resource monitoring unit, 24 time slot block, 30 , 301 to 30n time slot, 40, 401 to 40n queue, 50, 501 to 50n queue entry, 100, 200, 300, 400, 500 resource reservation exclusive processing system.
Claims (5)
前記時間スロットに基きリソース獲得要求をするリソース獲得要求手段と、
前記リソースを管理するリソース管理手段と、
前記リソース獲得要求手段により要求されたリソースを獲得処理するリソース獲得処理手段と、
前記リソース獲得処理手段により獲得したリソースに対して予約の排他処理を行う排他実行処理手段と、
前記リソースに対して必要な処理が終了すると当該リソースを開放するリソース解放処理手段とを備えるリソース予約排他処理システム。Time slot setting means for providing a time slot of a predetermined period as a processing time unit for the resource to be excluded
Resource acquisition request means for making a resource acquisition request based on the time slot;
Resource management means for managing the resources;
Resource acquisition processing means for acquiring and processing the resource requested by the resource acquisition request means;
Exclusive execution processing means for performing exclusive processing of reservation on the resource acquired by the resource acquisition processing means;
A resource reservation exclusion processing system comprising: a resource release processing unit that releases a resource upon completion of a process required for the resource.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003142311A JP2004348257A (en) | 2003-05-20 | 2003-05-20 | Resource reservation exclusive processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003142311A JP2004348257A (en) | 2003-05-20 | 2003-05-20 | Resource reservation exclusive processing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004348257A true JP2004348257A (en) | 2004-12-09 |
Family
ID=33530442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003142311A Pending JP2004348257A (en) | 2003-05-20 | 2003-05-20 | Resource reservation exclusive processing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004348257A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009009240A (en) * | 2007-06-26 | 2009-01-15 | Canon Inc | Document management method and apparatus therefor |
CN103426029A (en) * | 2012-05-24 | 2013-12-04 | 株式会社日立制作所 | Reserve information control device, reserve information control device and reserve information control method |
-
2003
- 2003-05-20 JP JP2003142311A patent/JP2004348257A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009009240A (en) * | 2007-06-26 | 2009-01-15 | Canon Inc | Document management method and apparatus therefor |
CN103426029A (en) * | 2012-05-24 | 2013-12-04 | 株式会社日立制作所 | Reserve information control device, reserve information control device and reserve information control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3562123B1 (en) | Node device running method, working state switching device, node device, and medium | |
Dou et al. | Misco: a mapreduce framework for mobile systems | |
JP4224126B1 (en) | Database management server device, database management system, database management method, and database management program | |
CA2767667C (en) | Fault tolerant batch processing | |
JP4371321B2 (en) | NFS server, NFS server control program, and NFS server control method | |
CN103207867A (en) | Method for processing data blocks, method for initiating recovery operation and nodes | |
US20170228412A1 (en) | Certificate based expiration of file system objects | |
WO2012024937A1 (en) | Method and system for realizing parallel computing | |
US11968669B2 (en) | Scheduling database system | |
JP5331050B2 (en) | Data synchronization system, data synchronization method, information processing apparatus, information processing method, and program | |
JP2004348257A (en) | Resource reservation exclusive processing system | |
Singh et al. | A priority heuristic policy in mobile distributed real-time database system | |
Bender et al. | Scheduling algorithms for procrastinators | |
TW528951B (en) | Data communication scheduling system and the method thereof | |
KR100798928B1 (en) | Method and apparatus for providing software by functional units in a software streaming system | |
JP6000608B2 (en) | Replication execution unit | |
JP6658123B2 (en) | Parallel processing device, parallel processing method and program | |
JP5857698B2 (en) | Task parallel processing method, apparatus and program thereof, and program generation method, apparatus and program thereof | |
JP6639754B2 (en) | Communication device, operation procedure management method, and operation procedure management program | |
JP5537917B2 (en) | Management device, data processing control device, management method, data processing control method, and program | |
JP2004342039A (en) | User information synchronizing system | |
JP5240861B2 (en) | Control device, data migration system, data migration method and program | |
CN111367751B (en) | End-to-end data monitoring method and device | |
JP2007299319A (en) | Information processor and process-to-process communication method | |
WO2013005370A1 (en) | Distributed execution system and distributed program execution method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060113 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20071022 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20071022 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20071022 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080603 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080610 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080708 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20080709 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080819 |