JP2011081813A - Method for managing resources - Google Patents

Method for managing resources Download PDF

Info

Publication number
JP2011081813A
JP2011081813A JP2010236214A JP2010236214A JP2011081813A JP 2011081813 A JP2011081813 A JP 2011081813A JP 2010236214 A JP2010236214 A JP 2010236214A JP 2010236214 A JP2010236214 A JP 2010236214A JP 2011081813 A JP2011081813 A JP 2011081813A
Authority
JP
Japan
Prior art keywords
resource
function
request
unit
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010236214A
Other languages
Japanese (ja)
Other versions
JP5029753B2 (en
Inventor
Masahiro Matsuda
政博 松田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2010236214A priority Critical patent/JP5029753B2/en
Publication of JP2011081813A publication Critical patent/JP2011081813A/en
Application granted granted Critical
Publication of JP5029753B2 publication Critical patent/JP5029753B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimiles In General (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To easily manage the assignment of resources to be used by a function based on the priority associated with the function while collectively securing or releasing all resources to be used by the function in consideration for multiple-value resources. <P>SOLUTION: A resource management 30 executes resource assignment in response to a request from an application 38. A multi-resource request 31 has, with respect to requests for a multi-resource 33 required to be used by the application 38, a state of requests for the multi-resource 33, or a state of the multi-resource request 31, and executes processing associated with state transition. The multi-resource 33 bundles a plurality of resources 37 to be used by the application 38 and executes collective securing or collective release of bundled binary resources 34 and multiple-value resources 35. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、1個又は複数個のリソースを複数個の機能が共通に使用する多機能複合装置
、リソース管理方法及びプログラムに関する。特に、機能が使用する全てのリソースを一
括して確保又は解放しながら、機能が使用するリソースの割り当てを管理する多機能複合
装置、リソース管理方法及びプログラムに関する。
The present invention relates to a multi-function composite apparatus, a resource management method, and a program in which a plurality of functions commonly use one or a plurality of resources. In particular, the present invention relates to a multi-function composite apparatus, a resource management method, and a program for managing allocation of resources used by a function while collectively securing or releasing all resources used by the function.

装置を設置するスペースを削減するために、複数の機能を一つの装置に組み込んだ多機
能複合装置が開発されている。また、多機能複合装置に組み込まれた複数の機能の中には
、処理実行中に使用するリソースが他の機能と競合する機能が存在しているため、各機能
が実行時に確保すべきリソースを割り当てるリソース管理は複雑であった。
In order to reduce the space for installing the device, a multi-function composite device in which a plurality of functions are incorporated into one device has been developed. Also, among the multiple functions built into the multi-function composite device, there are functions that conflict with other functions for resources used during processing execution. The resource management to allocate was complicated.

例えば、POSシステムに使用されているPOS用プリンタには、ロール紙印刷機能、
単票用紙印刷機能、ドロワ機能、画像読み取り機能等の複数の機能が組み込まれている。
ここで、処理実行中に使用するリソースは、ロール紙印刷機能、単票用紙印刷機能、及び
画像読み取り機能の場合は、紙経路及び電源であり、ドロワ機能の場合は、電源である。
For example, the POS printer used in the POS system includes a roll paper printing function,
A plurality of functions such as a cut sheet printing function, a drawer function, and an image reading function are incorporated.
Here, the resources used during the execution of processing are the paper path and power supply for the roll paper printing function, cut sheet printing function, and image reading function, and the power supply for the drawer function.

従って、POS用プリンタにおいて、ロール紙印刷機能を実行中にドロワ機能を実行さ
せたい場合、ドロワ機能の実行が待たされてしまう。また、ロール紙印刷機能を実行中に
、単票用紙印刷機能、ドロワ機能及び画像読み取り機能を実行させたい場合は、各機能へ
のリソースの割り当ては複雑になる。
Accordingly, in the POS printer, when it is desired to execute the drawer function while the roll paper printing function is being executed, execution of the drawer function is awaited. Further, when executing the cut sheet printing function, the drawer function, and the image reading function while executing the roll paper printing function, the allocation of resources to each function becomes complicated.

そこで、リソース管理の複雑さを軽減した多機能複合装置が提案されている。非特許文
献1では、機能が使用する全てのリソースを一括して管理し、機能からのリソース要求に
基づいて機能が使用する全てのリソースを一括して確保又は解放する、機能に対応付けら
れたマルチリソースオブジェクトを利用して、競合するリソースの割り当てを調整するリ
ソース管理が提案されている。
In view of this, a multi-function composite apparatus that reduces the complexity of resource management has been proposed. In Non-Patent Document 1, all resources used by a function are collectively managed, and all resources used by the function are collectively reserved or released based on a resource request from the function. Resource management has been proposed that uses multi-resource objects to coordinate the allocation of competing resources.

ブルース・パウエル・ダグラス(BRUCE POWEL DOUGLASS)著,「リアルタイム・デザイン・パターンズ(REAL−TIME DESIGN PATTERNS)」,(米国),アジソンーウェスリ・パブ(Addison―Wesley Pub),2002年9月23日,p.338−345By Bruce Powell Douglas, “Real-Time Design Patterns” (USA), Addison-Wesley Pub, September 23, 2002 , P. 338-345

しかしながら、非特許文献1の提案では、リソースはすべて、機能によって使用されて
いるか否かの2値の状態によって表される2値リソースであるために、あるリソースを競
合する複数の機能を実行させる場合、複数の機能が実行されてもリソースの合計容量が許
容範囲以内であっても、1つの機能しか実行できないという問題点があった。例えば、P
OSプリンタの単票用紙印刷機能とドロワ機能を実行させるとき、単票用紙印刷機能は実
行時に電源の全容量の30%を使用し、ドロワ機能は実行時に電源の全容量の50%を使
用する場合であっても、一方の機能しか実行させることができなかった。
However, in the proposal of Non-Patent Document 1, since all resources are binary resources represented by a binary state indicating whether or not they are used by a function, a plurality of functions competing for a certain resource are executed. In this case, there is a problem that even if a plurality of functions are executed, only one function can be executed even if the total capacity of the resources is within an allowable range. For example, P
When executing the cut sheet printing function and the drawer function of the OS printer, the cut sheet printing function uses 30% of the total capacity of the power supply at the time of execution, and the drawer function uses 50% of the total capacity of the power supply at the time of execution. Even in that case, only one function could be executed.

また、優先的に実行させたい機能であっても、リソースを競合している別の機能が実行
されている場合は、実行されている別の機能が終了するまで、機能の実行を待たなければ
ならないという問題点があった。例えば、POSプリンタのロール紙印刷機能を実行中に
、ドロワ機能を実行させたい場合、ドロワ機能は、ロール紙印刷機能よりも優先して実行
したい機能であるが、ロール紙印刷機能の実行が終了するまで、ドロワ機能の実行が待た
されていた。
Also, even if a function is to be executed preferentially, if another function that is competing for resources is being executed, it must wait until the other function being executed ends. There was a problem of not becoming. For example, if you want to execute the drawer function while executing the roll paper printing function of the POS printer, the drawer function is a function that you want to execute in preference to the roll paper printing function, but the execution of the roll paper printing function is completed. Until then, the execution of the drawer function was awaited.

本発明は、以上のような問題点を解決するためになされたもので、多値リソースを考慮
して、機能が使用する全てのリソースを一括して確保又は解放しながら、機能に対応付け
られた優先度に基づいて、機能が使用するリソースの割り当てを容易に管理する多機能複
合装置、リソース管理方法及びプログラムを提供することを目的とする。
The present invention has been made in order to solve the above-described problems. In consideration of multi-value resources, all resources used by the function are allocated or allocated to the function while being secured or released. It is an object of the present invention to provide a multi-function composite apparatus, a resource management method, and a program that easily manage allocation of resources used by functions based on priorities.

上述した従来の問題点を解決すべく下記の発明を提供する。
本発明の第1の態様にかかる多機能複合装置は、1個又は複数個のリソースを複数個の
機能が共通に使用する多機能複合装置であって、前記リソース毎に、当該リソースの使用
状況を判定するリソース部と、前記機能が使用する全ての前記リソース毎に対応付けられ
る前記リソース部に対する確保または解放を、一括して実行する、当該機能に関連付けら
れたマルチリソース部と、前記マルチリソース部を管理するマルチリソース管理部と、前
記機能からの要求を受け付けたときに、前記機能毎に予め設定されている優先度に基づい
て、前記リソースの割り当てを実行するリソース管理部と、前記マルチリソース部への要
求状態を示す状態情報を有し、前記リソース管理部から要求された当該マルチリソース部
への要求処理を当該マルチリソース部へ依頼する、当該マルチリソース部に対応付けられ
たマルチリソース要求部と、を備えていることを特徴とする。
The following invention is provided to solve the above-mentioned conventional problems.
The multi-function composite apparatus according to the first aspect of the present invention is a multi-function composite apparatus in which a plurality of functions commonly use one or a plurality of resources, and the usage status of the resource for each resource. A multi-resource unit associated with the function that collectively executes reservation or release for the resource unit associated with each of the resources used by the function, and the multi-resource. A multi-resource management unit that manages a unit, a resource management unit that executes allocation of the resource based on a priority set in advance for each function when a request from the function is received; Status information indicating a request status to the resource unit, and request processing to the multi-resource unit requested by the resource management unit Requests the scan unit, characterized in that it and a multi-resource request unit associated with the multi-resource unit.

このような構成であれば、多機能複合装置は、リソース部によって、リソース毎に、当
該リソースの使用状況が判定される。また、当該機能に関連付けられたマルチリソース部
によって、機能が使用する全てのリソース毎に対応付けられるリソース部に対する確保ま
たは解放が、一括して実行される。また、マルチリソース管理部によって、マルチリソー
ス部が管理される。また、リソース管理部によって、機能からの要求を受け付けたときに
、機能毎に予め設定されている優先度に基づいて、リソースの割り当てが実行される。ま
た、マルチリソース部への要求状態を示す状態情報を有した、当該マルチリソース部に対
応付けられるマルチリソース要求部によって、リソース管理部から要求された当該マルチ
リソース部への要求処理が当該マルチリソース部へ依頼される。
With such a configuration, in the multi-function composite device, the resource usage state is determined for each resource by the resource unit. In addition, the multi-resource unit associated with the function collectively secures or releases the resource unit associated with every resource used by the function. In addition, the multi-resource unit is managed by the multi-resource management unit. Further, when a request from a function is received by the resource management unit, resource allocation is executed based on a priority set in advance for each function. The request processing to the multi-resource unit requested from the resource management unit by the multi-resource request unit associated with the multi-resource unit having state information indicating the request state to the multi-resource unit Requested to the department.

これにより、機能が使用する全てのリソースを一括して確保又は解放しながら、機能に
対応付けられた優先度に基づいて、機能が使用するリソースの割り当てを容易に管理する
ことが可能である。また、リソースが競合する優先度の低い機能が実行中であっても、優
先度の高い機能を実行させることが可能である。
Accordingly, it is possible to easily manage allocation of resources used by a function based on the priority associated with the function while securing or releasing all the resources used by the function collectively. In addition, even if a low-priority function that competes for resources is being executed, a high-priority function can be executed.

また、多機能複合装置に新規機能を組み込む場合に、新規機能と既存の機能とがリソー
スを競合する場合の処理を考慮する必要がなく、新規機能を容易に開発することが可能と
なる。従って、開発期間を削減するとともに、開発コストを削減することが可能となる。
In addition, when a new function is incorporated into the multi-function composite device, it is not necessary to consider processing when the new function and the existing function compete for resources, and the new function can be easily developed. Therefore, the development period can be reduced and the development cost can be reduced.

本発明の他の態様にかかる多機能複合装置は、上述した本発明の態様にかかる多機能複
合装置における前記リソースが、前記機能によって確保されているか否かの2値の状態に
よって表される2値リソース、及び前記リソースの全容量に対する前記機能によって確保
される割合によって表される多値リソースであり、前記2値リソースに対する前記リソー
ス部が2値リソース部であり、前記多値リソースに対する前記リソース部が多値リソース
部であることを特徴とする。
The multi-function composite device according to another aspect of the present invention is represented by a binary state 2 indicating whether the resource in the multi-function composite device according to the above-described aspect of the present invention is secured by the function. A multi-value resource represented by a value resource and a ratio secured by the function with respect to the total capacity of the resource, the resource part for the binary resource is a binary resource part, and the resource for the multi-value resource The part is a multi-value resource part.

これにより、電源のような多値リソースに対して、そのリソースの容量の許容範囲以内
であれば、リソースを競合する複数の機能を実行させることが可能となる。従って、多機
能複合装置が実行する全体の処理時間を短縮させることが可能となる。例えば、POSプ
リンタの単票用紙印刷機能とドロワ機能を実行させるとき、単票用紙印刷機能は実行時に
電源の全容量の30%を使用し、ドロワ機能は実行時に電源の全容量の50%を使用する
場合に、単票用紙印刷機能とドロワ機能を同時に実行させることが可能となり、会計する
消費者の待ち時間を削減することが可能となる。
As a result, a multi-value resource such as a power source can execute a plurality of functions competing for resources as long as the resource capacity is within an allowable range. Accordingly, it is possible to shorten the entire processing time executed by the multi-function composite apparatus. For example, when executing the cut sheet printing function and the drawer function of the POS printer, the cut sheet printing function uses 30% of the total capacity of the power supply at the time of execution, and the drawer function uses 50% of the total capacity of the power supply at the time of execution. When used, it is possible to execute the cut sheet printing function and the drawer function at the same time, thereby reducing the waiting time of the consumer who accounts.

本発明の他の態様にかかる多機能複合装置は、上述した本発明の態様にかかる多機能複
合装置の前記リソース管理部が、前記機能から、当該機能が使用する全ての前記リソース
の解放要求を受け付けたときに、当該機能が使用している全ての当該リソースの解放を、
当該機能に関連した前記マルチリソース要求部へ要求するリソース解放部と、前記機能か
ら、当該機能が使用する全ての前記リソースの一時解放許可要求を受け付けたときに、当
該機能が使用している全ての当該リソースの一時的な解放を、当該機能に関連した前記マ
ルチリソース要求部へ要求するリソース一時解放部と、前記機能から、当該機能が使用す
る全ての前記リソースの確保要求を受け付けたときに、当該機能の前記優先度に基づいて
、当該優先度と同じ優先度の異なる1個または複数個の前記機能に関連した前記マルチリ
ソース要求部への要求の中で、最後に当該機能に要求された全ての前記リソースが割り当
てられるように、当該機能に関連した前記マルチリソース要求部への要求順を調整して、
処理要求キューに追加し、前記処理要求キューの要求順に従って、リソース確保要求を前
記マルチリソース要求部へ依頼し、前記リソース解放部または前記リソース一時解放部の
前記マルチリソース要求部への依頼によって、前記リソースが解放されたときに、前記処
理要求キューの要求順に従って、リソース確保要求を前記マルチリソース要求部へ依頼す
るリソース確保部と、を備えていることを特徴とする。
In the multi-function composite device according to another aspect of the present invention, the resource management unit of the multi-function composite device according to the above-described aspect of the present invention issues a release request for all the resources used by the function from the function. When accepting, release all the resources used by the function,
The resource release unit that requests the multi-resource request unit related to the function, and all the functions used by the function when receiving a temporary release permission request for all the resources used by the function from the function A resource temporary release unit that requests the multi-resource request unit related to the function to temporarily release the resource, and a request to secure all the resources used by the function from the function Based on the priority of the function, the request to the multi-resource request unit related to one or a plurality of the functions having the same priority as the priority is finally requested to the function. Adjusting the order of requests to the multi-resource requesting unit related to the function so that all the resources are allocated,
Add to the processing request queue, according to the request order of the processing request queue, request a resource securing request to the multi-resource request unit, by requesting the multi-resource request unit of the resource release unit or the resource temporary release unit, And a resource securing unit that requests a resource securing request to the multi-resource requesting unit according to the order of requests in the processing request queue when the resource is released.

このような構成であれば、リソース管理部は、機能から、当該機能が使用する全てのリ
ソースの解放要求を受け付けたときに、リソース解放部によって、当該機能が使用してい
る全ての当該リソースの解放が、当該機能に関連したマルチリソース要求部へ要求される
。また、機能から、当該機能が使用する全てのリソースの一時解放許可要求を受け付けた
ときに、リソース一時解放部によって、当該機能が使用している全ての当該リソースの一
時的な解放が、当該機能に関連したマルチリソース要求部へ要求される。また、機能から
、当該機能が使用する全てのリソースの確保要求を受け付けたときに、リソース確保部に
よって、当該機能の優先度に基づいて、当該優先度と同じ優先度の異なる1個または複数
個の機能に関連したマルチリソース要求部への要求の中で、最後に当該機能に要求された
全てのリソースが割り当てられるように、当該機能に関連したマルチリソース要求部への
要求順が調整されて、処理要求キューに追加され、処理要求キューの要求順に従って、リ
ソース確保要求がマルチリソース要求部へ依頼される。また、リソース解放部またはリソ
ース一時解放部のマルチリソース要求部への依頼によって、リソースが解放されたときに
、リソース確保部によって、処理要求キューの要求順に従って、リソース確保要求がマル
チリソース要求部へ依頼される。
With such a configuration, when the resource management unit receives a release request for all the resources used by the function from the function, the resource release unit sets all the resources used by the function by the resource release unit. Release is requested to the multi-resource request unit associated with the function. In addition, when a temporary release permission request for all resources used by the function is received from the function, the resource temporary release unit temporarily releases all the resources used by the function. Is requested to the multi-resource request section related to In addition, when a request for securing all resources used by the function is received from the function, the resource securing unit, based on the priority of the function, one or more of the same priority as the priority The order of requests to the multi-resource request unit related to the function is adjusted so that all the resources requested for the function in the end are allocated in the request to the multi-resource request unit related to the function of Are added to the processing request queue, and a resource securing request is requested to the multi-resource requesting unit in accordance with the request order of the processing request queue. In addition, when a resource is released by a request to the multi-resource requesting unit of the resource releasing unit or the resource temporary releasing unit, the resource securing unit sends the resource securing request to the multi-resource requesting unit according to the request order of the processing request queue. Requested.

これにより、機能が使用する全てのリソースを一括して確保又は解放しながら、機能に
対応付けられた優先度に基づいて、機能が使用するリソースの割り当てを容易に管理する
ことが可能である。また、リソースが競合する優先度の低い機能が実行中であっても、優
先度の高い機能を実行させることが可能である。
Accordingly, it is possible to easily manage allocation of resources used by a function based on the priority associated with the function while securing or releasing all the resources used by the function collectively. In addition, even if a low-priority function that competes for resources is being executed, a high-priority function can be executed.

また、多機能複合装置に新規機能を組み込む場合に、新規機能と既存の機能とがリソー
スを競合する場合の処理を考慮する必要がなく、新規機能を容易に開発することが可能と
なる。従って、開発期間を削減するとともに、開発コストを削減することが可能となる。
また、多値リソースに対して、そのリソースの容量の許容範囲以内であれば、リソースを
競合する複数の機能を実行させることが可能となる。従って、多機能複合装置が実行する
全体の処理時間を短縮させることが可能となる。
In addition, when a new function is incorporated into the multi-function composite device, it is not necessary to consider processing when the new function and the existing function compete for resources, and the new function can be easily developed. Therefore, the development period can be reduced and the development cost can be reduced.
In addition, if a multi-value resource is within an allowable range of the capacity of the resource, a plurality of functions that compete for the resource can be executed. Accordingly, it is possible to reduce the overall processing time executed by the multifunctional multifunction apparatus.

本発明の他の態様にかかる多機能複合装置は、上述した本発明の態様にかかる多機能複
合装置の前記リソース確保部が、前記マルチリソース要求部へ依頼したリソース確保要求
が失敗したときに、当該マルチリソース要求部に関連した前記機能の前記優先度、使用す
る全ての前記リソースを既に確保している1個または複数個の前記機能の前記優先度、及
び所定の一時解放候補検索ルールに基づいて、使用する全ての前記リソースを確保してい
る1個または複数個の前記機能の中から、使用する全ての前記リソースを一時的に解放し
てもらう一時解放候補機能を検索し、検索した前記一時解放候補機能に対して、使用する
全ての前記リソースを一時的に解放してもらうように要求する一時解放要求部を備えてい
ることを特徴とする。
The multi-function composite device according to another aspect of the present invention is configured such that when the resource securing request requested by the resource securing unit of the multi-function composite device according to the above-described aspect of the present invention to the multi-resource request unit fails, Based on the priority of the function related to the multi-resource request unit, the priority of one or a plurality of the functions that have already reserved all the resources to be used, and a predetermined temporary release candidate search rule The temporary release candidate function that temporarily releases all the resources to be used is retrieved from one or a plurality of the functions that secure all the resources to be used, and the searched A temporary release request unit that requests the temporary release candidate function to temporarily release all the resources to be used is provided.

このような構成であれば、マルチリソース要求部へ依頼したリソース確保要求が失敗し
たときに、一時解放要求部によって、当該マルチリソース要求部に関連した機能の優先度
、使用する全てのリソースを既に確保している1個または複数個の機能の優先度、及び所
定の一時解放候補検索ルールに基づいて、使用する全てのリソースを確保している1個ま
たは複数個の機能の中から、使用する全てのリソースを一時的に解放してもらう一時解放
候補機能が検索され、検索された一時解放候補機能に対して、使用する全てのリソースの
一時的な解放が要求される。これにより、リソースが競合する優先度の低い機能が実行中
であっても、優先度の高い機能を実行させることが可能である。
With such a configuration, when the resource securing request requested to the multi-resource request unit fails, the temporary release request unit already sets the priority of the function related to the multi-resource request unit and all the resources to be used. Based on the priority of one or more secured functions and a predetermined temporary release candidate search rule, use one or more functions that secure all resources to be used A temporary release candidate function that temporarily releases all resources is searched, and the temporary release candidate function that has been searched is requested to temporarily release all resources to be used. As a result, even when a low-priority function that competes for resources is being executed, a high-priority function can be executed.

本発明の他の態様にかかる多機能複合装置は、上述した本発明の態様にかかる多機能複
合装置の前記一時解放候補検索ルールは、前記一時解放候補機能が、リソース確保要求が
失敗であった前記マルチリソース要求部に関連した前記機能の前記優先度よりも低い優先
度に設定されている前記機能であり、かつ、使用する全ての前記リソースを確保して、使
用している前記機能であり、かつ、リソース確保要求が失敗であった前記マルチリソース
要求部に関連した前記機能が利用する1個または複数個の前記リソースの中の少なくとも
1つの前記リソースを使用する前記機能であることを特徴とする。
The multi-function composite device according to another aspect of the present invention is such that the temporary release candidate search rule of the multi-function composite device according to the above-described aspect of the present invention is that the temporary release candidate function has failed in the resource securing request. The function that is set to a priority lower than the priority of the function related to the multi-resource request unit, and the function that is used by securing all the resources to be used. And the function that uses at least one of the resources among the one or a plurality of the resources used by the function related to the multi-resource request unit for which the resource securing request has failed. And

本発明の他の態様にかかる多機能複合装置は、上述した本発明の態様にかかる多機能複
合装置の前記マルチリソース部が有する前記状態情報が、当該マルチリソース要求部が生
成されたときに、第1の状態となり、当該マルチリソース要求部に関連する前記マルチリ
ソース部によって、当該マルチリソース要求部に関連した前記機能が使用する全ての前記
リソースが確保されたときに、第2の状態になり、当該マルチリソース要求部の状態が前
記第2の状態であり、前記リソース管理部の前記リソース一時解放部によって、当該マル
チリソース要求部に関連した前記機能が使用する全ての前記リソースを一時的に解放する
ように要求されて、当該リソースが解放されたときに、第3の状態になることを特徴とす
る。
The multi-function composite device according to another aspect of the present invention is configured such that the state information of the multi-resource unit of the multi-function composite device according to the above-described aspect of the present invention is generated when the multi-resource request unit is generated. The first state is reached, and the second state is reached when all the resources used by the function related to the multi-resource request unit are secured by the multi-resource unit related to the multi-resource request unit. The state of the multi-resource request unit is the second state, and the resource temporary release unit of the resource management unit temporarily stores all the resources used by the function related to the multi-resource request unit. When the resource is requested to be released and the resource is released, the third state is set.

本発明の第1の態様にかかるリソース管理方法は、1個又は複数個のリソースを複数個
の機能が共通に使用する多機能複合装置のリソース管理方法であって、(a)前記機能か
ら、当該機能が使用する全ての前記リソースの確保要求を受け付けたときに、当該機能の
優先度に基づいて、当該優先度と同じ優先度の異なる1個または複数個の前記機能に関連
した前記リソースの確保要求の中で、最後に当該機能に要求された全ての前記リソースが
割り当てられるように、当該機能に関連した前記リソースの確保要求の要求順を調整して
、処理要求キューに追加し、前記処理要求キューの要求順に従って、リソース確保要求を
実行する工程と、(b)前記機能から、当該機能が使用する全ての前記リソースの解放要
求を受け付けたときに、当該機能が使用している全ての当該リソースを解放する工程と、
(c)前記機能から、当該機能が使用する全ての前記リソースの一時解放許可要求を受け
付けたときに、当該機能が使用している全ての当該リソースを一時的に解放する工程と、
(d)前記工程(b)または前記工程(c)によって、前記リソースが解放されたときに
、前記処理要求キューの要求順に従って、前記リソースの確保要求を実行する工程と、を
備えていることを特徴とする。これにより、上述した本発明の態様にかかる多機能複合装
置と同等の効果が得られる。
A resource management method according to a first aspect of the present invention is a resource management method for a multi-function composite apparatus in which one or a plurality of resources are used in common by a plurality of functions. When a request for securing all of the resources used by the function is received, based on the priority of the function, the resource related to one or a plurality of the functions having the same priority as the priority. In the reservation request, adjust the request order of the reservation request of the resource related to the function so that all the resources requested for the function in the end are allocated, and add to the processing request queue, A step of executing a resource securing request in accordance with the request order of the processing request queue; and (b) when receiving a request for releasing all of the resources used by the function from the function. There the steps of releasing all the resources used,
(C) when receiving a temporary release permission request for all the resources used by the function from the function, temporarily releasing all the resources used by the function;
(D) When the resource is released by the step (b) or the step (c), the resource securing request is executed according to the request order of the processing request queue. It is characterized by. Thereby, an effect equivalent to that of the multifunctional composite device according to the aspect of the present invention described above can be obtained.

本発明の他の態様にかかるリソース管理方法は、上述した本発明の態様にかかるリソー
ス管理方法の前記工程(a)が、(e)前記リソース確保要求が失敗したときに、当該リ
ソース確保要求を要求した前記機能の前記優先度、使用する全ての前記リソースを既に確
保している1個または複数個の前記機能の前記優先度、及び所定の一時解放候補検索ルー
ルに基づいて、使用する全ての前記リソースを確保している1個または複数個の前記機能
の中から、使用する全ての前記リソースを一時的に解放してもらう一時解放候補機能を検
索し、検索した前記一時解放候補機能に対して、使用する全ての前記リソースを一時的に
解放してもらうように要求する工程を備えていることを特徴とする。これにより、上述し
た本発明の態様にかかる多機能複合装置と同等の効果が得られる。
In the resource management method according to another aspect of the present invention, the step (a) of the resource management method according to the aspect of the present invention described above is executed when (e) the resource reservation request fails. Based on the requested priority of the function, the priority of one or more of the functions that have already reserved all the resources to be used, and a predetermined temporary release candidate search rule A temporary release candidate function that temporarily releases all the resources to be used is searched from one or a plurality of the functions that secure the resources, and the searched temporary release candidate functions And a step of requesting that all the resources to be used be temporarily released. Thereby, an effect equivalent to that of the multifunctional composite device according to the aspect of the present invention described above can be obtained.

本発明の他の態様にかかるリソース管理方法は、上述した本発明の態様にかかるリソー
ス管理方法の前記一時解放候補検索ルールは、前記一時解放候補機能が、リソース確保要
求が失敗であった前記マルチリソース要求部に関連した前記機能の前記優先度よりも低い
優先度に設定されている前記機能であり、かつ、使用する全ての前記リソースを確保して
、使用している前記機能であり、かつ、リソース確保要求が失敗であった前記マルチリソ
ース要求部に関連した前記機能が利用する1個または複数個の前記リソースの中の少なく
とも1つの前記リソースを使用する前記機能であることを特徴とする。これにより、上述
した本発明の態様にかかる多機能複合装置と同等の効果が得られる。
The resource management method according to another aspect of the present invention is the temporary release candidate search rule of the resource management method according to the aspect of the present invention described above, wherein the temporary release candidate function is the multi The function that is set to a lower priority than the priority of the function related to the resource request unit, and the function that is used by securing all the resources to be used, and The function that uses at least one of the resources among the one or a plurality of the resources used by the function related to the multi-resource request unit that has failed in the resource securing request. . Thereby, an effect equivalent to that of the multifunctional composite device according to the aspect of the present invention described above can be obtained.

本発明の他の態様にかかるリソース管理方法は、上述した本発明の態様にかかるリソー
ス管理方法の前記リソースが、前記機能によって確保されているか否かの2値の状態によ
って表される2値リソース、及び前記リソースの全容量に対する前記機能によって確保さ
れる割合によって表される多値リソースであることを特徴とする。これにより、上述した
本発明の態様にかかる多機能複合装置と同等の効果が得られる。
A resource management method according to another aspect of the present invention is a binary resource represented by a binary state indicating whether or not the resource of the resource management method according to the aspect of the present invention is secured by the function. And a multi-value resource represented by a ratio secured by the function with respect to the total capacity of the resource. Thereby, an effect equivalent to that of the multifunctional composite device according to the aspect of the present invention described above can be obtained.

本発明の第1の態様にかかるプログラムは、1個又は複数個のリソースを複数個の機能
が共通に使用する多機能複合装置の前記リソースを管理する処理をコンピュータに実行さ
せるプログラムであって、上述した本発明の態様にかかる多機能複合装置の各手段を実現
させる処理を前記コンピュータに実行させるプログラム。
The program according to the first aspect of the present invention is a program that causes a computer to execute processing for managing the resource of a multi-function composite apparatus that uses one or a plurality of resources in common by a plurality of functions. A program for causing a computer to execute processing for realizing each unit of the multi-function composite device according to the aspect of the present invention described above.

このような構成であれば、コンピュータによってプログラムが読み取られ、読み取られ
たプログラムによって、コンピュータが処理を実行すると、上述した本発明の態様にかか
る多機能複合装置と同等の作用及び効果が得られる。
With such a configuration, when the program is read by the computer and the computer executes processing by the read program, the same operation and effect as those of the above-described multi-function composite device according to the aspect of the present invention can be obtained.

本発明によれば、機能が使用する全てのリソースを一括して確保又は解放しながら、機
能に対応付けられた優先度に基づいて、機能が使用するリソースの割り当てを容易に管理
することが可能である。また、リソースが競合する優先度の低い機能が実行中であっても
、優先度の高い機能を実行させることが可能である。
According to the present invention, it is possible to easily manage allocation of resources used by a function based on the priority associated with the function while securing or releasing all resources used by the function collectively. It is. In addition, even if a low-priority function that competes for resources is being executed, a high-priority function can be executed.

また、多機能複合装置に新規機能を組み込む場合に、新規機能と既存の機能とがリソー
スを競合する場合の処理を考慮する必要がなく、新規機能を容易に開発することが可能と
なる。従って、開発期間を削減するとともに、開発コストを削減することが可能となる。
In addition, when a new function is incorporated into the multi-function composite device, it is not necessary to consider processing when the new function and the existing function compete for resources, and the new function can be easily developed. Therefore, the development period can be reduced and the development cost can be reduced.

また、多値リソースに対して、そのリソースの容量の許容範囲以内であれば、リソース
を競合する複数の機能を実行させることが可能となる。従って、多機能複合装置が実行す
る全体の処理時間を短縮させることが可能となる。
In addition, if a multi-value resource is within an allowable range of the capacity of the resource, a plurality of functions that compete for the resource can be executed. Accordingly, it is possible to shorten the entire processing time executed by the multi-function composite apparatus.

発明を適用したインクジェットプリンタの斜視図である。1 is a perspective view of an ink jet printer to which the invention is applied. インクジェットプリンタの紙搬送経路を示す説明図である。It is explanatory drawing which shows the paper conveyance path | route of an inkjet printer. 本発明を適用したインクジェットプリンタのリソース管理を行う機能部のクラス図である。It is a class diagram of a functional unit that performs resource management of an inkjet printer to which the present invention is applied. リソース確保要求処理の手順を示すシーケンス図の一例である。It is an example of the sequence diagram which shows the procedure of a resource securing request process. リソース解放要求処理の手順を示すシーケンス図の一例である。It is an example of the sequence diagram which shows the procedure of a resource release request process. リソース確保要求のキャンセル要求処理の手順を示すシーケンス図の一例である。FIG. 10 is an example of a sequence diagram illustrating a procedure of a request for canceling a resource securing request. 優先度の低いアプリケーション38が優先度の高いアプリケーション38へリソースを明け渡す処理の手順を示すシーケンス図の一例である。It is an example of a sequence diagram showing a procedure of processing in which a low-priority application 38 yields resources to a high-priority application 38. 図7の続きを示す図である。It is a figure which shows the continuation of FIG.

この発明の一実施態様を、図面を参照しながら説明する。なお、以下に説明する実施態
様は説明のためのものであり、本発明の範囲を制限するものではない。従って、当業者で
あればこれらの各要素もしくは全要素をこれと均等なもので置換した実施態様を採用する
ことが可能であるが、これらの実施態様も本発明の範囲に含まれる。
An embodiment of the present invention will be described with reference to the drawings. In addition, the embodiment described below is for explanation, and does not limit the scope of the present invention. Accordingly, those skilled in the art can employ embodiments in which each or all of these elements are replaced by equivalents thereof, and these embodiments are also included in the scope of the present invention.

図1は、本発明を適用したインクジェットプリンタの斜視図であり、図2はその紙搬送
経路を示す説明図である。これらの図に示すように、インクジェットプリンタ1は、ロー
ル紙装填機構2と、A4サイズ等のカット紙挿入口3とを有し、ロール紙装填機構2から
供給されるロール紙4およびカット紙挿入口3から挿入されるカット紙5が、それぞれ共
通の印刷位置11(図における一点鎖線で囲まれた領域)を通って搬送されるように搬送
経路が構成されている。共通の印刷位置11を通過するロール紙4およびカット紙5の表
面には、ガイドシャフト6に沿って往復移動可能なキャリッジ7に搭載されているインク
ジェットヘッド8によって、所望の印刷が行われる。インクジェットヘッド8には、イン
クチューブ(図示せず)を経由して、ロール紙装填機構2と隣り合った位置に搭載されて
いるインク供給部10からインクが供給される。
FIG. 1 is a perspective view of an ink jet printer to which the present invention is applied, and FIG. 2 is an explanatory view showing the paper conveyance path. As shown in these drawings, the inkjet printer 1 has a roll paper loading mechanism 2 and a cut paper insertion port 3 of A4 size or the like, and roll paper 4 and cut paper insertion supplied from the roll paper loading mechanism 2 are included. The conveyance path is configured so that the cut sheets 5 inserted from the mouth 3 are conveyed through a common printing position 11 (area surrounded by a one-dot chain line in the drawing). Desired printing is performed on the surfaces of the roll paper 4 and the cut paper 5 that pass through the common printing position 11 by an inkjet head 8 mounted on a carriage 7 that can reciprocate along the guide shaft 6. Ink is supplied to the inkjet head 8 from an ink supply unit 10 mounted at a position adjacent to the roll paper loading mechanism 2 via an ink tube (not shown).

上述したように、ロール紙4に印刷するロール紙印刷機能とカット紙5に印刷するカッ
ト紙印刷機能とは、ともに印刷位置11を通って搬送されるように搬送経路が構成されて
いることから、紙経路が競合する。また、図には記載されていないが、それぞれの機能を
実行させるためには電源が必要であることから、電源も競合する。以下、インクジェット
プリンタ1に組み込まれている機能として、ロール紙印刷機能とカット紙印刷機能を例に
挙げて説明する。ここで、ロール紙印刷機能が使用するリソースは紙経路と電源であり、
電源の全容量の60%を使用するとする。また、カット紙印刷機能が使用するリソースは
紙経路と電源であり、電源の全容量の30%を使用するとする。また、ロール紙印刷機能
の優先度を「低」とし、カット紙印刷機能の優先度を「高」とする。
As described above, since the roll paper printing function for printing on the roll paper 4 and the cut paper printing function for printing on the cut paper 5 are both transported through the printing position 11, the transport path is configured. , Paper path conflicts. Although not shown in the figure, power supplies are also competed because a power supply is required to execute each function. Hereinafter, the roll paper printing function and the cut paper printing function will be described as examples of functions incorporated in the inkjet printer 1. Here, the resources used by the roll paper printing function are the paper path and power supply,
Assume that 60% of the total capacity of the power supply is used. Further, the resources used by the cut sheet printing function are the paper path and the power source, and 30% of the total capacity of the power source is used. Further, the priority of the roll paper printing function is “low”, and the priority of the cut paper printing function is “high”.

図3は、本発明を適用したインクジェットプリンタのリソース管理を行う機能部のクラ
ス図である。図3に示すように、機能部は、リソース管理30、マルチリソース要求31
、マルチリソース管理32、マルチリソース33、2値リソース34、多値リソース35
、多値リソース消費36、及びリソース37の各クラスによって構成されている。なお、
以下の説明において、「リソース37を割り当てる」及び「リソース37を解放する」と
いう表現を用いるが、これらは、それぞれ「リソース37のサブクラスである2値リソー
スまたは多値リソースを割り当てる」、「リソース37のサブクラスである2値リソース
または多値リソースを解放する」ことを意味する。
FIG. 3 is a class diagram of a functional unit that performs resource management of an inkjet printer to which the present invention is applied. As shown in FIG. 3, the functional unit includes resource management 30 and multi-resource request 31.
, Multi-resource management 32, multi-resource 33, binary resource 34, multi-value resource 35
, Multi-value resource consumption 36, and resource 37. In addition,
In the following description, the expressions “allocate resource 37” and “release resource 37” are used, which are respectively “assign a binary resource or multi-value resource that is a subclass of resource 37”, “resource 37”. Means to release a binary resource or a multi-value resource that is a subclass of "."

リソース管理30は、アプリケーション38からの要求に対してリソース割り当てを実
行する。具体的には、アプリケーション38から、マルチリソース要求31を受信したと
き、リソース管理30は、マルチリソース要求31に関連するマルチリソース33経由で
リソース37が必要であることを知り、アプリケーション38に対して必要なリソース3
7を割り当てる。また、アプリケーション38によって生成されたマルチリソース要求3
1を優先度に基づいて管理し、マルチリソース33に関連付けているリソース37を割り
当てる。
The resource management 30 executes resource allocation in response to a request from the application 38. Specifically, when the multi-resource request 31 is received from the application 38, the resource management 30 knows that the resource 37 is necessary via the multi-resource 33 related to the multi-resource request 31, and Required resources 3
7 is assigned. In addition, the multi-resource request 3 generated by the application 38
1 is managed based on the priority, and a resource 37 associated with the multi-resource 33 is allocated.

状態が「使用中」であるマルチリソース要求31を生成したアプリケーション38の優
先度が、新たなマルチリソース要求31を生成したアプリケーション38の優先度より低
いときには、リソース管理30は、「使用中」のマルチリソース要求31から一時解放候
補を検索し、その一時解放候補のマルチリソース要求31を生成したアプリケーション3
8に対して、リソース明け渡し要求し、明け渡し許可を受け取った後に、新たなマルチリ
ソース要求31に、リソース37を割り当てる。
When the priority of the application 38 that has generated the multi-resource request 31 whose state is “in use” is lower than the priority of the application 38 that has generated the new multi-resource request 31, the resource management 30 is in “in use”. Application 3 that searches for a temporary release candidate from the multi-resource request 31 and generates the multi-resource request 31 of the temporary release candidate
8, a resource surrender request is made, and after receiving the surrender permission, a resource 37 is allocated to a new multi-resource request 31.

なお、マルチリソース要求31の状態には、「待ち」、「使用中」及び「一時中断」が
存在する。ここで、アプリケーション38によってマルチリソース要求31が生成された
ときに、マルチリソース要求31の状態は「待ち」となり、マルチリソース33を介して
、リソース37が確保されたときに、マルチリソース要求31の状態は「使用中」となり
、一時解放要求により処理の途中でリソース37が一時解放されたときに、マルチリソー
ス要求31の状態は「一時中断」となる。
Note that the status of the multi-resource request 31 includes “waiting”, “in use”, and “temporary suspension”. Here, when the multi-resource request 31 is generated by the application 38, the state of the multi-resource request 31 becomes “waiting”, and when the resource 37 is secured via the multi-resource 33, the multi-resource request 31 The state becomes “in use”, and the state of the multi-resource request 31 becomes “temporarily interrupted” when the resource 37 is temporarily released in the middle of processing by a temporary release request.

また、リソース管理30は、アプリケーション38から解放要求を受信したときに、ア
プリケーション38が利用していたリソース37を解放する。即ち、マルチリソース33
に関連付けているリソース37を解放する。このとき、「待ち」状態のマルチリソース要
求31に対して、リソース37の割り当てが可能であるならば、リソース37を割り当て
る。
Further, when the resource management 30 receives a release request from the application 38, the resource management 30 releases the resource 37 used by the application 38. That is, the multi-resource 33
Release the resource 37 associated with. At this time, if the resource 37 can be allocated to the multi-resource request 31 in the “waiting” state, the resource 37 is allocated.

また、リソース管理30は、アプリケーション38から一時解放許可要求を受信したと
きに、マルチリソース33に関連付けているリソース37を一時解放する。尚、一時解放
許可要求は、既に、一時明け渡しするように通知されていたアプリケーション38が一時
解放可能になったときに、アプリケーション38からリソース管理30へ送信される。こ
のとき、リソース管理30は、一時解放を実行した後に、「一時中断」状態のマルチリソ
ース要求31に対して、リソース37の割り当てが可能であるならば、リソース37を割
り当てる。
Further, when the resource management 30 receives a temporary release permission request from the application 38, the resource management 30 temporarily releases the resource 37 associated with the multi-resource 33. The temporary release permission request is transmitted from the application 38 to the resource management 30 when the application 38 that has already been notified to be temporarily released can be temporarily released. At this time, if the resource management 30 can allocate the resource 37 to the multi-resource request 31 in the “temporarily suspended” state after executing the temporary release, the resource management 30 allocates the resource 37.

マルチリソース要求31は、アプリケーション38が利用したいマルチリソース33に
対する要求に対して、マルチリソース33に対する要求の状態、即ち、マルチリソース要
求31の状態を持っており、状態遷移にともなう処理を実行する。マルチリソース要求3
1の状態が「待ち」から「使用中」に遷移するときには、マルチリソース要求31に関連
するマルチリソース33に対して、マルチリソース33に関連する複数のリソース37を
確保させる。
The multi-resource request 31 has a request state for the multi-resource 33, that is, the state of the multi-resource request 31, in response to a request for the multi-resource 33 that the application 38 wants to use, and executes processing associated with the state transition. Multi-resource request 3
When the state of 1 transitions from “waiting” to “in use”, the multi-resource 33 related to the multi-resource request 31 is secured with a plurality of resources 37 related to the multi-resource 33.

また、マルチリソース要求31の状態が「使用中」から「一時中断」に遷移するときに
は、マルチリソース要求31に関連するマルチリソース33に対して、マルチリソース3
3に関連する複数のリソース37を解放させる。また、マルチリソース要求31の状態が
、「待ち」、「使用中」及び「一時中断」のいずれか1つの状態であるときに、アプリケ
ーション38がリソース37の利用を終了したときにも、マルチリソース要求31に関連
するマルチリソース33に対して、マルチリソース33に関連する複数のリソース37を
解放させる。
Further, when the state of the multi-resource request 31 transits from “in use” to “temporary suspension”, the multi-resource 3 for the multi-resource 33 related to the multi-resource request 31 is changed.
A plurality of resources 37 related to 3 are released. In addition, when the state of the multi-resource request 31 is any one of “waiting”, “in use”, and “temporary suspension”, the multi-resource request 31 is also used when the application 38 ends use of the resource 37. A plurality of resources 37 related to the multi-resource 33 are released to the multi-resource 33 related to the request 31.

マルチリソース管理32は、マルチリソース33を管理する。アプリケーション38が
マルチリソース33の識別子であるマルチリソースIDを引数にして、マルチリソース3
3の取得を要求してきたときに、マルチリソース33を戻り値として返す。マルチリソー
ス33は、アプリケーション38が使用する複数のリソース37を束ね、束ねている2値
リソース34および多値リソース35の一括確保、または、一括解放を実行する。
The multi resource management 32 manages the multi resource 33. The application 38 uses the multi-resource ID that is the identifier of the multi-resource 33 as an argument,
When the acquisition of 3 is requested, the multi-resource 33 is returned as a return value. The multi-resource 33 bundles a plurality of resources 37 used by the application 38, and executes batch reservation or batch release of the bundled binary resource 34 and multi-value resource 35.

リソース37は抽象クラスであり、2値リソース34および多値リソース35が含まれ
る。2値リソース34は、アプリケーション38が、当該リソースを「使用する」又は「
使用しない」の2つにより、リソース確保又は解放を判断することが出来るリソース37
である。多値リソース35は、当該リソースの必要量を要求するリソース37である。多
値リソース消費36は、多値リソース35の消費を扱い、必要なリソースの消費量を知っ
ている。多値リソース35から必要量を取得又は返却する。例えば、2値リソース34と
して、紙経路等がある。紙経路は、「使用する」又は「使用しない」の2つの状態で表す
ことが出来る。また、例えば、多値リソース35として、電源等がある。電源容量のX%
が必要量であるとしてリソースを表すことが出来る。
The resource 37 is an abstract class and includes a binary resource 34 and a multi-value resource 35. As for the binary resource 34, the application 38 “uses” the resource or “
A resource 37 that can determine whether to secure or release a resource according to two of “not use”.
It is. The multi-value resource 35 is a resource 37 that requests the required amount of the resource. The multi-value resource consumption 36 deals with the consumption of the multi-value resource 35 and knows the necessary resource consumption. A necessary amount is acquired or returned from the multi-value resource 35. For example, the binary resource 34 includes a paper path. The paper path can be expressed in two states, “used” or “not used”. Further, for example, the multi-value resource 35 includes a power source and the like. X% of power capacity
Can be represented as a necessary amount.

次に、上述したリソース確保要求処理、リソース解放要求処理、リソース確保要求のキ
ャンセル要求処理、及び優先度の低いアプリケーション38が優先度の高いアプリケーシ
ョン38へリソースを明け渡す処理の各処理手順を、図4から図8を参照して説明する。
ここで、図4から図8示す処理手順を実行する場合に、インクジェットプリンタ1のRO
Mに予め格納されている制御プログラムを実行して、各工程を実行させる。
Next, each processing procedure of the above-described resource securing request processing, resource release request processing, resource securing request cancel request processing, and processing in which the low priority application 38 yields resources to the high priority application 38 is shown in FIG. Will be described with reference to FIG.
Here, when the processing procedure shown in FIGS. 4 to 8 is executed, the RO of the inkjet printer 1 is executed.
A control program stored in advance in M is executed to execute each process.

図4は、リソース確保要求処理の手順を示すシーケンス図の一例である。また、図5は
、リソース解放要求処理の手順を示すシーケンス図の一例である。また、図6は、リソー
ス確保要求のキャンセル要求処理の手順を示すシーケンス図の一例である。また、図7及
び図8は、優先度の低いアプリケーション38が優先度の高いアプリケーション38へリ
ソースを明け渡す処理の手順を示すシーケンス図の一例である。
FIG. 4 is an example of a sequence diagram showing the procedure of the resource securing request process. FIG. 5 is an example of a sequence diagram illustrating a procedure of resource release request processing. FIG. 6 is an example of a sequence diagram illustrating a procedure of a request for canceling a resource securing request. 7 and 8 are an example of a sequence diagram illustrating a procedure of processing in which the application 38 with a low priority yields resources to the application 38 with a high priority.

図4に示すように、リソース確保要求の処理手順は、ロール紙のアプリケーション38
(以下、「ロール紙アプリケーション」と呼ぶ)を例に挙げて説明する。ロール紙アプリ
ケーションが使用するリソースは、リソース37のサブクラスである2値リソース34の
紙経路と、多値リソース35の電源である。
As shown in FIG. 4, the processing procedure of the resource securing request is the roll paper application 38.
(Hereinafter referred to as “roll paper application”) will be described as an example. The resources used by the roll paper application are the paper path of the binary resource 34 that is a subclass of the resource 37 and the power source of the multi-value resource 35.

まず、ロール紙アプリケーションが、マルチリソースID、ロール紙アプリケーション
の優先度、及びロール紙アプリケーションへの通知先を、内部に保持するロール紙アプリ
ケーションに関連したマルチリソース要求31(以下、「ロール紙マルチリソース要求」
と呼ぶ)を生成する(S101)。このとき、生成されたロール紙マルチリソース要求は
、状態を「待ち」にする(S102)。
First, the roll paper application receives a multi-resource request 31 (hereinafter referred to as “roll paper multi-resource”) related to the roll paper application that holds the multi-resource ID, the priority of the roll paper application, and the notification destination to the roll paper application. request"
Is generated) (S101). At this time, the generated roll paper multi-resource request sets the status to “waiting” (S102).

次に、ロール紙アプリケーションは、ロール紙マルチリソース要求とともにリソース確
保要求をリソース管理30に送る(S103)。リソース管理30は、リソース確保要求
を介して渡されたロール紙マルチリソース要求とマルチリソース33を対応付ける初期化
処理を、ロール紙マルチリソース要求に対して要求する(S104)。ロール紙マルチリ
ソース要求は、自身が内部に保持するマルチリソースIDに基づいて、マルチリソース管
理32から、ロール紙マルチリソース要求に対応するマルチリソース33(以下、「ロー
ル紙マルチリソース」と呼ぶ)を取得し(S105)、現在のロール紙マルチリソースを
設定する(S106)。
Next, the roll paper application sends a resource securing request together with the roll paper multi-resource request to the resource management 30 (S103). The resource management 30 requests the roll paper multi-resource request for an initialization process for associating the roll paper multi-resource request passed through the resource securing request with the multi-resource 33 (S104). In the roll paper multi-resource request, a multi-resource 33 corresponding to the roll paper multi-resource request (hereinafter referred to as “roll paper multi-resource”) is sent from the multi-resource management 32 based on the multi-resource ID held by itself. Obtain (S105) and set the current roll paper multi-resource (S106).

次に、リソース管理30は、ロール紙アプリケーションの優先度に基づいて、ロール紙
アプリケーションと同じ優先度の処理要求キューの最後尾に、ロール紙マルチリソース要
求を追加し(S107)、処理要求キューの要求順番になるまで、待機する。
Next, the resource management 30 adds a roll paper multi-resource request to the end of the processing request queue having the same priority as that of the roll paper application based on the priority of the roll paper application (S107). Wait until the requested order is reached.

次に、ロール紙マルチリソース要求の要求順番になったときに、リソース管理30は、
ロール紙マルチリソース要求に対して、リソース確保を要求し(S108)、ロール紙マ
ルチリソース要求は、ロール紙マルチリソースに対して、2値リソース34である紙経路
及び多値リソース35である電源の確保を要求し(S109)、ロール紙マルチリソース
は、2値リソース34である紙経路及び多値リソース35である電源を確保し(S110
からS115)、ロール紙マルチリソース要求の状態を「使用中」に設定し(S116)
、2値リソース34である紙経路及び多値リソース35である電源を確保したことをロー
ル紙マルチリソース要求へ通知する(S117)。
Next, when it becomes the request order of the roll paper multi-resource request, the resource management 30
In response to the roll paper multi-resource request, resource reservation is requested (S108). The roll paper multi-resource request requests the roll paper multi-resource for the paper path that is the binary resource 34 and the power supply that is the multi-value resource 35. The roll paper multi-resource reserves a paper path that is the binary resource 34 and a power source that is the multi-value resource 35 (S110).
To S115), the status of the roll paper multi-resource request is set to “in use” (S116).
The roll paper multi-resource request is notified that the paper path as the binary resource 34 and the power source as the multi-value resource 35 have been secured (S117).

