JP2005115620A - Task management method and electronic apparatus having task management means - Google Patents

Task management method and electronic apparatus having task management means Download PDF

Info

Publication number
JP2005115620A
JP2005115620A JP2003348406A JP2003348406A JP2005115620A JP 2005115620 A JP2005115620 A JP 2005115620A JP 2003348406 A JP2003348406 A JP 2003348406A JP 2003348406 A JP2003348406 A JP 2003348406A JP 2005115620 A JP2005115620 A JP 2005115620A
Authority
JP
Japan
Prior art keywords
task
tasks
priority
task management
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.)
Pending
Application number
JP2003348406A
Other languages
Japanese (ja)
Inventor
Fajar Eko
ファジャル エコー
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2003348406A priority Critical patent/JP2005115620A/en
Publication of JP2005115620A publication Critical patent/JP2005115620A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To perform task management without inhibiting execution of a higher priority task by execution of a lower priority task when a remaining amount of resources decrease. <P>SOLUTION: A task management method performs the task management so as to execute either task selected from among a plurality of tasks executed by using the resources in a system. The plurality of tasks are previously segmented into the plurality of groups the priority of which are fixed, and only a task belonging to the group up to a predetermined priority is selected depending on the remaining amount of resources. Also, the task belonging to the group the priority of which is fixed can be moved to another group. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、タスク管理方法及びタスク管理手段を有する電子機器に関するものであり、特に、システム内でリソースを利用して実行する複数のタスクのうちから選択したいずれかのタスクを実行するようにタスクの管理を行うタスク管理方法、及びそのタスク管理方法を実行するためのタスク管理手段を有する電子機器に関するものである。   The present invention relates to a task management method and an electronic apparatus having task management means, and in particular, a task so as to execute one of tasks selected from a plurality of tasks executed using resources in the system. The present invention relates to a task management method for managing the above and an electronic apparatus having a task management means for executing the task management method.

近年の電子機器は、その多機能化に伴って複数の機能を実現するタスクを予め用意しておき、その中から選択されたタスクを順次実行するように構成している。   2. Description of the Related Art Recent electronic devices are configured to prepare tasks for realizing a plurality of functions in advance as their functions increase, and sequentially execute tasks selected from the tasks.

たとえば、携帯電話機では、通話機能を実現するための通話タスクやゲーム機能を実現するためのゲームタスクなどが用意されており、ユーザーからの指示に応じてシステムが複数のタスクからいずれかのタスクを選択し、そのタスクを実行するようにしている。   For example, a mobile phone has a call task for realizing a call function, a game task for realizing a game function, and the like, and the system performs one of a plurality of tasks according to an instruction from a user. Select and try to perform that task.

そして、タスクの実行は、システムが有する電源やメモリなどといったリソースを利用して行われることになる。   The task is executed using resources such as a power source and a memory included in the system.

ここで問題となるのは、リソースが有限であるために、リソースの残量不足によって所望のタスクが実行できない場合が発生することであった。   The problem here is that, since the resources are finite, a desired task cannot be executed due to a shortage of remaining resources.

そのため、従来の電子機器では、実行の要求のあったタスクが残存するリソースで実行できるか否かを判断し、実行できる場合だけそのタスクを実行するようにしたもの(たとえば、特許文献1参照。)や、予め全てのタスクに優先順位を設定しておき、リソースの残量にかかわらず常に優先順位の高いタスクから実行するようにしたもの(たとえば、特許文献2参照。)があった。
特許第3045981号公報 特開2000−293386号公報
Therefore, in the conventional electronic device, it is determined whether or not the task requested to be executed can be executed with the remaining resources, and the task is executed only when it can be executed (see, for example, Patent Document 1). ) And priorities are set for all tasks in advance, and tasks are always executed from a task with a higher priority regardless of the remaining amount of resources (for example, see Patent Document 2).
Japanese Patent No. 3045981 JP 2000-293386 A

ところが、上記した従来の電子機器にあっては、未だリソースの残量不足によって所望のタスクが実行できなくなるおそれがあった。   However, in the above-described conventional electronic device, there is a possibility that a desired task cannot be executed due to a shortage of remaining resources.

すなわち、特許文献1に開示されたリソース残量に応じて実行可能なタスクだけを実行するものでは、それほど重要ではないタスクの実行要求がなされた場合に、その重要でないタスクが残存するリソースで実行できるのであれば、そのタスクの実行が行われることになる。   In other words, in the case of executing only an executable task according to the remaining resource amount disclosed in Patent Document 1, when an execution request for a less important task is made, the less important task is executed with the remaining resource. If it can, the task will be executed.