最後に、ロール紙マルチリソース要求はリソース管理30に対して、ロール紙アプリケ
ーションが使用するリソースを確保したことを通知し(S118)、リソース管理30は
ロール紙アプリケーションに対して、ロール紙アプリケーションが使用するリソースを確
保したことを通知する(S119)。
Finally, the roll paper multi-resource request notifies the resource management 30 that the resource used by the roll paper application has been secured (S118), and the resource management 30 uses the roll paper application for the roll paper application. That the resource to be secured has been secured (S119).

次に、上述したようにして確保したリソースの利用を、アプリケーション38が終了す
るときの、リソースの解放要求処理について、図5を参照して説明する。ここでは、ロー
ル紙アプリケーションを例に挙げて説明する。
Next, resource release request processing when the application 38 terminates use of the resources secured as described above will be described with reference to FIG. Here, a roll paper application will be described as an example.

まず、ロール紙アプリケーションは、リソースの解放要求をリソース管理30に送る(
S201)。次に、リソース管理30は、ロール紙マルチリソース要求に対して、ロール
紙マルチリソースの解放を要求する(S202)。ロール紙マルチリソース要求は、ロー
ル紙マルチリソースに対して、2値リソース34である紙経路及び多値リソース35であ
る電源の解放を要求し(S203)、ロール紙マルチリソースは、2値リソース34であ
る紙経路及び多値リソース35である電源を解放する(S204からS206)。最後に
、リソース管理30はロール紙アプリケーションに対して、ロール紙アプリケーションが
使用するリソースを解放したことを通知する(S207)。
First, the roll paper application sends a resource release request to the resource management 30 (
S201). Next, the resource management 30 requests the release of the roll paper multi-resource in response to the roll paper multi-resource request (S202). The roll paper multi-resource request requests the roll paper multi-resource to release the paper path that is the binary resource 34 and the power source that is the multi-value resource 35 (S203). The paper path and the multi-value resource 35 are released (S204 to S206). Finally, the resource management 30 notifies the roll paper application that the resources used by the roll paper application have been released (S207).

次に、処理要求キューにおいてマルチリソース要求31の要求順番となる前に、そのマ
ルチリソース要求31がキャンセルされた場合の処理手順について、図6を参照して説明
する。ここでは、ロール紙アプリケーションを例に挙げて説明する。また、ロール紙アプ
リケーションによって生成されたロール紙マルチリソース要求が、処理要求キューに追加
されるまでの処理(S301からS307)は、図4において説明したステップS101
からS107と同様であるので、説明を省略する。
Next, a processing procedure when the multi-resource request 31 is canceled before the multi-resource request 31 is in the request order in the processing request queue will be described with reference to FIG. Here, a roll paper application will be described as an example. Further, the processing (S301 to S307) until the roll paper multi-resource request generated by the roll paper application is added to the processing request queue is the same as step S101 described in FIG.
To S107, the description is omitted.

ロール紙マルチリソース要求の要求順番になる前に、ロール紙アプリケーションによっ
て、リソース確保が不要であると判定されたときに、ロール紙アプリケーションは、リソ
ースの解放要求をリソース管理30に送る(S308)。リソース管理30は、処理要求
キューから、ロール紙アプリケーションに関連したロール紙マルチリソース要求を削除す
る(S309)。最後に、リソース管理30はロール紙アプリケーションに対して、ロー
ル紙アプリケーションが使用するリソースを解放したことを通知する(S310)。
When the roll paper application determines that it is not necessary to secure resources before the roll paper multi-resource request request order is reached, the roll paper application sends a resource release request to the resource management 30 (S308). The resource management 30 deletes the roll paper multi-resource request related to the roll paper application from the processing request queue (S309). Finally, the resource management 30 notifies the roll paper application that the resources used by the roll paper application have been released (S310).