そのため、重要でないタスクの実行によってリソースが消費されてしまい、その後に重要なタスクの実行要求がなされた場合に、その重要なタスクの実行がリソース不足で実行できなくなるおそれがあった。   For this reason, when an unimportant task is executed, resources are consumed, and when an important task execution request is made thereafter, the important task may not be executed due to insufficient resources.

また、特許文献2に開示された常に優先順位順にタスクの実行を行うものでは、優先順位の高い重要なタスクが実行される頻度は高くなるものの、優先順位の高い重要なタスクに対する実行要求がなされずに優先順位の低いそれほど重要ではないタスクに対する実行要求だけがなされた場合には、その優先順位の低いタスクの実行が行われることになる。   Further, in the case where tasks are always executed in the order of priority disclosed in Patent Document 2, the frequency of execution of important tasks with high priority is increased, but an execution request for important tasks with high priority is made. If only an execution request for a less important task with a lower priority is made, the task with the lower priority is executed.

そのため、この場合も、重要でないタスクの実行によってリソースが消費されてしまい、その後に重要なタスクの実行要求がなされても、その重要なタスクの実行がリソース不足で実行できなくなるおそれがあった。   Therefore, in this case as well, resources are consumed due to the execution of unimportant tasks, and even if an important task execution request is subsequently made, there is a possibility that the execution of the important task cannot be executed due to insufficient resources.

このように、上記した従来の電子機器にあっては、リソースの残量が低減してきた場合に、重要でないタスクの実行によってリソースが消費され、それによって重要なタスクの実行が妨げられてしまうおそれがあった。   As described above, in the above-described conventional electronic device, when the remaining amount of the resource has been reduced, the resource may be consumed due to the execution of the unimportant task, thereby preventing the execution of the important task. was there.

そこで、請求項1に係る本発明では、システム内でリソースを利用して実行する複数のタスクのうちから選択したいずれかのタスクを実行するようにタスクの管理を行うタスク管理方法において、複数のタスクを優先順位を定めた複数のグループに予め分けておき、リソースの残量に応じて所定の優先順位までのグループに属するタスクだけを選択するようにした。   Therefore, in the present invention according to claim 1, in a task management method for managing a task so as to execute any task selected from a plurality of tasks executed using resources in the system, Tasks are divided in advance into a plurality of groups with priorities, and only tasks belonging to groups up to a predetermined priority are selected according to the remaining amount of resources.

また、請求項2に係る本発明では、前記請求項1において、前記優先順位を定めたグループに属するタスクを他のグループに移動できるようにした。   Further, in the present invention according to claim 2, the task belonging to the group in which the priority is determined in the claim 1 can be moved to another group.

また、請求項3に係る本発明では、リソースを利用して実行する複数のタスクのうちから選択したいずれかのタスクを実行するようにタスクの管理を行うタスク管理手段を有する電子機器において、前記タスク管理手段は、複数のタスクを優先順位を定めた複数のグループに予め分けておき、リソースの残量に応じて所定の優先順位までのグループに属するタスクだけを選択するように構成することにした。   Further, in the present invention according to claim 3, in an electronic apparatus having task management means for managing a task so as to execute any task selected from a plurality of tasks to be executed using resources, The task management means is configured to divide a plurality of tasks into a plurality of groups with predetermined priorities, and to select only tasks belonging to groups up to a predetermined priority according to the remaining amount of resources. did.

また、請求項4に係る本発明では、前記請求項3に係る本発明において、前記タスク管理手段は、前記優先順位を定めたグループに属するタスクを他のグループに移動できるように構成することにした。   Further, in the present invention according to claim 4, in the present invention according to claim 3, the task management means is configured to be able to move a task belonging to the group in which the priority is determined to another group. did.

そして、本発明では、以下に記載する効果を奏する。   And in this invention, there exists an effect described below.

すなわち、請求項1に係る本発明では、システム内でリソースを利用して実行する複数のタスクのうちから選択したいずれかのタスクを実行するようにタスクの管理を行うタスク管理方法において、複数のタスクを優先順位を定めた複数のグループに予め分けておき、リソースの残量に応じて所定の優先順位までのグループに属するタスクだけを選択するようにしているため、リソースの残量が減少した際に優先順位の低いタスクの実行によって優先順位の高いタスクの実行が妨げられることなくタスクの管理を行うことができる。   That is, in the present invention according to claim 1, in a task management method for managing a task so as to execute any task selected from a plurality of tasks executed using resources in the system, Tasks are divided into multiple groups with priorities, and only tasks belonging to groups up to a predetermined priority are selected according to the remaining amount of resources, reducing the remaining amount of resources. In this case, task management can be performed without obstructing execution of a task with a higher priority by execution of a task with a lower priority.