次に、優先度の低いアプリケーション38が優先度の高いアプリケーション38へリソ
ースを明け渡す処理について、図7及び図8を参照して説明する。ここでは、ロール紙ア
プリケーション、及びドロワのプリケーション38(以下、「ドロワアプリケーション」
と呼ぶ)を例に挙げて説明する。ドロワアプリケーションが使用するリソースは、リソー
ス37のサブクラスである多値リソース35の電源である。また、ドロワアプリケーショ
ンは、ロール紙アプリケーションより、優先度が高いとする。従って、図7及び図8では
、ロール紙アプリケーションが、リソースを確保して使用しているときに、ドロワアプリ
ケーションからリソースの確保要求があった場合について説明する。
Next, processing in which the application 38 having a low priority yields resources to the application 38 having a high priority will be described with reference to FIGS. Here, a roll paper application and a drawer application 38 (hereinafter referred to as “drawer application”).
Will be described as an example. A resource used by the drawer application is a power source of a multi-value resource 35 that is a subclass of the resource 37. The drawer application has a higher priority than the roll paper application. Accordingly, FIGS. 7 and 8 illustrate a case where a resource securing request is received from the drawer application when the roll paper application secures and uses the resource.

まず、ドロワアプリケーションが、マルチリソースID、ロール紙アプリケーションの
優先度、及びドロワアプリケーションへの通知先を、内部に保持するドロワアプリケーシ
ョンに関連したマルチリソース要求31(以下、「ドロワマルチリソース要求」と呼ぶ)
を生成する(S401)。このとき、生成されたドロワマルチリソース要求は、状態を「
待ち」にする(S402)。
First, the drawer application uses a multi-resource request 31 (hereinafter referred to as a “drawer multi-resource request”) related to the drawer application held inside the multi-resource ID, the priority of the roll paper application, and the notification destination to the drawer application. )
Is generated (S401). At this time, the generated drawer multi-resource request has a status of “
"Waiting" is set (S402).

次に、ドロワアプリケーションは、ドロワマルチリソース要求とともにリソース確保要
求をリソース管理30に送る(S403)。リソース管理30は、リソース確保要求を介
して渡されたドロワマルチリソース要求とマルチリソース33を対応付ける初期化処理を
、ドロワマルチリソース要求に対して要求する(S404)。ドロワマルチリソース要求
は、自身が内部に保持するマルチリソースIDに基づいて、マルチリソース管理32から
、ドロワマルチリソース要求に対応するマルチリソース33(以下、「ドロワマルチリソ
ース」と呼ぶ)を取得し(S405)、現在のドロワマルチリソースを設定する(S40
6)。
Next, the drawer application sends a resource securing request together with the drawer multi-resource request to the resource management 30 (S403). The resource management 30 requests the drawer multi-resource request for an initialization process for associating the drawer multi-resource request passed through the resource securing request with the multi-resource 33 (S404). The drawer multi-resource request acquires a multi-resource 33 (hereinafter referred to as “drawer multi-resource”) corresponding to the drawer multi-resource request from the multi-resource management 32 based on the multi-resource ID held by itself. S405), the current drawer multi-resource is set (S40)
6).

次に、リソース管理30は、ドロワアプリケーションの優先度に基づいて、ドロワアプ
リケーションと同じ優先度の処理要求キューの最後尾に、ドロワマルチリソース要求を追
加し(S407)、処理要求キューの要求順番になるまで、待機する。
Next, the resource management 30 adds a drawer multi-resource request to the tail of the processing request queue having the same priority as that of the drawer application based on the priority of the drawer application (S407). Wait until