また、請求項2に係る本発明では、優先順位を定めたグループに属するタスクを他のグループに移動できるようにしているため、システムやユーザーが任意にタスクの優先順位を変更することができるので、システムやユーザーに適したタスクの管理を行うことができる。   Further, in the present invention according to claim 2, since the tasks belonging to the group in which the priority order is set can be moved to another group, the system and the user can arbitrarily change the task priority order. Can manage tasks suitable for the system and users.

また、請求項3に係る本発明では、リソースを利用して実行する複数のタスクのうちから選択したいずれかのタスクを実行するようにタスクの管理を行うタスク管理手段を有する電子機器において、前記タスク管理手段は、複数のタスクを優先順位を定めた複数のグループに予め分けておき、リソースの残量に応じて所定の優先順位までのグループに属するタスクだけを選択するように構成することにしているため、リソースの残量が減少した際に優先順位の低いタスクの実行によって優先順位の高いタスクの実行が妨げられることがなくなり、電子機器の使い勝手を向上させることができる。   Further, in the present invention according to claim 3, in an electronic apparatus having task management means for managing a task so as to execute any task selected from a plurality of tasks to be executed using resources, The task management means is configured to divide a plurality of tasks into a plurality of groups with predetermined priorities and select only tasks belonging to groups up to a predetermined priority according to the remaining amount of resources. Therefore, when the remaining amount of resources decreases, the execution of a task with a high priority is not hindered by the execution of a task with a low priority, and the usability of the electronic device can be improved.

また、請求項4に係る本発明では、タスク管理手段は、前記優先順位を定めたグループに属するタスクを他のグループに移動できるように構成したため、システムやユーザーが任意にタスクの優先順位を変更することができ、システムやユーザーに適した電子機器とすることができる。   Further, in the present invention according to claim 4, the task management means is configured to be able to move the task belonging to the group in which the priority is set to another group, so that the system or the user can arbitrarily change the priority of the task. Therefore, the electronic device suitable for the system and the user can be obtained.

本発明に係る電子機器は、システムの電源やメモリーなどといったリソースを使用して複数の機能を実現するためのタスク(たとえば、携帯電話機における通話タスクやゲームタスクやスケージュール管理タスクなど)を予め用意しておき、その中から選択されたタスクを順次実行するタスク管理手段を有するものである。   The electronic device according to the present invention prepares tasks for realizing a plurality of functions using resources such as a system power supply and a memory (for example, a call task, a game task, a schedule management task in a mobile phone) in advance. In addition, task management means for sequentially executing tasks selected from the tasks is provided.

このタスク管理手段は、システム内でリソースを利用して実行する複数のタスクのうちから選択したいずれかのタスクを実行するようにタスクの管理を行うものである。   This task management means manages tasks so as to execute any task selected from a plurality of tasks executed using resources in the system.

しかも、このタスク管理手段では、複数のタスクを優先順位を定めた複数のグループに予め分けておき、リソースの残量に応じて所定の優先順位までのグループに属するタスクだけを選択するようにしている。   In addition, in this task management means, a plurality of tasks are divided into a plurality of groups with predetermined priorities, and only tasks belonging to groups up to a predetermined priority are selected according to the remaining amount of resources. Yes.

すなわち、リソースの残量が所定量以上の場合には、全てのグループに属するタスクをタスク群の優先順位の高い順に実行し、その後、リソースの残量が所定量以下になった場合には、所定の優先順位よりも高いグループに属するタスクだけをタスク群の優先順位の高い順に実行するようにしている。   That is, when the remaining amount of the resource is equal to or greater than the predetermined amount, the tasks belonging to all the groups are executed in descending order of the priority of the task group. Only tasks belonging to a group higher than a predetermined priority are executed in descending order of task group priority.

そして、各優先順位のグループ(タスク群)に属するタスクは、システム又はユーザーが任意に他のグループに移動できるようにしている。   The tasks belonging to each priority group (task group) can be arbitrarily moved to another group by the system or the user.

このように、本発明では、リソースの残量に応じて所定の優先順位までのグループに属するタスクだけを選択するようにしているため、リソースの残量が減少した際に優先順位の低いタスクの実行によって優先順位の高いタスクの実行が妨げられることなくタスクの管理を行うことができる。   As described above, according to the present invention, only the tasks belonging to the group up to a predetermined priority are selected according to the remaining amount of resources, so when the remaining amount of resources decreases, Task management can be performed without impeding the execution of tasks with higher priorities.