次に、ドロワマルチリソース要求の要求順番になったときに、リソース管理30は、ド
ロワマルチリソース要求に対して、リソース確保を要求し(S408)、ドロワマルチリ
ソース要求は、ドロワマルチリソースに対して、多値リソース35である電源の確保を要
求し(S409)、ドロワマルチリソースは、多値リソース35である電源を確保しよう
と試み、失敗し(S410からS413)、多値リソース35である電源の確保が失敗し
たことをドロワマルチリソース要求へ通知する(S414)。
Next, when the request order of the drawer multi-resource request is reached, the resource management 30 requests resource reservation in response to the drawer multi-resource request (S408), and the drawer multi-resource request is issued to the drawer multi-resource. The drawer multi-resource requests the securing of the power source that is the multi-valued resource 35 (S409), and the drawer multi-resource attempts to secure the power source that is the multi-valued resource 35 and fails (S410 to S413), and the power source that is the multi-valued resource 35 Is notified to the drawer multi-resource request (S414).

次に、ドロワマルチリソース要求は、リソース管理30に対して、リソース確保が失敗
したことを通知する(S415)。リソース確保が失敗した理由は、既に電源を、ロール
紙アプリケーションが使用しているためであり、ドロワアプリケーションとロール紙アプ
リケーションとが同時に電源を使用した場合、電源容量がオーバーするためである。
Next, the drawer multi-resource request notifies the resource management 30 that resource reservation has failed (S415). The reason why the resource allocation has failed is that the power supply has already been used by the roll paper application, and when the drawer application and the roll paper application have used the power supply at the same time, the power supply capacity will be exceeded.

次に、リソース管理30は、一時解放候補となるマルチリソース要求31を処理要求キ
ューの中から検索する(S416)。ここでは、一時解放候補として、ロール紙マルチリ
ソース要求が検索される。検索したロール紙マルチリソース要求を関連したロール紙アプ
リケーションに対して、使用しているリソースを一時解放するように通知する(S417
)。ロール紙アプリケーションは、使用しているリソースを一時解放する準備が出来たと
きに、リソース管理30に対して、一時解放許可要求を送信する(S418)。
Next, the resource management 30 searches the processing request queue for a multi-resource request 31 that is a temporary release candidate (S416). Here, a roll paper multi-resource request is retrieved as a temporary release candidate. The retrieved roll paper multi-resource request is notified to the related roll paper application to temporarily release the used resources (S417).
). When the roll paper application is ready to temporarily release the resource being used, the roll paper application transmits a temporary release permission request to the resource management 30 (S418).

リソース管理30は、ロール紙マルチリソース要求に対して、ロール紙マルチリソース
の解放を要求する(S419)。ロール紙マルチリソース要求は、ロール紙マルチリソー
スに対して、2値リソース34である紙経路及び多値リソース35である電源の解放を要
求し(S420)、ロール紙マルチリソースは、2値リソース34である紙経路及び多値
リソース35である電源を解放する(S421からS423)。このとき、ロール紙マル
チリソース要求の状態を「一時中断」とする。
In response to the roll paper multi-resource request, the resource management 30 requests release of the roll paper multi-resource (S419). The roll paper multi-resource request requests the roll paper multi-resource to release the paper path that is the binary resource 34 and the power source that is the multi-value resource 35 (S420). The paper path and the multi-value resource 35 are released (S421 to S423). At this time, the state of the roll paper multi-resource request is set to “temporarily interrupted”.

最後に、上述の図4に準じて、ドロワマルチリソース要求が、ドロワマルチリソースを
介して、多値リソース35である電源を確保し、ドロワマルチリソース要求の状態を「使
用中」に設定し、リソース管理30に対して、ドロワアプリケーションが使用するリソー
スを確保したことを通知したときに、リソース管理30は、ドロワアプリケーションに対
して、ドロワアプリケーションが使用するリソースを確保したことを通知する(S424
)。
Finally, in accordance with FIG. 4 described above, the drawer multi-resource request secures the power source that is the multi-value resource 35 via the drawer multi-resource, and sets the state of the drawer multi-resource request to “in use”. When notifying that the resource used by the drawer application has been secured to the resource management 30, the resource management 30 notifies the drawer application that the resource used by the drawer application has been secured (S424).
).

ここで、上述した一時解放候補の検索は、「リソース確保要求の対象のアプリケーショ
ン38(A)の優先度より低い優先度のアプリケーション38(B)に関連したマルチリ
ソース要求31であり、かつ、アプリケーション38(B)に関連したマルチリソース要
求31の状態が「使用中」であり、かつ、アプリケーション38(B)が使用している複
数のリソースの中の少なくとも1つのリソースが、アプリケーション38(A)が確保し
ようとしている複数のリソースの中の少なくとも1つのリソースと競合する」とする条件
を満たしたアプリケーション38(B)に関連したマルチリソース要求31を一時解放候
補とする。
Here, the search for the temporary release candidate described above is “the multi-resource request 31 related to the application 38 (B) having a lower priority than the priority of the application 38 (A) that is the target of the resource securing request, and the application The state of the multi-resource request 31 related to 38 (B) is “in use”, and at least one resource among the plurality of resources used by the application 38 (B) is the application 38 (A). The multi-resource request 31 related to the application 38 (B) that satisfies the condition “compete with at least one resource among a plurality of resources to be secured” is set as a temporary release candidate.

また、上述した図4から図8示す処理手順を実行する場合に、インクジェットプリンタ
1のROMに予め格納されている制御プログラムを実行して、各工程を実行させるように
したが、これらの各工程を実行させるプログラムを記録した情報記録媒体から、そのプロ
グラムをRAMに読み込んで実行するようにしても良い。
Further, when executing the processing procedure shown in FIGS. 4 to 8 described above, the control program stored in advance in the ROM of the inkjet printer 1 is executed to execute each process. It is also possible to read the program from the information recording medium that records the program to be executed into the RAM and execute it.

ここで、情報記録媒体とは、RAM、ROM等の半導体記録媒体、FD、HD等の磁気
記憶型記録媒体、CD、CDV、LD、DVD等の光学的読取方式記録媒体、MO等の磁
気記憶型/光学的読取方式記録媒体であって、電子的、磁気的、光学等の読み取り方法の
いかんにかかわらず、コンピュータによって読み取り可能な情報記録媒体であれば、あら
ゆる情報記録媒体を含むものである。また、プログラムを、ネットワークを経由してダウ
ンロードして実行するようにしても良い。
Here, the information recording medium is a semiconductor recording medium such as RAM or ROM, a magnetic storage type recording medium such as FD or HD, an optical reading type recording medium such as CD, CDV, LD, or DVD, or a magnetic storage such as MO. Any type / optical reading type recording medium, including any information recording medium that can be read by a computer, regardless of electronic, magnetic, optical, or other reading methods. The program may be downloaded and executed via a network.

1 インクジェットプリンタ、30 リソース管理、31 マルチリソース要求
、32 マルチリソース管理、33 マルチリソース、34 2値リソース、35
多値リソース、36 多値リソース消費、37 リソース、38 アプリケー
ション。
1 Inkjet printer, 30 resource management, 31 multi-resource request, 32 multi-resource management, 33 multi-resource, 34 binary resource, 35
Multi-value resource, 36 Multi-value resource consumption, 37 resource, 38 application.

Claims (11)

1個又は複数個のリソースを複数個の機能が共通に使用する多機能複合装置であって、
前記リソース毎に、当該リソースの使用状況を判定するリソース部と、
前記機能が使用する全ての前記リソース毎に対応付けられる前記リソース部に対する確
保または解放を、一括して実行する、当該機能に関連付けられたマルチリソース部と、
前記マルチリソース部を管理するマルチリソース管理部と、
前記機能からの要求を受け付けたときに、前記機能毎に予め設定されている優先度に基
づいて、前記リソースの割り当てを実行するリソース管理部と、
前記マルチリソース部への要求状態を示す状態情報を有し、前記リソース管理部から要
求された当該マルチリソース部への要求処理を当該マルチリソース部へ依頼する、当該マ
ルチリソース部に対応付けられたマルチリソース要求部と、を備えていることを特徴とす
る多機能複合装置。
A multi-function composite device that uses one or a plurality of resources in common by a plurality of functions,
For each resource, a resource unit that determines the usage status of the resource;
A multi-resource unit associated with the function, which collectively executes reservation or release for the resource unit associated with every resource used by the function; and
A multi-resource management unit that manages the multi-resource unit;
A resource management unit that allocates the resource based on a priority set in advance for each function when a request from the function is received;
It has state information indicating a request state to the multi-resource unit, and requests the multi-resource unit to perform a request process to the multi-resource unit requested from the resource management unit, and is associated with the multi-resource unit. And a multi-resource requesting unit.
前記リソースは、前記機能によって確保されているか否かの2値の状態によって表され
る2値リソース、及び前記リソースの全容量に対する前記機能によって確保される割合に
よって表される多値リソースであり、
前記2値リソースに対する前記リソース部が2値リソース部であり、
前記多値リソースに対する前記リソース部が多値リソース部であることを特徴とする請
求項1に記載の多機能複合装置。
The resource is a binary resource represented by a binary state indicating whether or not it is secured by the function, and a multi-value resource represented by a ratio secured by the function with respect to the total capacity of the resource,
The resource part for the binary resource is a binary resource part;
The multi-function composite apparatus according to claim 1, wherein the resource unit for the multi-value resource is a multi-value resource unit.
前記リソース管理部は、
前記機能から、当該機能が使用する全ての前記リソースの解放要求を受け付けたときに
、当該機能が使用している全ての当該リソースの解放を、当該機能に関連した前記マルチ
リソース要求部へ要求するリソース解放部と、
前記機能から、当該機能が使用する全ての前記リソースの一時解放許可要求を受け付け
たときに、当該機能が使用している全ての当該リソースの一時的な解放を、当該機能に関
連した前記マルチリソース要求部へ要求するリソース一時解放部と、
前記機能から、当該機能が使用する全ての前記リソースの確保要求を受け付けたときに
、当該機能の前記優先度に基づいて、当該優先度と同じ優先度の異なる1個または複数個
の前記機能に関連した前記マルチリソース要求部への要求の中で、最後に当該機能に要求
された全ての前記リソースが割り当てられるように、当該機能に関連した前記マルチリソ
ース要求部への要求順を調整して、処理要求キューに追加し、前記処理要求キューの要求
順に従って、リソース確保要求を前記マルチリソース要求部へ依頼し、前記リソース解放
部または前記リソース一時解放部の前記マルチリソース要求部への依頼によって、前記リ
ソースが解放されたときに、前記処理要求キューの要求順に従って、リソース確保要求を
前記マルチリソース要求部へ依頼するリソース確保部と、を備えていることを特徴とする
請求項1または2に記載の多機能複合装置。
The resource management unit
When a release request for all the resources used by the function is received from the function, the multi-resource request unit related to the function is requested to release all the resources used by the function. A resource release unit;
When receiving a temporary release permission request for all the resources used by the function from the function, the multi-resources related to the function are used to temporarily release all the resources used by the function. A resource temporary release part to request to the request part;
When receiving a request for securing all of the resources used by the function from the function, one or a plurality of the functions having the same priority as the priority are assigned to the function based on the priority of the function. In the request to the related multi-resource request unit, the request order to the multi-resource request unit related to the function is adjusted so that all the resources required for the function at the end are allocated. , Adding to the processing request queue, requesting a resource securing request to the multi-resource requesting unit according to the order of requests of the processing request queue, and by requesting the multi-resource requesting unit of the resource releasing unit or the resource temporary releasing unit When the resource is released, a resource securing request is made to the multi-resource request unit according to the order of requests in the processing request queue. Multifunction apparatus according to claim 1 or 2, characterized in that it comprises a resource reservation unit, a to.
前記リソース確保部は、
前記マルチリソース要求部へ依頼したリソース確保要求が失敗したときに、当該マルチ
リソース要求部に関連した前記機能の前記優先度、使用する全ての前記リソースを既に確
保している1個または複数個の前記機能の前記優先度、及び所定の一時解放候補検索ルー
ルに基づいて、使用する全ての前記リソースを確保している1個または複数個の前記機能
の中から、使用する全ての前記リソースを一時的に解放してもらう一時解放候補機能を検
索し、検索した前記一時解放候補機能に対して、使用する全ての前記リソースを一時的に
解放してもらうように要求する一時解放要求部を備えていることを特徴とする請求項3に
記載の多機能複合装置。
The resource securing unit
When the resource reservation request requested to the multi-resource request unit fails, the priority of the function related to the multi-resource request unit, one or more of the resources that have already been reserved Based on the priority of the function and a predetermined temporary release candidate search rule, all the resources to be used are temporarily selected from one or a plurality of the functions that reserve all the resources to be used. A temporary release request unit that searches for temporary release candidate functions that are to be released automatically and requests the searched temporary release candidate functions to temporarily release all the resources to be used The multi-function composite apparatus according to claim 3, wherein the multi-function composite apparatus is provided.
前記一時解放候補検索ルールは、
前記一時解放候補機能が、リソース確保要求が失敗であった前記マルチリソース要求部
に関連した前記機能の前記優先度よりも低い優先度に設定されている前記機能であり、か
つ、使用する全ての前記リソースを確保して、使用している前記機能であり、かつ、リソ
ース確保要求が失敗であった前記マルチリソース要求部に関連した前記機能が利用する1
個または複数個の前記リソースの中の少なくとも1つの前記リソースを使用する前記機能
であることを特徴とする請求項4に記載の多機能複合装置。
The temporary release candidate search rule is:
The temporary release candidate function is the function that is set to a priority lower than the priority of the function related to the multi-resource request unit for which the resource securing request has failed, and all of the functions to be used 1 used by the function related to the multi-resource request unit which is the function used by securing the resource and the resource securing request has failed.
The multi-function composite apparatus according to claim 4, wherein the function uses at least one of the resources among a plurality of resources.
前記マルチリソース部が有する前記状態情報は、
当該マルチリソース要求部が生成されたときに、第1の状態となり、
当該マルチリソース要求部に関連する前記マルチリソース部によって、当該マルチリソ
ース要求部に関連した前記機能が使用する全ての前記リソースが確保されたときに、第2
の状態になり、
当該マルチリソース要求部の状態が前記第2の状態であり、前記リソース管理部の前記
リソース一時解放部によって、当該マルチリソース要求部に関連した前記機能が使用する
全ての前記リソースを一時的に解放するように要求されて、当該リソースが解放されたと
きに、第3の状態になることを特徴とする請求項1から5に記載の多機能複合装置。
The state information of the multi-resource unit is
When the multi-resource request unit is generated, the first state is entered.
When all the resources used by the function related to the multi-resource request unit are secured by the multi-resource unit related to the multi-resource request unit, the second
It becomes the state of
The state of the multi-resource request unit is the second state, and all the resources used by the function related to the multi-resource request unit are temporarily released by the resource temporary release unit of the resource management unit 6. The multi-function composite apparatus according to claim 1, wherein when the resource is requested and the resource is released, the multi-function composite apparatus is in a third state.
1個又は複数個のリソースを複数個の機能が共通に使用する多機能複合装置のリソース
管理方法であって、
(a)前記機能から、当該機能が使用する全ての前記リソースの確保要求を受け付けた
ときに、当該機能の優先度に基づいて、当該優先度と同じ優先度の異なる1個または複数
個の前記機能に関連した前記リソースの確保要求の中で、最後に当該機能に要求された全
ての前記リソースが割り当てられるように、当該機能に関連した前記リソースの確保要求
の要求順を調整して、処理要求キューに追加し、前記処理要求キューの要求順に従って、
リソース確保要求を実行する工程と、
(b)前記機能から、当該機能が使用する全ての前記リソースの解放要求を受け付けた
ときに、当該機能が使用している全ての当該リソースを解放する工程と、
(c)前記機能から、当該機能が使用する全ての前記リソースの一時解放許可要求を受
け付けたときに、当該機能が使用している全ての当該リソースを一時的に解放する工程と