特に、優先順位を定めたグループに属するタスクを他のグループに移動できるようにした場合には、システムやユーザーが任意にタスクの優先順位を変更することができるので、システムやユーザーに適したタスクの管理を行うことができる。   In particular, when a task belonging to a group for which priority is set can be moved to another group, the system or user can arbitrarily change the priority of the task. Can be managed.

以下に、本発明に係る電子機器の具体的な構成について図面を参照しながら説明する。なお、電子機器には、携帯電話機、携帯端末機、デジタルカメラ・デジタルビデオカメラなどの画像処理機器、音声機器などの各種電子機器が含まれる。また、以下の説明では、リソースとして電源を例に説明しているが、リソースとしては、これに限られず、メモリーやコンデンサなどのシステムで使用するあらゆるリソースが含まれる。   Hereinafter, a specific configuration of the electronic device according to the present invention will be described with reference to the drawings. Note that the electronic devices include various electronic devices such as mobile phones, portable terminals, image processing devices such as digital cameras and digital video cameras, and audio devices. In the following description, a power source is described as an example of a resource. However, the resource is not limited to this, and includes any resource used in a system such as a memory or a capacitor.

図1は、本発明に係る電子機器1を模式的に示すブロック図であり、電子機器1は、CPU2に各種の周辺回路3,4とメモリ等の記録媒体5と入出力インターフェイス6とをシステムバス10を介して接続している。この入力インターフェイス6には、キーボード等の入力装置7を接続して外部からの入力が行えるようになっている。   FIG. 1 is a block diagram schematically showing an electronic apparatus 1 according to the present invention. The electronic apparatus 1 is a system in which various peripheral circuits 3 and 4, a recording medium 5 such as a memory, and an input / output interface 6 are connected to a CPU 2. Connected via bus 10. An input device 7 such as a keyboard is connected to the input interface 6 so that external input can be performed.

また、電子機器1は、電源としての電池9の残量を検出するための電池残量情報取得回路8をシステムバス10を介して接続している。この電池残量情報取得回路8は、電池9の電極に接続されており、また、CPU2にプロセッサポート11を介して直接的に接続されている。   Further, the electronic device 1 is connected via a system bus 10 to a battery remaining amount information acquisition circuit 8 for detecting the remaining amount of the battery 9 as a power source. The battery remaining amount information acquisition circuit 8 is connected to the electrode of the battery 9 and is directly connected to the CPU 2 via the processor port 11.

この電子機器1は、CPU2によって各種の制御を行って動作するように構成しており、システム又はユーザーから要求されたタスクを以下に記載するタスク管理方法を用いて実行するようにしている。なお、以下のタスク管理は、CPU2で実行されるソフトウェアによるものに限られず、各種の専用回路で構成したハードウェアによるものでもよい。   The electronic apparatus 1 is configured to operate by performing various controls by the CPU 2 and executes a task requested by the system or the user by using a task management method described below. The following task management is not limited to software executed by the CPU 2, but may be hardware based on various dedicated circuits.

すなわち、電子機器1は、システム又はユーザーからタスクの要求があった場合には、予め所定のタスクキューに要求されたタスクを順次格納しておき、所定のタイミングでタスクキューに格納されているタスクを選択し、その後、そのタスクを実行するようにしている。   That is, when there is a task request from the system or the user, the electronic device 1 sequentially stores the tasks requested in advance in a predetermined task queue and stores the tasks stored in the task queue at a predetermined timing. Select and then perform that task.

ここで、電子機器1で実行できるタスク(T0〜T12)は、たとえば表1に示すように、予め所定の優先順位が設定されている。なお、優先順位は、5、4、3、2、1、0の順で高くなるようにしている。   Here, as shown in Table 1, for example, tasks (T0 to T12) that can be executed by the electronic device 1 have a predetermined priority set in advance. Note that the priority order increases in the order of 5, 4, 3, 2, 1, 0.

Figure 2005115620
また、各タスクには、たとえば表2に示すように、予めエネルギー制限、サイクル制限、実行時間制限が定められている。なお、表2において、各タスクのサイクル数は、(実行時間)x(動作周波数)で算出され、そのときに消費するエネルギーは、(タスクの実行に要した時間)x((プロセッサの消費電力)+(周辺回路の消費電力))で算出され、プロセッサの動作周波数を50MHz、プロセッサの消費電力を1Wとしている。
Figure 2005115620
For each task, as shown in Table 2, for example, an energy limit, a cycle limit, and an execution time limit are set in advance. In Table 2, the number of cycles of each task is calculated by (execution time) x (operation frequency), and the energy consumed at that time is (time required for task execution) x ((processor power consumption) ) + (Power consumption of peripheral circuit))), the operating frequency of the processor is 50 MHz, and the power consumption of the processor is 1 W.

Figure 2005115620
また、図2に示すように、各優先順位ごとにタスクキューを設けており、タスクの要求があった場合には、そのタスクに対して設定されている優先順位のタスクキューに要求のあったタスクを格納するようにしている。
Figure 2005115620
In addition, as shown in FIG. 2, a task queue is provided for each priority, and when a task is requested, there is a request in the task queue having the priority set for the task. Tasks are stored.

そして、電子機器1は、図3に示すように、まず、電池残量情報取得回路8を用いて電池9の残量を取得する(ステップS1)。   Then, as shown in FIG. 3, the electronic device 1 first acquires the remaining amount of the battery 9 using the remaining battery amount information acquisition circuit 8 (step S1).

次に、ステップS1で取得した電池残量に基づいて、リソースレベルを決定する(ステップS2)。ここで、リソースレベルは、たとえば表3に示すように、電池残量に対応した予め設定されたレベルを表している。   Next, the resource level is determined based on the remaining battery level acquired in step S1 (step S2). Here, the resource level represents a preset level corresponding to the remaining battery level as shown in Table 3, for example.

Figure 2005115620
次に、ステップS2で決定したリソースレベルに基づいて、実行可能な優先順位を決定する(ステップS3)。ここで、実行可能な優先順位は、たとえば表4に示すように、リソースレベルごとに予め設定されている。
Figure 2005115620
Next, an executable priority order is determined based on the resource level determined in step S2 (step S3). Here, the executable priorities are set in advance for each resource level as shown in Table 4, for example.

Figure 2005115620
次に、実行可能な優先順位までのタスクキューに格納されているタスクの中から実行するタスクを優先順位の高い順に選択する(ステップS4)。
Figure 2005115620
Next, tasks to be executed are selected in descending order of priority from the tasks stored in the task queue up to the executable priority (step S4).

たとえば、ステップS1で取得した電池残量が62%であった場合には、表3からリソースレベルが1と決定され、表4から実行可能な優先順位が1と決定され、各優先順位のタスクキューに図2に例示するようなタスクが格納されているとすると、優先順位が0及び1のタスクキューに格納されているタスクT0とT2を優先順位が高い順、すなわち、T0、T2の順に選択する。   For example, if the remaining battery level acquired in step S1 is 62%, the resource level is determined as 1 from Table 3, the executable priority is determined as 1 from Table 4, and the task of each priority level is determined. If tasks such as those illustrated in FIG. 2 are stored in the queue, the tasks T0 and T2 stored in the task queues with priority levels 0 and 1 are ordered in descending order of priority, that is, in order of T0 and T2. select.

最後に、ステップS4で選択されたタスクを優先順位の高い順に実行する(ステップS5)。たとえば、先の例の場合には、優先順位が0及び1のタスクキューに格納されているタスクT0とT2を優先順位が高い順、すなわち、T0、T2の順に実行する。   Finally, the tasks selected in step S4 are executed in descending order of priority (step S5). For example, in the case of the previous example, the tasks T0 and T2 stored in the task queues with priority levels 0 and 1 are executed in the order of higher priority levels, that is, T0 and T2.

このようにして、電子機器1は、システム内でリソースを利用して実行する複数のタスクのうちから選択したいずれかのタスクを実行するようにタスクの管理を行っている。   In this way, the electronic device 1 manages tasks so as to execute any task selected from a plurality of tasks executed using resources in the system.

そして、図3に示したタスク管理方法では、複数のタスクを優先順位を定めた複数のグループに予め分けておき、リソースの残量に応じて所定の優先順位までのグループに属するタスクだけを選択するようにしている。   In the task management method shown in FIG. 3, a plurality of tasks are divided into a plurality of groups with priorities set in advance, and only tasks belonging to groups up to a predetermined priority are selected according to the remaining amount of resources. Like to do.

そのため、リソースの残量が減少した際に優先順位の低いタスクの実行によって優先順位の高いタスクの実行が妨げられることなくタスクの管理を行うことができる。   Therefore, when the remaining amount of resources is reduced, task management can be performed without impeding the execution of a task with a higher priority due to the execution of a task with a lower priority.

そして、図3に示したタスク管理方法では、優先順位を定めたグループに属するタスクが予め設定してある場合について説明したが、優先順位を定めたグループに属するタスクをシステムやユーザーが任意に他のグループに移動できるようにすることもできる。   In the task management method shown in FIG. 3, a case has been described in which tasks belonging to a group for which priority is set are set in advance. However, a system or a user can arbitrarily add tasks belonging to a group for which priority has been set. You can also move to other groups.

すなわち、図4に示すように、まず、ユーザー又はシステムからタスクの要求(ステップS11)があった場合に、前記ステップS1〜ステップS3と同様の電池残量情報の取得(ステップS12)、リソースレベルの決定(ステップS13)、実行可能な優先順位の決定(ステップS14)を行う。   That is, as shown in FIG. 4, first, when there is a task request (step S11) from the user or the system, acquisition of battery remaining amount information (step S12) similar to step S1 to step S3, resource level (Step S13), and an executable priority order (step S14).

その後、ステップS11で要求されたタスクが実行可能な優先順位に属していて実行が可能かどうかを判断する(ステップS15)。   Thereafter, it is determined whether or not the task requested in step S11 belongs to an executable priority order and can be executed (step S15).

そして、実行可能と判断した場合には、そのままそのタスクを実行する(ステップS16)。   If it is determined that the task can be executed, the task is executed as it is (step S16).

一方、実行不可能と判断した場合には、実行要求のあったシステム又はユーザーにそのタスクの実行を行わなくてもいいかどうかを確認する(ステップS17)。   On the other hand, if it is determined that the task cannot be executed, the system or the user who has requested execution is checked whether the task need not be executed (step S17).

そして、システム又はユーザーから実行を強制する要求があった場合には、そのタスクの優先順位を変更し(ステップS18)、その後、そのタスクを実行する(ステップS16)。   If there is a request from the system or user to force execution, the priority of the task is changed (step S18), and then the task is executed (step S16).

一方、システム又はユーザーから実行を強制する要求がなかった場合には、そのタスクの実行は行わない。   On the other hand, if there is no request to force execution from the system or user, the task is not executed.

たとえば、先の例で説明すると、電池残量が62%のときに、タスクT1の実行要求があった場合には、そのタスクを実行し、タスクT5の要求があった場合には、強制実行の要求があったときに限りタスクT5の優先順位を0又は1に変更して、その実行を行う。   For example, in the previous example, when the remaining battery level is 62%, if there is a request for execution of task T1, the task is executed, and if there is a request for task T5, forced execution Only when there is a request, the priority of the task T5 is changed to 0 or 1 and executed.

このようにして、図4に示したタスク管理方法では、優先順位を定めたグループに属するタスクをシステムやユーザーが任意に他のグループに移動できるようにしている。   In this manner, in the task management method shown in FIG. 4, the system and the user can arbitrarily move the tasks belonging to the group in which the priority order is determined to another group.

そのため、システムやユーザーが任意にタスクの優先順位を変更することができるので、システムやユーザーに適したタスクの管理を行うことができる。   Therefore, since the priority order of tasks can be arbitrarily changed by the system or user, management of tasks suitable for the system or user can be performed.

また、図3に示したタスク管理方法では、選択されたタスクをステップS5で必ず実行するようにしていたが、選択されたタスクの実行が完了できるかどうかを電池残量とタスクのエネルギー制限とに基づいて判断し、完了可能な場合には、そのまま実行し、完了不可能な場合には、強制実行の要求があったときだけ実行するようにしてもよい。   In the task management method shown in FIG. 3, the selected task is always executed in step S5. However, whether or not the execution of the selected task can be completed depends on the remaining battery level and the task energy limit. If it can be completed, it can be executed as it is. If it cannot be completed, it can be executed only when there is a request for forced execution.

すなわち、図5に示すように、まず、前記ステップS1〜ステップS4と同様の電池残量情報の取得(ステップS21)、リソースレベルの決定(ステップS22)、実行可能な優先順位の決定(ステップS23)、タスクの選択(ステップS24)を行う。   That is, as shown in FIG. 5, first, the remaining battery level information similar to Steps S1 to S4 (Step S21), resource level determination (Step S22), and executable priority order determination (Step S23). ) And task selection (step S24).

次に、ステップS24で選択されたタスクの実行が完了できるかどうかを電池残量とタスクのエネルギー制限とに基づいて判断する(ステップS25)。   Next, it is determined whether or not the execution of the task selected in step S24 can be completed based on the remaining battery level and the task energy limit (step S25).

そして、完了可能と判断した場合には、そのままそのタスクを実行する(ステップS26)。   If it is determined that the task can be completed, the task is executed as it is (step S26).

一方、完了不可能と判断した場合には、実行要求のあったシステム又はユーザーにそのタスクの実行を行わなくてもいいかどうかを確認する(ステップS27)。   On the other hand, if it is determined that the task cannot be completed, the system or the user who has requested execution is checked whether the task need not be executed (step S27).

そして、システム又はユーザーから実行を強制する要求があった場合には、そのタスクを実行する(ステップS26)。   If there is a request from the system or user to force execution, the task is executed (step S26).

一方、システム又はユーザーから実行を強制する要求がなかった場合には、そのタスクの実行は行わない。   On the other hand, if there is no request to force execution from the system or user, the task is not executed.

たとえば、先の例で説明すると、電池残量が62%のときに、タスクT2が選択された場合は、電池残量が10000ジュール以上のときには、そのタスクを実行し、電池残量が10000ジュール未満のときには、強制実行の要求があったときに限りその実行を行う。   For example, in the previous example, when the remaining battery level is 62% and task T2 is selected, if the remaining battery level is 10,000 joules or more, the task is executed and the remaining battery level is 10,000 joules. If it is less, the execution is performed only when there is a request for forced execution.

このようにして、図5に示したタスク管理方法では、選択されたタスクの実行が完了不可能な場合には、強制実行の要求があったときだけ実行するようにしている。   In this way, in the task management method shown in FIG. 5, when the execution of the selected task cannot be completed, the task management method is executed only when there is a request for forced execution.

そのため、システム又はユーザーが認識していないにもかかわらず不意にタスクの実行が未完了のままリソース不足で終了してしまうことを防止することができる。   Therefore, it is possible to prevent a task from being unexpectedly terminated due to a shortage of resources while the system or the user does not recognize the task.

本発明に係る電子機器を模式的に示すブロック図。1 is a block diagram schematically showing an electronic apparatus according to the invention. タスクキューを模式的に示す説明図。Explanatory drawing which shows a task queue typically. タスク管理方法を示すフローチャート。The flowchart which shows a task management method. タスク管理方法を示すフローチャート。The flowchart which shows a task management method. タスク管理方法を示すフローチャート。The flowchart which shows a task management method.

符号の説明Explanation of symbols

1 電子機器
2 CPU
3,4 周辺回路
5 記録媒体
6 入出力インターフェース
7 電池残量情報取得回路
8 電池
9 システムバス
10 プロセッサーポート
1 Electronic equipment 2 CPU
3,4 Peripheral circuit 5 Recording medium 6 Input / output interface 7 Battery level information acquisition circuit 8 Battery 9 System bus
10 processor ports

Claims (4)

システム内でリソースを利用して実行する複数のタスクのうちから選択したいずれかのタスクを実行するようにタスクの管理を行うタスク管理方法において、
複数のタスクを優先順位を定めた複数のグループに予め分けておき、リソースの残量に応じて所定の優先順位までのグループに属するタスクだけを選択するようにしたことを特徴とするタスク管理方法。
In a task management method for managing a task so as to execute any one of tasks selected from a plurality of tasks executed using resources in the system,
A task management method characterized in that a plurality of tasks are divided into a plurality of groups with predetermined priorities, and only tasks belonging to groups up to a predetermined priority are selected according to the remaining amount of resources. .
前記優先順位を定めたグループに属するタスクを他のグループに移動できるようにしたことを特徴とする請求項1に記載のタスク管理方法。   The task management method according to claim 1, wherein tasks belonging to the group in which the priority is set can be moved to another group. リソースを利用して実行する複数のタスクのうちから選択したいずれかのタスクを実行するようにタスクの管理を行うタスク管理手段を有する電子機器において、
前記タスク管理手段は、複数のタスクを優先順位を定めた複数のグループに予め分けておき、リソースの残量に応じて所定の優先順位までのグループに属するタスクだけを選択するように構成したことを特徴とするタスク管理手段を有する電子機器。
In an electronic device having a task management means for managing a task so as to execute any task selected from a plurality of tasks executed using resources,
The task management means is configured to divide a plurality of tasks into a plurality of groups with predetermined priorities and select only tasks belonging to groups up to a predetermined priority according to the remaining amount of resources. An electronic device having task management means characterized by the above.
前記タスク管理手段は、前記優先順位を定めたグループに属するタスクを他のグループに移動できるように構成したことを特徴とする請求項3に記載のタスク管理手段を有する電子機器。   4. The electronic apparatus having task management means according to claim 3, wherein the task management means is configured to be able to move a task belonging to the group in which the priority is determined to another group.
JP2003348406A 2003-10-07 2003-10-07 Task management method and electronic apparatus having task management means Pending JP2005115620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003348406A JP2005115620A (en) 2003-10-07 2003-10-07 Task management method and electronic apparatus having task management means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003348406A JP2005115620A (en) 2003-10-07 2003-10-07 Task management method and electronic apparatus having task management means

Publications (1)

Publication Number Publication Date
JP2005115620A true JP2005115620A (en) 2005-04-28

Family

ID=34540610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003348406A Pending JP2005115620A (en) 2003-10-07 2003-10-07 Task management method and electronic apparatus having task management means

Country Status (1)

Country Link
JP (1) JP2005115620A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008204243A (en) * 2007-02-21 2008-09-04 Hitachi Software Eng Co Ltd Job execution control method and system
JP2010287046A (en) * 2009-06-11 2010-12-24 Nec Corp System, method and program for distributing resource
WO2012081079A1 (en) * 2010-12-13 2012-06-21 富士通株式会社 Information processing device, method of controlling power, and power control program
JP2014167780A (en) * 2013-02-28 2014-09-11 Toshiba Corp Information processing device, operation state control method, and program
CN112540841A (en) * 2020-12-28 2021-03-23 智慧神州(北京)科技有限公司 Task scheduling method and device, processor and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008204243A (en) * 2007-02-21 2008-09-04 Hitachi Software Eng Co Ltd Job execution control method and system
JP2010287046A (en) * 2009-06-11 2010-12-24 Nec Corp System, method and program for distributing resource
WO2012081079A1 (en) * 2010-12-13 2012-06-21 富士通株式会社 Information processing device, method of controlling power, and power control program
JP5505517B2 (en) * 2010-12-13 2014-05-28 富士通株式会社 Information processing apparatus, power control method, and power control program
US8966504B2 (en) 2010-12-13 2015-02-24 Fujitsu Limited Information processing apparatus, electrical power control method, and computer product
JP2014167780A (en) * 2013-02-28 2014-09-11 Toshiba Corp Information processing device, operation state control method, and program
US9625970B2 (en) 2013-02-28 2017-04-18 Kabushiki Kaisha Toshiba Information processing apparatus, operation state control method, and computer program product
CN112540841A (en) * 2020-12-28 2021-03-23 智慧神州(北京)科技有限公司 Task scheduling method and device, processor and electronic equipment

Similar Documents

Publication Publication Date Title
KR101522081B1 (en) System and method of executing threads at a processor
KR100700951B1 (en) Apparatus and method for multi task management in mobile communication system
KR101516859B1 (en) System and method for controlling central processing unit power with guaranteed steady state deadlines
CN107479951A (en) Process management-control method, device, storage medium and electronic equipment
JP2022518127A (en) Resource scheduling methods and equipment, electronic devices and recording media
JP2008234638A (en) Controller for processing apparatus
JP2006243864A (en) Processor and information processing method
JP2005115620A (en) Task management method and electronic apparatus having task management means
US20150220362A1 (en) Multi-core processor system, electrical power control method, and computer product for migrating process from one core to another
WO2010137233A1 (en) Power saving control device for multiprocessor system, and mobile terminal
JP2007068095A (en) Autonomously adaptive integrated base station and resource control method
KR20180078558A (en) Method of operating system on chip, system on chip performing the same and electronic system including the same
CN114546171A (en) Data distribution method, data distribution device, storage medium and electronic equipment
JP2007220026A (en) Timer device, timer processing method, timer processing program, electronic apparatus, and circuit device
JP3830133B2 (en) Power control apparatus and method, and power control program
CN112631781A (en) Operator execution method and device, electronic equipment and storage medium
KR100517723B1 (en) TASK SCHEDULLING METHOD FOR MAINTAINING QoS OF MULTIMEDIA TASK IN WIRELESS TERMINAL
JPWO2008117369A1 (en) Electronic equipment and load balancing program
JP2011151609A (en) Clock transmission system of spread spectrum system
WO2014136405A1 (en) Electronic apparatus, power supply control method, and program
CN118092628A (en) Control method, control device, chip and computer readable storage medium
CN113986512A (en) Task scheduling method and electronic equipment
CN117435347A (en) Scheduling method and system of processor core, equipment and storage medium
EP4272415A1 (en) Method and apparatus for maximizing a number of connections that can be executed from a mobile application
CN117472471A (en) Application program configuration method, device, equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20060530

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071122

A131 Notification of reasons for refusal

Effective date: 20071204

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080401