(d)前記工程(b)または前記工程(c)によって、前記リソースが解放されたとき
に、前記処理要求キューの要求順に従って、前記リソースの確保要求を実行する工程と、
を備えていることを特徴とするリソース管理方法。
A resource management method for a multi-function composite apparatus in which a plurality of functions commonly use one or a plurality of resources,
(A) When receiving a request for securing all of the resources used by the function from the function, based on the priority of the function, the one or more of the priorities having the same priority as the priority In the resource reservation request related to the function, the processing order is adjusted by adjusting the request order of the resource reservation request related to the function so that all the resources requested for the function at the end are allocated. Add to the request queue, and according to the request order of the processing request queue,
Executing a resource securing request; and
(B) releasing all the resources used by the function when a release request for all the resources used by the function is received from the function;
(C) when receiving a temporary release permission request for all the resources used by the function from the function, temporarily releasing all the resources used by the function;
(D) executing the resource securing request according to the request order of the processing request queue when the resource is released by the step (b) or the step (c);
A resource management method comprising:
前記工程(a)は、
(e)前記リソース確保要求が失敗したときに、当該リソース確保要求を要求した前記
機能の前記優先度、使用する全ての前記リソースを既に確保している1個または複数個の
前記機能の前記優先度、及び所定の一時解放候補検索ルールに基づいて、使用する全ての
前記リソースを確保している1個または複数個の前記機能の中から、使用する全ての前記
リソースを一時的に解放してもらう一時解放候補機能を検索し、検索した前記一時解放候
補機能に対して、使用する全ての前記リソースを一時的に解放してもらうように要求する
工程を備えていることを特徴とする請求項7に記載のリソース管理方法。
The step (a)
(E) When the resource securing request fails, the priority of the function that requested the resource securing request, and the priority of one or more of the functions that have already secured all the resources to be used And temporarily releasing all the resources to be used from one or a plurality of the functions that have reserved all the resources to be used based on a predetermined temporary release candidate search rule. The method includes a step of searching for a temporary release candidate function to be obtained and requesting the searched temporary release candidate function to temporarily release all the resources to be used. 8. The resource management method according to 7.
前記一時解放候補検索ルールは、
前記一時解放候補機能が、リソース確保要求が失敗であった前記マルチリソース要求部
に関連した前記機能の前記優先度よりも低い優先度に設定されている前記機能であり、か
つ、使用する全ての前記リソースを確保して、使用している前記機能であり、かつ、リソ
ース確保要求が失敗であった前記マルチリソース要求部に関連した前記機能が利用する1
個または複数個の前記リソースの中の少なくとも1つの前記リソースを使用する前記機能
であることを特徴とする請求項8に記載のリソース管理方法。
The temporary release candidate search rule is:
The temporary release candidate function is the function that is set to a priority lower than the priority of the function related to the multi-resource request unit for which the resource securing request has failed, and all of the functions to be used 1 used by the function related to the multi-resource request unit which is the function used by securing the resource and the resource securing request has failed.
The resource management method according to claim 8, wherein the function uses at least one of the resources among a plurality of resources.
前記リソースは、前記機能によって確保されているか否かの2値の状態によって表され
る2値リソース、及び前記リソースの全容量に対する前記機能によって確保される割合に
よって表される多値リソースであることを特徴とする請求項8または9に記載のリソース
管理方法。
The resource is a binary resource represented by a binary state indicating whether or not the resource is secured and a multi-value resource represented by a ratio secured by the function with respect to the total capacity of the resource. 10. The resource management method according to claim 8 or 9, wherein:
1個又は複数個のリソースを複数個の機能が共通に使用する多機能複合装置の前記リソ
ースを管理する処理をコンピュータに実行させるプログラムであって、
請求項1から6のいずれか1項に記載の多機能複合装置の各手段を実現させる処理を前
記コンピュータに実行させるプログラム。
A program for causing a computer to execute a process for managing the resource of a multi-function composite apparatus in which a plurality of functions commonly use one or a plurality of resources,
The program which makes the said computer perform the process which implement | achieves each means of the multifunctional composite apparatus of any one of Claim 1 to 6.
JP2010236214A 2010-10-21 2010-10-21 Resource management method for multi-function composite device Expired - Fee Related JP5029753B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010236214A JP5029753B2 (en) 2010-10-21 2010-10-21 Resource management method for multi-function composite device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010236214A JP5029753B2 (en) 2010-10-21 2010-10-21 Resource management method for multi-function composite device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2005306728A Division JP4687379B2 (en) 2005-10-21 2005-10-21 Multifunctional composite apparatus and program

Publications (2)

Publication Number Publication Date
JP2011081813A true JP2011081813A (en) 2011-04-21
JP5029753B2 JP5029753B2 (en) 2012-09-19

Family

ID=44075735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010236214A Expired - Fee Related JP5029753B2 (en) 2010-10-21 2010-10-21 Resource management method for multi-function composite device

Country Status (1)

Country Link
JP (1) JP5029753B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000172515A (en) * 1998-09-29 2000-06-23 Nec Corp System and method for resource priority allocation and recording medium where resource priority allocating program is recorded
JP2003179710A (en) * 2001-07-30 2003-06-27 Ricoh Co Ltd Image forming device, image transfer control method to be used for the same device, program for computer to execute the same method and computer readable recording medium recorded with the same program
JP2005004350A (en) * 2003-06-10 2005-01-06 Sony Ericsson Mobilecommunications Japan Inc Resource management method and device, resource management program, and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000172515A (en) * 1998-09-29 2000-06-23 Nec Corp System and method for resource priority allocation and recording medium where resource priority allocating program is recorded
JP2003179710A (en) * 2001-07-30 2003-06-27 Ricoh Co Ltd Image forming device, image transfer control method to be used for the same device, program for computer to execute the same method and computer readable recording medium recorded with the same program
JP2005004350A (en) * 2003-06-10 2005-01-06 Sony Ericsson Mobilecommunications Japan Inc Resource management method and device, resource management program, and storage medium

Also Published As

Publication number Publication date
JP5029753B2 (en) 2012-09-19

Similar Documents

Publication Publication Date Title
JP4939175B2 (en) Image forming apparatus
JPH11110143A (en) Method for making printer system execute printing, printing executing method, computer and printer system
JP5759333B2 (en) System and method for adaptive lot sizing in cell production systems
JP6188478B2 (en) Printing apparatus, printing apparatus control method, and program
JP2009241584A (en) Method of canceling printing job submitted to printer
JP2020042342A (en) Information processing device, and information processing program
JP2014038316A (en) Image forming apparatus, and consumable shortage notification method and program
US11847356B2 (en) Apparatus having a function of reserving a sheet feeding unit and information processing apparatus connected to the same
JP5344075B1 (en) Print image processing system and program
JP2012011698A (en) Printing apparatus, method for scheduling reserved printing and program
JP4687379B2 (en) Multifunctional composite apparatus and program
US7672006B2 (en) Multi-marking engine printing platform
JP2006056069A (en) Printing control unit and printing control method
JP5029753B2 (en) Resource management method for multi-function composite device
US8463416B2 (en) System and method for on-line planning utilizing multiple planning queues
JP2011046034A (en) Image processor, image processing method, image processing program, and recording medium
JP2006195531A (en) Image recording system
JP2021192190A (en) Printing system
JP5644473B2 (en) Information processing apparatus, control program, control method, and image processing system
JP2010041415A (en) Image forming apparatus, memory management method, and memory management program
JP2009163593A (en) Printing system
JP5799968B2 (en) Printing system
JP6094442B2 (en) Print management apparatus, program, and printing system
JP5589582B2 (en) Image processing apparatus and program
JP2007233546A (en) Multifunctional composite system, composite resource management method and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111213

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120306

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120501

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120529

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120611

R150 Certificate of patent or registration of utility model

Ref document number: 5029753

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150706

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees