JP6443813B2 - Task management method and task management device - Google Patents

Task management method and task management device Download PDF

Info

Publication number
JP6443813B2
JP6443813B2 JP2016538038A JP2016538038A JP6443813B2 JP 6443813 B2 JP6443813 B2 JP 6443813B2 JP 2016538038 A JP2016538038 A JP 2016538038A JP 2016538038 A JP2016538038 A JP 2016538038A JP 6443813 B2 JP6443813 B2 JP 6443813B2
Authority
JP
Japan
Prior art keywords
scenario
task
background task
background
foreground
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.)
Active
Application number
JP2016538038A
Other languages
Japanese (ja)
Other versions
JP2016540313A (en
Inventor
孔▲剛▼ 魏
孔▲剛▼ 魏
▲ユ▼ 彭
▲ゆ▼ 彭
京 ▲趙▼
京 ▲趙▼
Original Assignee
華為終端有限公司
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 華為終端有限公司 filed Critical 華為終端有限公司
Publication of JP2016540313A publication Critical patent/JP2016540313A/en
Application granted granted Critical
Publication of JP6443813B2 publication Critical patent/JP6443813B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3228Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/461Saving or restoring of program or task context
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5094Allocation of resources, e.g. of the central processing unit [CPU] where the allocation takes into account power or heat criteria
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)
  • Mobile Radio Communication Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Description

本出願は、参照によりその全体が本明細書に組み入れられる、2013年12月10日付で中国特許庁に出願された、「TASK MANAGEMENT METHOD AND DEVICE」という名称の中国特許出願第201310665434.9号の優先権を主張するものである。   This application is the priority of Chinese Patent Application No. 201310665434.9 entitled “TASK MANAGEMENT METHOD AND DEVICE” filed with the Chinese Patent Office on December 10, 2013, which is incorporated herein by reference in its entirety. Is an insistence.

本発明は通信分野に関し、詳細には、タスク管理方法およびタスク管理デバイスに関する。   The present invention relates to the communication field, and in particular, to a task management method and a task management device.

通信技術の発展と共に、現在、多くのデバイスがマルチタスクシステムをサポートしている。すなわち、デバイスは同時に複数のアプリケーションプログラムを走らせることができ、1つのアプリケーションプログラムは、その各々がタスクと呼ばれる1つまたは複数のスレッドを有することができる。複数のタスクは普通、フォアグラウンドタスクとバックグラウンドタスクとを含む。フォアグラウンドタスクはユーザ対話を必要とするタスクをいう。すなわち、フォアグラウンドタスクの実行時にはユーザによる操作入力を受け取る必要がある。バックグラウンドタスクはユーザ対話を必要としないタスクをいう。すなわち、バックグラウンドタスクの実行時にはユーザによる操作入力を受け取る必要がない。バックグラウンドタスクはユーザ対話を必要としないため、バックグラウンドタスクは一般に、ユーザセンシティブなタスクではなく、または、バックグラウンドタスクはユーザに関係するものではない。言い換えると、バックグラウンドタスクの中には実行される必要のないものがある。しかし、バックグラウンドタスクは、システムのバックグラウンドで頻繁に実行され、デバイスの電力を絶えず消費する。現在のところ、デバイスは大幅な電力消費および電力損失をこうむる可能性があることがわかる。   With the development of communication technology, many devices now support multitasking systems. That is, the device can run multiple application programs simultaneously, and an application program can have one or more threads, each called a task. The multiple tasks typically include a foreground task and a background task. A foreground task is a task that requires user interaction. That is, it is necessary to receive an operation input by the user when executing the foreground task. Background tasks are tasks that do not require user interaction. That is, it is not necessary to receive an operation input by the user when the background task is executed. Since background tasks do not require user interaction, background tasks are generally not user-sensitive tasks, or background tasks are not user related. In other words, some background tasks do not need to be executed. However, background tasks are frequently executed in the background of the system and consume device power constantly. At present, it can be seen that devices can suffer significant power consumption and power loss.

本発明の実施形態は、デバイスの電力消費および電力損失を低減させるために、タスク管理方法およびタスク管理デバイスを提供する。   Embodiments of the present invention provide a task management method and a task management device in order to reduce power consumption and power loss of the device.

第1の態様によれば、本発明の一実施形態はタスク管理方法を提供し、本方法は、
フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するステップと、
フォアグラウンドタスクに対応する第1のシナリオが第1のリストにあるときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するステップであって、第1のリストはタスク制限が許可されるシナリオを含む、少なくとも1つのバックグラウンドタスクを探索するステップと、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップであって、制限処理はシステムリソース使用を低減させるための処理をいう、制限処理を行うステップと
を含む。
According to a first aspect, an embodiment of the present invention provides a task management method, the method comprising:
Determining a first scenario corresponding to the foreground task according to the foreground task;
Exploring at least one background task corresponding to the first scenario when the first scenario corresponding to the foreground task is in the first list, the first list being allowed to be task restricted Exploring at least one background task, including
A step of performing restriction processing on at least one background task corresponding to the first scenario, and the restriction processing includes a step of performing restriction processing, which is processing for reducing system resource use.

第1の態様の第1の可能な実施態様において、本方法は、
フォアグラウンドタスクに対応する第1のシナリオ以外の第2のシナリオを探索するステップであって、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、第1のリストは第2のシナリオを含む、第2のシナリオを探索するステップと、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップと
をさらに含む。
In a first possible embodiment of the first aspect, the method comprises:
Searching for a second scenario other than the first scenario corresponding to the foreground task, wherein the second scenario corresponds to at least one background task and the first list includes the second scenario; Exploring a second scenario;
And a restriction process for at least one background task corresponding to the second scenario.

第1の態様または第1の態様の第1の可能な実施態様に関連して、第1の態様の第2の可能な実施態様において、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するステップの後に、本方法は、
第1のシナリオが第1のリストにあるかどうか判定するステップ
をさらに含む。
In relation to the first aspect or the first possible embodiment of the first aspect, in the second possible embodiment of the first aspect, according to the foreground task, the first scenario corresponding to the foreground task is After the step of determining, the method
The method further includes determining whether the first scenario is on the first list.

第1の態様に関連して、第1の態様の第3の可能な実施態様において、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップの前に、本方法は、
少なくとも1つのバックグラウンドタスクのユーザ識別子を問い合わせるステップと、
少なくとも1つのバックグラウンドタスクのユーザ識別子がシステムユーザに対応する場合に、少なくとも1つのバックグラウンドタスクを無視するステップと、
少なくとも1つのバックグラウンドタスクのユーザ識別子が一般ユーザに対応する場合に、少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップと
をさらに含む。
In relation to the first aspect, in the third possible embodiment of the first aspect, prior to performing the restriction process on at least one background task corresponding to the first scenario, the method comprises:
Querying the user identifier of at least one background task;
Ignoring at least one background task if the user identifier of the at least one background task corresponds to a system user;
Performing a restriction process on at least one background task when the user identifier of the at least one background task corresponds to a general user.

第1の態様に関連して、第1の態様の第4の可能な実施態様において、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップの前に、本方法は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始するステップと、
タイマが事前設定閾値を超えたときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するステップと
をさらに含む。
In relation to the first aspect, in the fourth possible embodiment of the first aspect, prior to performing the restriction process on at least one background task corresponding to the first scenario, the method comprises:
Starting a timer for at least one background task corresponding to the first scenario;
Stopping the system component used by at least one background task corresponding to the first scenario when the timer exceeds a preset threshold.

第1の態様に関連して、第1の態様の第5の可能な実施態様において、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップの前に、本方法は、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるステップと、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用する場合に、システムコンポーネントを停止するステップと
をさらに含む。
In connection with the first aspect, in a fifth possible embodiment of the first aspect, prior to performing the restriction process on at least one background task corresponding to the first scenario, the method comprises:
Querying whether at least one background task uses the system component; and
And stopping the system component when at least one background task uses the system component.

第1の態様、第1の態様の第1の可能な実施態様、第1の態様の第2の可能な実施態様、第1の態様の第3の可能な実施態様、第1の態様の第4の可能な実施態様、または第1の態様の第5の可能な実施態様に関連して、第1の態様の第6の可能な実施態様において、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含む。
First aspect, first possible embodiment of the first aspect, second possible embodiment of the first aspect, third possible embodiment of the first aspect, first of the first aspect In connection with the four possible implementations, or the fifth possible implementation of the first aspect, in the sixth possible implementation of the first aspect, the process for reducing system resource usage comprises:
Freezing at least one background task;
Stop at least one background task,
Including at least one of: limiting system resources used by at least one background task.

第1の態様、第1の態様の第1の可能な実施態様、第1の態様の第2の可能な実施態様、第1の態様の第3の可能な実施態様、第1の態様の第4の可能な実施態様、または第1の態様の第5の可能な実施態様に関連して、第1の態様の第7の可能な実施態様において、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するステップは、
少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するステップ
を含む。
First aspect, first possible embodiment of the first aspect, second possible embodiment of the first aspect, third possible embodiment of the first aspect, first of the first aspect In relation to the four possible embodiments, or the fifth possible embodiment of the first aspect, in the seventh possible embodiment of the first aspect, the first corresponding to the foreground task according to the foreground task The steps to determine the scenario for
Determining a first scenario corresponding to each foreground task according to at least one foreground task.

第2の態様によれば、本発明の一実施形態はタスク管理方法を提供し、本方法は、
フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するステップと、
フォアグラウンドタスクに対応する第1のシナリオ以外の第2のシナリオを決定するステップであって、第2のシナリオはタスク制限が許可されるシナリオであり、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応する、第2のシナリオを決定するステップと、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するステップと、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップであって、制限処理はシステムリソース使用を低減させるための処理をいう、制限処理を行うステップと
を含む。
According to a second aspect, an embodiment of the present invention provides a task management method, the method comprising:
Determining a first scenario corresponding to the foreground task according to the foreground task;
Determining a second scenario other than the first scenario corresponding to the foreground task, wherein the second scenario is a scenario in which task restriction is allowed, and the second scenario is at least one background task Determining a corresponding second scenario;
Searching for at least one background task corresponding to the second scenario;
A step of performing restriction processing on at least one background task corresponding to the second scenario, and the restriction processing includes a step of performing restriction processing, which is processing for reducing system resource use.

第2の態様の第1の可能な実施態様において、本方法は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するステップと、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのユーザ識別子が一般ユーザに対応する場合に、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップと
をさらに含む。
In a first possible embodiment of the second aspect, the method comprises
Searching for at least one background task corresponding to the first scenario;
Performing a restriction process on at least one background task corresponding to the first scenario when the user identifier of at least one background task corresponding to the first scenario corresponds to a general user.

第2の態様に関連して、第2の態様の第2の可能な実施態様において、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップの前に、本方法は、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始するステップと、
タイマが事前設定閾値を超えたときに、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するステップと
をさらに含む。
In relation to the second aspect, in the second possible embodiment of the second aspect, prior to performing the restriction process on at least one background task corresponding to the second scenario, the method comprises:
Starting a timer for at least one background task corresponding to the second scenario;
Stopping the system component used by at least one background task corresponding to the second scenario when the timer exceeds a preset threshold.

第2の態様に関連して、第2の態様の第3の可能な実施態様において、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップの前に、本方法は、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるステップと、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用する場合に、システムコンポーネントを停止するステップと
をさらに含む。
In relation to the second aspect, in the third possible embodiment of the second aspect, prior to performing the restriction process on at least one background task corresponding to the second scenario, the method comprises:
Querying whether at least one background task uses the system component; and
And stopping the system component when at least one background task uses the system component.

第2の態様、第2の態様の第1の可能な実施態様、第2の態様の第2の可能な実施態様、または第2の態様の第3の可能な実施態様に関連して、第2の態様の第4の可能な実施態様において、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含む。
In relation to the second aspect, the first possible embodiment of the second aspect, the second possible embodiment of the second aspect, or the third possible embodiment of the second aspect, In a fourth possible embodiment of the two aspects, the process for reducing system resource usage is:
Freezing at least one background task;
Stop at least one background task,
Including at least one of: limiting system resources used by at least one background task.

第2の態様、第2の態様の第1の可能な実施態様、第2の態様の第2の可能な実施態様、または第2の態様の第3の可能な実施態様に関連して、第2の態様の第5の可能な実施態様において、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するステップは、
少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するステップ
を含む。
In relation to the second aspect, the first possible embodiment of the second aspect, the second possible embodiment of the second aspect, or the third possible embodiment of the second aspect, In a fifth possible embodiment of the two aspects, according to the foreground task, determining the first scenario corresponding to the foreground task comprises:
Determining a first scenario corresponding to each foreground task according to at least one foreground task.

第3の態様によれば、本発明の一実施形態はタスク管理方法を提供し、本方法は、決定部と、第1の探索部と、第1の処理部とを含み、
決定部は、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するように構成されており、
第1の探索部は、フォアグラウンドタスクに対応し、決定部によって決定される第1のシナリオが第1のリストにあるときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するように構成されており、第1のリストはタスク制限が許可されるシナリオを含み、
第1の処理部は、第1のシナリオに対応し、第1の探索部によって探索される少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成されており、制限処理はシステムリソース使用を低減させるための処理をいう。
According to a third aspect, an embodiment of the present invention provides a task management method, the method includes a determination unit, a first search unit, and a first processing unit,
The determining unit is configured to determine a first scenario corresponding to the foreground task according to the foreground task.
The first search unit corresponds to the foreground task and searches for at least one background task corresponding to the first scenario when the first scenario determined by the determination unit is in the first list. The first list contains scenarios where task limits are allowed,
The first processing unit corresponds to the first scenario, and is configured to perform a limiting process on at least one background task searched by the first searching unit. The limiting process reduces system resource usage. This is the process for making it happen.

第3の態様の第1の可能な実施態様において、本デバイスは、
フォアグラウンドタスクに対応し、決定部によって探索される第1のシナリオ以外の第2のシナリオを探索するように構成された第2の探索部であって、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、第1のリストは第2のシナリオを含む、第2の探索部と、
第2のシナリオに対応し、第2の探索部によって探索される少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成された第2の処理部と
をさらに含む。
In a first possible embodiment of the third aspect, the device comprises
A second search unit corresponding to the foreground task and configured to search for a second scenario other than the first scenario searched by the determination unit, wherein the second scenario is at least one background task A first search list includes a second scenario, a second search unit, and
A second processing unit corresponding to the second scenario and configured to perform a restriction process on at least one background task searched by the second search unit.

第3の態様または第3の態様の第1の可能な実施態様に関連して、第3の態様の第2の可能な実施態様において、本デバイスは、
第1のシナリオが第1のリストにあるかどうか判定するように構成された判断部
をさらに含む。
In relation to the third aspect or the first possible embodiment of the third aspect, in a second possible embodiment of the third aspect, the device comprises:
A decision unit configured to determine whether the first scenario is on the first list;

第3の態様に関連して、第3の態様の第3の可能な実施態様において、本デバイスは、
少なくとも1つのバックグラウンドタスクのユーザ識別子を問い合わせるように構成された第1の問い合わせ部と、
少なくとも1つのバックグラウンドタスクのものであり、第1の問い合わせ部によって問い合わせられるユーザ識別子がシステムユーザに対応する場合に、少なくとも1つのバックグラウンドタスクを無視するように構成された無視部と
をさらに含み、
第1の処理部は、少なくとも1つのバックグラウンドタスクのものであり、第1の問い合わせ部によって問い合わせられるユーザ識別子が一般ユーザに対応する場合に、少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成されている。
In relation to the third aspect, in a third possible embodiment of the third aspect, the device comprises:
A first query unit configured to query a user identifier of at least one background task;
And an ignoring portion configured to ignore at least one background task when the user identifier queried by the first query portion corresponds to a system user and is of at least one background task. ,
The first processing unit is for at least one background task, and when the user identifier inquired by the first inquiry unit corresponds to a general user, the restriction processing for at least one background task is performed. It is configured.

第3の態様に関連して、第3の態様の第4の可能な実施態様において、本デバイスは、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始するように構成されたタイミング部と、
タイマが事前設定閾値を超えたときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するように構成された第1の停止部と
をさらに含む。
In relation to the third aspect, in a fourth possible embodiment of the third aspect, the device comprises:
A timing portion configured to start a timer for at least one background task corresponding to the first scenario;
A first stop configured to stop a system component used by at least one background task corresponding to the first scenario when the timer exceeds a preset threshold.

第3の態様に関連して、第3の態様の第5の可能な実施態様において、本デバイスは、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるように構成された第2の問い合わせ部と、
第2の問い合わせ部が、少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用することを確認した場合に、システムコンポーネントを停止するように構成された第2の停止部と
をさらに含む。
In relation to the third aspect, in a fifth possible embodiment of the third aspect, the device comprises:
A second query unit configured to query whether at least one background task uses the system component;
And a second inquiry unit configured to stop the system component when the second inquiry unit confirms that at least one background task uses the system component.

第3の態様、第3の態様の第1の可能な実施態様、第3の態様の第2の可能な実施態様、第3の態様の第3の可能な実施態様、第3の態様の第4の可能な実施態様、または第3の態様の第5の可能な実施態様に関連して、第3の態様の第6の可能な実施態様において、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含む。
3rd aspect, 1st possible embodiment of the 3rd aspect, 2nd possible embodiment of the 3rd aspect, 3rd possible embodiment of the 3rd aspect, 3rd aspect of the 3rd aspect In connection with the four possible implementations, or the fifth possible implementation of the third aspect, in the sixth possible implementation of the third aspect, the process for reducing system resource usage comprises:
Freezing at least one background task;
Stop at least one background task,
Including at least one of: limiting system resources used by at least one background task.

第3の態様、第3の態様の第1の可能な実施態様、第3の態様の第2の可能な実施態様、第3の態様の第3の可能な実施態様、第3の態様の第4の可能な実施態様、または第3の態様の第5の可能な実施態様に関連して、第3の態様の第7の可能な実施態様において、決定部は、少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するように構成されている。   3rd aspect, 1st possible embodiment of the 3rd aspect, 2nd possible embodiment of the 3rd aspect, 3rd possible embodiment of the 3rd aspect, 3rd aspect of the 3rd aspect In connection with the four possible embodiments, or the fifth possible embodiment of the third aspect, in the seventh possible embodiment of the third aspect, the determining unit is in accordance with at least one foreground task, It is configured to determine a first scenario corresponding to each foreground task.

第2の態様によれば、本発明の一実施形態はタスク管理方法を提供し、本方法は、第1の決定部と、第2の決定部と、第1の探索部と、第1の処理部とを含み、
第1の決定部は、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するように構成されており、
第2の決定部は、フォアグラウンドタスクに対応し、第1の決定部によって決定される第1のシナリオ以外の第2のシナリオを決定するように構成されており、第2のシナリオはタスク制限が許可されるシナリオであり、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、
第1の探索部は、第2の決定部によって決定される第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するように構成されており、
第1の処理部は、第2のシナリオに対応し、第1の探索部によって探索される少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成されており、制限処理はシステムリソース使用を低減させるための処理をいう。
According to the second aspect, one embodiment of the present invention provides a task management method, the method comprising: a first determination unit; a second determination unit; a first search unit; a first search unit; Including a processing unit,
The first determination unit is configured to determine a first scenario corresponding to the foreground task according to the foreground task,
The second determination unit corresponds to the foreground task, and is configured to determine a second scenario other than the first scenario determined by the first determination unit. Allowed scenario, the second scenario corresponds to at least one background task,
The first search unit is configured to search for at least one background task corresponding to the second scenario determined by the second determination unit;
The first processing unit is configured to perform restriction processing for at least one background task searched for by the first search unit, corresponding to the second scenario, and the restriction processing reduces system resource usage. This is the process for making it happen.

第2の態様に第1の可能な実施態様において、本デバイスは、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するように構成された第2の探索部と、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのユーザ識別子が一般ユーザに対応する場合に、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成された第2の処理部と
をさらに含む。
In a first possible embodiment of the second aspect, the device comprises:
A second search unit configured to search for at least one background task corresponding to the first scenario;
A second configured to perform a restriction process on at least one background task corresponding to the first scenario when a user identifier of at least one background task corresponding to the first scenario corresponds to a general user; And a processing unit.

第2の態様に関連して、第2の態様の第2の可能な実施態様において、本デバイスは、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始するように構成されたタイミング部と、
タイマが事前設定閾値を超えたときに、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するように構成された第1の停止部と
をさらに含む。
In relation to the second aspect, in a second possible embodiment of the second aspect, the device comprises:
A timing unit configured to start a timer for at least one background task corresponding to the second scenario;
A first stop configured to stop a system component used by at least one background task corresponding to the second scenario when the timer exceeds a preset threshold.

第2の態様に関連して、第2の態様の第3の可能な実施態様において、本デバイスは、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるように構成された問い合わせ部と、
問い合わせ部が、少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用することを確認した場合に、システムコンポーネントを停止するように構成された第2の停止部と
をさらに含む。
In relation to the second aspect, in a third possible embodiment of the second aspect, the device comprises:
An inquiry unit configured to inquire whether at least one background task uses the system component;
And a second stopping unit configured to stop the system component when the inquiry unit confirms that at least one background task uses the system component.

第2の態様、第2の態様の第1の可能な実施態様、第2の態様の第2の可能な実施態様、または第2の態様の第3の可能な実施態様に関連して、第2の態様の第4の可能な実施態様において、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含む。
In relation to the second aspect, the first possible embodiment of the second aspect, the second possible embodiment of the second aspect, or the third possible embodiment of the second aspect, In a fourth possible embodiment of the two aspects, the process for reducing system resource usage is:
Freezing at least one background task;
Stop at least one background task,
Including at least one of: limiting system resources used by at least one background task.

第2の態様、第2の態様の第1の可能な実施態様、第2の態様の第2の可能な実施態様、または第2の態様の第3の可能な実施態様に関連して、第2の態様の第5の可能な実施態様において、決定部は、少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するように構成されている。   In relation to the second aspect, the first possible embodiment of the second aspect, the second possible embodiment of the second aspect, or the third possible embodiment of the second aspect, In a fifth possible implementation of the two aspects, the determining unit is configured to determine a first scenario corresponding to each foreground task according to at least one foreground task.

前述の技術的解決策においては、フォアグラウンドタスクに対応する第1のシナリオがフォアグラウンドタスクに従って決定され、フォアグラウンドタスクに対応する第1のシナリオが第1のリストにあるときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクが探索され、第1のリストはタスク制限が許可されるシナリオを含み、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が行われ、制限処理はシステムリソース使用を低減させるための処理をいう。このようにして、タスク制限が許可されるシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が遂行される。バックグラウンドタスクが常に実行されている先行技術と比べて、本発明の実施形態は、デバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, the first scenario corresponding to the foreground task is determined according to the foreground task, and the first scenario corresponding to the foreground task is in the first list, it corresponds to the first scenario At least one background task is searched, the first list includes scenarios where task restrictions are allowed, and the restriction process is performed on at least one background task corresponding to the first scenario, and the restriction process Is a process for reducing the use of system resources. In this manner, the restriction process is performed on at least one background task corresponding to a scenario in which task restriction is permitted. Compared to the prior art where background tasks are always executed, embodiments of the present invention can reduce device power consumption and power loss.

本発明の実施形態における、または先行技術における技術的解決策をより明確に説明するために、以下に、各実施形態または先行技術を説明するのに必要とされる添付の図面について簡単に記述する。明らかに、以下の説明における添付の図面は単に本発明のいくつかの実施形態を示すにすぎず、当業者は、これら添付の図面から難なく他の図面をさらに導出することができる。   To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. . Apparently, the accompanying drawings in the following description merely show some embodiments of the present invention, and those skilled in the art can further derive other drawings from these accompanying drawings without difficulty.

本発明の一実施形態によるタスク管理方法の概略的流れ図である。3 is a schematic flowchart of a task management method according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理方法の概略的流れ図である。6 is a schematic flowchart of another task management method according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理方法の概略的流れ図である。6 is a schematic flowchart of another task management method according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理方法の概略的流れ図である。6 is a schematic flowchart of another task management method according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理方法の概略的流れ図である。6 is a schematic flowchart of another task management method according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理方法の概略的流れ図である。6 is a schematic flowchart of another task management method according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理方法の概略的流れ図である。6 is a schematic flowchart of another task management method according to an embodiment of the present invention; 本発明の一実施形態によるタスク管理デバイスの構造の概略図である。1 is a schematic diagram of a structure of a task management device according to an embodiment of the present invention. FIG. 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention; 本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。FIG. 6 is a schematic diagram of another task management device structure according to an embodiment of the present invention;

以下で、本発明の実施形態における添付の図面に関連して、本発明の実施形態における技術的解決策を明確かつ十分に説明する。明らかに、説明される実施形態は、本発明の実施形態の全部ではなく、一部であるにすぎない。本発明の実施形態に基づいて当業者によって難なく得られる他のすべての実施形態は、本発明の保護範囲内に含まれるものとする。   The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely a part rather than all of the embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without difficulty will fall within the protection scope of the present invention.

本発明の実施形態においては、第1のシナリオおよび第2のシナリオが2つのシナリオに限定されない。第1のシナリオは1つまたは複数のシナリオを指示することができ、第2のシナリオも1つまたは複数のシナリオを指示することができる。例えば、第1のシナリオはフォアグラウンドタスクに対応するシナリオとすることができ、1つまたは複数のフォアグラウンドタスクが同時に生じる場合がある。すなわち、第1のシナリオは1つまたは複数のシナリオとすることができる。第2のシナリオは、第1のシナリオ以外の任意の1つまたは複数のシナリオとすることができる。例えば、第2のシナリオはフォアグラウンドタスクを除くタスクに対応するシナリオとすることができる。この場合、第1および第2は、2つの異なるシナリオを区別するために命名されているにすぎない。   In the embodiment of the present invention, the first scenario and the second scenario are not limited to two scenarios. The first scenario can indicate one or more scenarios, and the second scenario can also indicate one or more scenarios. For example, the first scenario may be a scenario corresponding to a foreground task, and one or more foreground tasks may occur simultaneously. That is, the first scenario can be one or more scenarios. The second scenario can be any one or more scenarios other than the first scenario. For example, the second scenario can be a scenario corresponding to a task other than the foreground task. In this case, the first and second are only named to distinguish two different scenarios.

加えて、本発明の実施形態において、シナリオは、本発明の実施形態を実施するデバイスの動作の状況を指すことができる。デバイスの動作の状況は、デバイスがシステムリソースを使用する状況をいいうる。システムリソースは具体的には、CPUリソースやメモリリソースといったハードウェアリソースとすることもでき、システムリソースは具体的には、ネットワーク帯域幅リソースやオペレーティング・システム・リソースといった仮想リソースとすることもでき、これは本発明の実施形態では限定されない。シナリオは、電話をかけること、ショート・メッセージ・サービス・メッセージを送信すること、ブラウザを使用すること、2D/3Dゲームをプレーすること、メイン・ユーザ・インターフェースを見ること、ファイルをダウンロードすること、電子ブックを読むこと、音楽を再生すること、ビデオを見ること、ウェブサイトをナビゲートすること、写真をブラウズすること、写真を撮影すること、ビデオを作成すること、電子メールを送信することなどとすることができる。   In addition, in an embodiment of the present invention, a scenario can refer to the state of operation of a device implementing the embodiment of the present invention. The operation status of the device may refer to a status in which the device uses system resources. Specifically, system resources can be hardware resources such as CPU resources and memory resources, and system resources can be specifically virtual resources such as network bandwidth resources and operating system resources. This is not limited in the embodiment of the present invention. Scenarios include making a call, sending a short message service message, using a browser, playing a 2D / 3D game, viewing the main user interface, downloading a file, Reading ebooks, playing music, watching videos, navigating websites, browsing photos, taking photos, creating videos, sending emails, etc. It can be.

加えて、本発明の実施形態において、タスクに対応するシナリオは具体的には、タスクが実行されるときにタスクが入るシナリオとすることもできる。例えば、音楽タスクが実行されているときに、このタスクは音楽シナリオおよびダウンロードシナリオに入る。すなわち、音楽タスクに対応するシナリオは、音楽シナリオおよびダウンロードシナリオを含むことができる。加えて、シナリオに対応するタスクは具体的には、シナリオに入るタスクとすることもできる。例えば、音楽タスクが実行されているときに、このタスクはダウンロードシナリオに入る。ブラウザタスクが実行されているときに、このタスクもダウンロードシナリオに入る。ソフトウェア更新タスクが実行されているときに、このタスクもダウンロードシナリオに入る。このように、ダウンロードシナリオに対応するタスクは、音楽タスク、ブラウザタスク、およびソフトウェア更新タスクを含むことができる。すなわち、1つのシナリオが異なるタスクに対応する。   In addition, in the embodiment of the present invention, the scenario corresponding to the task can be specifically a scenario in which the task is entered when the task is executed. For example, when a music task is running, this task enters a music scenario and a download scenario. That is, the scenario corresponding to the music task can include a music scenario and a download scenario. In addition, the task corresponding to the scenario can be specifically a task entering the scenario. For example, when a music task is running, this task enters a download scenario. When the browser task is running, this task also enters the download scenario. When a software update task is being executed, this task also enters the download scenario. As such, tasks corresponding to the download scenario can include a music task, a browser task, and a software update task. That is, one scenario corresponds to different tasks.

加えて、本発明の実施形態において、フォアグラウンドタスクはユーザ対話を必要とするタスクをいいうる。すなわち、フォアグラウンドタスクの実行時にはユーザによる操作入力を受け取る必要がある。あるいは、フォアグラウンドタスクは、画面上に表示されるタスクをいう場合もある。バックグラウンドタスクは、実行時にユーザ対話を必要としないタスクをいいうる。すなわち、バックグラウンドタスクの実行時にはユーザによる操作入力を受け取る必要がない。あるいは、バックグラウンドタスクは、画面上に表示されないタスクをいう場合もある。加えて、本発明の実施形態においてはタスクをスレッドとすることもできることも理解できる。   In addition, in the embodiments of the present invention, the foreground task may refer to a task that requires user interaction. That is, it is necessary to receive an operation input by the user when executing the foreground task. Alternatively, the foreground task may be a task displayed on the screen. A background task may refer to a task that does not require user interaction during execution. That is, it is not necessary to receive an operation input by the user when the background task is executed. Alternatively, the background task may refer to a task that is not displayed on the screen. In addition, it can be understood that the task may be a thread in the embodiment of the present invention.

図1を参照すると、図1は、本発明の一実施形態によるタスク管理方法の概略的流れ図である。図1に示すように、本方法は、以下のステップを含む。   Referring to FIG. 1, FIG. 1 is a schematic flowchart of a task management method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps.

101.フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定する。   101. According to the foreground task, a first scenario corresponding to the foreground task is determined.

任意選択で、ステップ101は具体的には、現在のタスクが切り換えられるときに、現在のタスクに従って対応する第1のシナリオを決定するステップ、とすることもできる。例えば、現在のタスク、音楽タスクが実行されているときに、このタスクは、音楽シナリオまたはダウンロードシナリオに入る。このように、フォアグラウンドタスクに対応する第1のシナリオは、音楽シナリオ、ダウンロードシナリオなどとすることができることを決定することができる。加えて、フォアグラウンドタスクは1つまたは複数の複数のフォアグラウンドタスクとすることもできる。複数のフォアグラウンドタスクの場合には、ステップ101は、複数のフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するステップ、を含むことができる。すなわち、ステップ101は、少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するステップ、を含むことができる。   Optionally, step 101 may specifically be a step of determining a corresponding first scenario according to the current task when the current task is switched. For example, when a current task, a music task is being executed, this task enters a music scenario or a download scenario. Thus, it can be determined that the first scenario corresponding to the foreground task can be a music scenario, a download scenario, or the like. In addition, the foreground task can be one or more foreground tasks. In the case of multiple foreground tasks, step 101 may include determining a first scenario corresponding to each foreground task according to the multiple foreground tasks. That is, step 101 can include determining a first scenario corresponding to each foreground task according to at least one foreground task.

102.フォアグラウンドタスクに対応する第1のシナリオが第1のリストにあるときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する。第1のリストはタスク制限が許可されるシナリオを含む。   102. When the first scenario corresponding to the foreground task is in the first list, search for at least one background task corresponding to the first scenario. The first list includes scenarios where task restrictions are allowed.

任意選択で、タスク制限が許可され、第1のリストに含まれるシナリオは、ユーザによって入力される操作を受け取るために設定されるシナリオとすることもできる。このように、タスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。例えば、ユーザはデバイスの電力消費を低減させたいと思い、ユーザは第1のリストにおいてタスク制限が許可される複数のシナリオを設定することができ、例えば、タスク制限が許可されるシナリオとしてブラウザシナリオ、ゲームシナリオ、ナビゲーションシナリオなどを設定する。このように、現在のタスクに対応する第1のシナリオがブラウザシナリオ、ゲームシナリオ、またはナビゲーションシナリオであるときに、デバイスの電力消費を低減させるためにステップ102を行うことができる。   Optionally, the scenario where task restrictions are allowed and included in the first list may be a scenario configured to receive an operation entered by the user. As described above, it is possible to realize a scenario in which task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits. For example, the user wants to reduce the power consumption of the device, and the user can set multiple scenarios where task restrictions are allowed in the first list, e.g. browser scenarios as scenarios where task restrictions are allowed Set game scenario, navigation scenario, etc. Thus, step 102 can be performed to reduce power consumption of the device when the first scenario corresponding to the current task is a browser scenario, a game scenario, or a navigation scenario.

任意選択で、タスク制限が許可され、第1のリストに含まれるシナリオは、デバイスの性能に従って自動的に設定することもできる。例えば、デバイスが優れた性能を有するとき、例えば、デバイスのCPUが高速で走っており、デバイスが大容量のメモリを有し、またはデバイスが十分な電池を有するときには、第1のリストにおいてタスク制限が許可されるごく少数のシナリオが設定されうる。例えば、デバイスが不十分な性能を有するとき、例えば、デバイスのCPUが低速で走っており、デバイスが小容量のメモリを有し、またはデバイスが十分な電池を有しないときには、第1のリストにおいてタスク制限が許可される多数のシナリオが設定されうる。第1のリストはタスク制限が許可される多数のシナリオを有し、ステップ102およびステップ103が複数回行われるため、デバイスの電力消費を低減させ、デバイスの安定動作を保証するように、複数のバックグラウンドタスクに対して制限処理を行うことができる。   Optionally, task restrictions are allowed and the scenarios included in the first list can also be set automatically according to device performance. For example, when a device has excellent performance, for example, when the device's CPU is running at high speed, the device has a large amount of memory, or the device has enough battery, task limits in the first list Only a few scenarios can be set up that are allowed. For example, when the device has insufficient performance, for example, when the device's CPU is running at low speed, the device has a small amount of memory, or the device does not have enough batteries, in the first list A number of scenarios where task restrictions are allowed can be set. The first list has a large number of scenarios where task limits are allowed, and steps 102 and 103 are performed multiple times, so that multiple devices are used to reduce device power consumption and ensure stable operation of the device. Limit processing can be performed for background tasks.

任意選択で、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第1のシナリオに対応するすべてのバックグラウンドタスク内の少なくとも1つのバックグラウンドタスクをいうこともでき、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第1のシナリオに対応するすべてのバックグラウンドタスクをいうこともできる。本実施形態はこれに対して制限を設定しない。   Optionally, at least one background task corresponding to the first scenario can also refer to at least one background task in all background tasks corresponding to the first scenario, The corresponding at least one background task can also refer to all background tasks corresponding to the first scenario. In the present embodiment, no limit is set for this.

103.第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う。制限処理はシステムリソース使用を低減させるための処理をいう。   103. Limit processing is performed on at least one background task corresponding to the first scenario. The restriction process refers to a process for reducing system resource usage.

任意選択で、制限処理は、タスクによって現在使用されているシステムリソースを低減させるための処理とすることもできる。例えば、バックグラウンドタスクAによって使用されるシステムリソースの数量はステップ101が行われるときにはAであり、バックグラウンドタスクAに対して制限処理が行われた後で、バックグラウンドタスクAによって使用されるシステムリソースの数量はBであり、AはBよりも大きい。加えて、Bを0とすることもできる。   Optionally, the limiting process can be a process to reduce system resources currently used by the task. For example, the amount of system resources used by background task A is A when step 101 is performed, and the system used by background task A after restriction processing is performed for background task A The quantity of resources is B, and A is larger than B. In addition, B can be zero.

任意選択で、本方法は具体的には、タブレットコンピュータ、携帯電話、電子リーダ、リモコン、パーソナルコンピュータ(Personal Computer、PC)、ノートブックコンピュータ、車内デバイス、ウェブテレビ、ウェアラブルデバイス、またはネットワーク機能を有する他のインテリジェントデバイスといった、マルチタスクシステムを有する任意のデバイスに適用することができる。   Optionally, the method specifically has a tablet computer, mobile phone, electronic reader, remote control, personal computer (PC), notebook computer, in-car device, web TV, wearable device, or network function. It can be applied to any device having a multitasking system, such as other intelligent devices.

前述の技術的解決策においては、フォアグラウンドタスクに対応する第1のシナリオがフォアグラウンドタスクに従って決定され、フォアグラウンドタスクに対応する第1のシナリオが第1のリストにあるときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクが探索され、第1のリストはタスク制限が許可されるシナリオを含み、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が行われ、制限処理はシステムリソース使用を低減させるための処理をいう。このようにして、タスク制限が許可されるシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が遂行される。バックグラウンドタスクが常に実行されている先行技術と比べて、本発明の本実施形態は、デバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, the first scenario corresponding to the foreground task is determined according to the foreground task, and the first scenario corresponding to the foreground task is in the first list, it corresponds to the first scenario At least one background task is searched, the first list includes scenarios where task restrictions are allowed, and the restriction process is performed on at least one background task corresponding to the first scenario, and the restriction process Is a process for reducing the use of system resources. In this manner, the restriction process is performed on at least one background task corresponding to a scenario in which task restriction is permitted. Compared to the prior art where background tasks are always executed, this embodiment of the present invention can reduce the power consumption and power loss of the device.

図2を参照すると、図2は、本発明の一実施形態による別のタスク管理方法の概略的流れ図である。図2に示すように、本方法は、以下のステップを含む。   Referring to FIG. 2, FIG. 2 is a schematic flowchart of another task management method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps.

201.フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定する。   201. According to the foreground task, a first scenario corresponding to the foreground task is determined.

202.第1のシナリオが第1のリストにあるかどうか判定する。「はい」の場合、ステップ203を行う。「いいえ」の場合、プロセスを終了する。第1のリストはタスク制限が許可されるシナリオを含む。   202. Determine if the first scenario is in the first list. If yes, step 203 is performed. If no, end the process. The first list includes scenarios where task restrictions are allowed.

203.第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する。   203. Search for at least one background task corresponding to the first scenario.

任意選択で、ステップ203は具体的には、第1のシナリオに対応するバックグラウンドタスク内の、制限処理を受けた後で他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならない少なくとも1つのバックグラウンドタスクを探索するステップとすることもでき、第1のシナリオに対応するバックグラウンドタスク内の少なくとも1つの所定のバックグラウンドタスクを探索するステップとすることもでき、第1のシナリオに対応するバックグラウンドタスク内の、そのユーザ識別子が一般ユーザに対応する少なくとも1つのバックグラウンドタスクを探索するステップとすることもできる。例えば、ステップ203は、
第1のシナリオに対応する各バックグラウンドタスクのユーザ識別子を探索し、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクとして、そのユーザ識別子(User Identifier、UID)が一般ユーザに対応するバックグラウンドタスクを探索するステップ
を含むことができる。
Optionally, step 203 specifically includes at least one background within the background task corresponding to the first scenario that will not affect other tasks or the operating system after undergoing restriction processing. It can also be a step to search for a task, and can also be a step to search for at least one predetermined background task in a background task corresponding to the first scenario, and a background corresponding to the first scenario It may be a step of searching for at least one background task in the task whose user identifier corresponds to a general user. For example, step 203 is
Search for the user identifier of each background task corresponding to the first scenario, and at least one background task corresponding to the first scenario, the background whose user identifier (UID) corresponds to a general user A step of searching for tasks may be included.

すなわち、このステップは、第1のシナリオに対応し、ステップ203で探索される少なくとも1つのバックグラウンドタスクが、そのUIDが一般ユーザに対応するバックグラウンドタスクであることを実現するのに使用される。UIDは、各タスクの固有の識別子であり、タスクを一意に識別するのに使用される。加えて、UIDは、システムユーザおよび一般ユーザにも対応しうる。バックグラウンドタスクのUIDがシステムユーザに対応するとき、これは、バックグラウンドタスクがオペレーティングシステムに含まれるバックグラウンドタスクであることを指示する。バックグラウンドタスクのUIDが一般ユーザに対応するとき、これは、バックグラウンドタスクがオペレーティングシステムに含まれるバックグラウンドタスクではないことを指示する。   That is, this step corresponds to the first scenario and is used to realize that at least one background task searched in step 203 is a background task whose UID corresponds to a general user. . The UID is a unique identifier of each task and is used to uniquely identify the task. In addition, the UID can correspond to system users and general users. When the background task UID corresponds to a system user, this indicates that the background task is a background task included in the operating system. When the background task UID corresponds to a regular user, this indicates that the background task is not a background task included in the operating system.

任意選択で、本方法は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスク内の、そのUIDがシステムユーザに対応するバックグラウンドタスクを無視するステップ
をさらに含むことができる。すなわち、そのUIDがシステムユーザに対応するバックグラウンドタスクに対しては処理が行われない。
Optionally, the method includes
The method may further include ignoring a background task whose UID corresponds to the system user in at least one background task corresponding to the first scenario. That is, no processing is performed for the background task whose UID corresponds to the system user.

任意選択で、ステップ203は、第1のシナリオに対応するバックグラウンドタスク内の、そのシステムリソース使用が事前設定閾値に達する少なくとも1つのバックグラウンドタスクを探索するステップ、とすることもできる。例えば、第1のシナリオに対応するバックグラウンドタスク内の、そのCPUリソース使用がCPUリソースの10%に達する少なくとも1つのバックグラウンドタスクを探索するステップ、または、第1のシナリオに対応するバックグラウンドタスク内の、そのスリープロック保持期間が10分間に達する少なくとも1つのバックグラウンドタスクを探索するステップ、または、第1のシナリオに対応するバックグラウンドタスク内の、その平均データダウンロード速度が10M/分に達する少なくとも1つのバックグラウンドタスクを探索するステップ。   Optionally, step 203 may be a step of searching for at least one background task in the background task corresponding to the first scenario whose system resource usage reaches a preset threshold. For example, searching for at least one background task in the background task corresponding to the first scenario whose CPU resource usage reaches 10% of the CPU resource, or the background task corresponding to the first scenario Search for at least one background task whose sleep lock retention period reaches 10 minutes, or the average data download speed within the background task corresponding to the first scenario reaches 10M / min Exploring at least one background task.

204.第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う。制限処理はシステムリソース使用を低減させるための処理をいう。   204. Limit processing is performed on at least one background task corresponding to the first scenario. The restriction process refers to a process for reducing system resource usage.

任意選択で、図3に示すように、本方法は以下をさらに含むことができる。   Optionally, as shown in FIG. 3, the method can further include:

205.フォアグラウンドタスクに対応する第1のシナリオ以外の第2のシナリオを探索する。第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、第1のリストは第2のシナリオを含む。   205. Search for a second scenario other than the first scenario corresponding to the foreground task. The second scenario corresponds to at least one background task, and the first list includes the second scenario.

206.第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う。   206. Limit processing for at least one background task corresponding to the second scenario is performed.

任意選択で、第2のシナリオは1つまたは複数のシナリオをいうこともできる。加えて、第2のシナリオは、第1のシナリオ以外のすべてのシナリオをいうこともでき、第1のシナリオ以外の1つまたは複数のシナリオをいうこともでき、これは本実施形態では限定されない。   Optionally, the second scenario can also refer to one or more scenarios. In addition, the second scenario can also refer to all scenarios other than the first scenario, and can also refer to one or a plurality of scenarios other than the first scenario, which is not limited in the present embodiment. .

加えて、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスク内の少なくとも1つのバックグラウンドタスクをいうこともでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスクをいうこともできる。本実施形態はこれに対して制限を設定しない。加えて、第2のシナリオは具体的には、所定のシナリオ、例えば、ユーザによって入力された操作を受け取るために設定されるシナリオとすることもできる。このように、タスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。加えて、ステップ205は具体的には、第2のシナリオに対応するバックグラウンドタスク内の、制限処理を受けた後で他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならない少なくとも1つのバックグラウンドタスクを探索するステップとすることもでき、第2のシナリオに対応するバックグラウンドタスク内の少なくとも1つの所定のバックグラウンドタスクを探索するステップとすることもでき、第2のシナリオに対応するバックグラウンドタスク内の、そのユーザ識別子が一般ユーザに対応する少なくとも1つのバックグラウンドタスクを探索するステップとすることもできる。   In addition, at least one background task corresponding to the second scenario can also refer to at least one background task in all background tasks corresponding to the second scenario, corresponding to the second scenario The at least one background task can also refer to all background tasks corresponding to the second scenario. In the present embodiment, no limit is set for this. In addition, the second scenario may specifically be a predetermined scenario, for example, a scenario set to receive an operation input by the user. As described above, it is possible to realize a scenario in which task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits. In addition, step 205 specifically includes at least one background task in the background task corresponding to the second scenario that will not affect other tasks or the operating system after undergoing the restriction process. Can also be a step of searching for at least one predetermined background task in the background task corresponding to the second scenario, and can also be a step of searching for the background task corresponding to the second scenario. And searching for at least one background task whose user identifier corresponds to a general user.

任意選択で、第2のシナリオは、第1のシナリオ以外の、第2のリストにないシナリオとすることもでき、第2のリストは、タスク制限が禁止されるシナリオを含むことができる。タスク制限が禁止されるシナリオは、ユーザによって入力される操作を受け取るために設定されるシナリオとすることができる。このように、タスク制限が禁止されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。例えば、ユーザは、第2のリストにおいて、タスク制限が禁止されるシナリオとしてユーザの注意を必要とするシナリオ、例えば、ショート・メッセージ・サービス・メッセージ・シナリオ、電話シナリオ、ダウンロードシナリオを設定することができる。あるいは、タスク制限が禁止されるシナリオは、デバイスの性能に従って自動的に設定することもできる。例えば、デバイスが優れた性能を有するとき、例えば、デバイスのCPUが高速で走っており、デバイスが大容量のメモリを有し、またはデバイスが十分な電池を有するときには、第2のリストにおいてタスク制限が禁止される多数のシナリオが設定されうる。例えば、デバイスが不十分な性能を有するとき、例えば、デバイスのCPUが低速で走っており、デバイスが小容量のメモリを有し、またはデバイスが十分な電池を有しないときには、第2のリストにおいてタスク制限が禁止されるごく少数のシナリオが設定されうる。   Optionally, the second scenario may be a scenario that is not in the second list other than the first scenario, and the second list may include scenarios where task restrictions are prohibited. The scenario in which task restriction is prohibited can be a scenario set to receive an operation input by a user. As described above, it is possible to realize a scenario in which task restriction is prohibited, which is set according to an operation input by the user and meets the user's requirements or habits. For example, in the second list, the user may set a scenario that requires the user's attention as a scenario in which task restriction is prohibited, such as a short message service message scenario, a telephone scenario, and a download scenario. it can. Alternatively, a scenario in which task restriction is prohibited can be automatically set according to device performance. For example, when the device has excellent performance, for example, when the device's CPU is running at high speed, the device has a large amount of memory, or the device has enough battery, task limits in the second list There are a number of scenarios that can be prohibited. For example, when the device has insufficient performance, for example, when the device's CPU is running at low speed, the device has a small amount of memory, or the device does not have enough batteries, in the second list There can be very few scenarios where task restrictions are prohibited.

任意選択で、ステップ204の前に、本方法は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのUIDを問い合わせるステップと、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのUIDがシステムユーザに対応する場合に、その少なくとも1つのバックグラウンドタスクを無視するステップと、
少なくとも1つのバックグラウンドタスクのUIDが一般ユーザに対応する場合に、少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップと
をさらに含むことができる。すなわち、ステップ204は、そのUIDが一般ユーザに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う。
Optionally, prior to step 204, the method includes:
Querying the UID of at least one background task corresponding to the first scenario;
Ignoring at least one background task if the UID of the at least one background task corresponding to the first scenario corresponds to a system user;
Performing a restriction process on the at least one background task when the UID of the at least one background task corresponds to a general user. In other words, step 204 performs a restriction process on at least one background task whose UID corresponds to a general user.

本実施態様では、そのUIDが一般ユーザに対応するバックグラウンドタスクはオペレーティングシステムのタスクではないため、バックグラウンドタスクに対して一般ユーザ制限処理が行われた後で他のタスクが影響を受けない。したがって、ステップ204で、そのUIDが一般ユーザに対応するバックグラウンドタスクに対してのみ制限処理が行われ、これにより、他のタスクに影響を及ぼさずにデバイスの電力消費および電力損失を低減させることができる。   In this embodiment, since the background task whose UID corresponds to the general user is not an operating system task, other tasks are not affected after the general user restriction process is performed on the background task. Therefore, in step 204, the restriction process is performed only for the background task whose UID corresponds to the general user, thereby reducing the power consumption and power loss of the device without affecting other tasks. Can do.

任意選択で、ステップ204の前に、本方法は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始するステップと、
タイマが事前設定閾値を超えたときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するステップと
をさらに含むことができる。
Optionally, prior to step 204, the method includes:
Starting a timer for at least one background task corresponding to the first scenario;
Stopping a system component used by at least one background task corresponding to the first scenario when the timer exceeds a preset threshold.

任意選択で、システムコンポーネントは、それだけに限らないが、タイマ、スリープロック、およびブロードキャスト通知を含む。同時に、前述のステップでは、システムコンポーネントが休止されるときのシステムコンポーネントの状況値を保存することができ、このため、制限処理が解除された後で、バックグラウンドタスクはシステムコンポーネントの保存された状況値を呼び出すことができる。加えて、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントは、タイマが事前設定閾値(例えば、10秒、30秒など)に達したときに限り停止される。これにより、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを頻繁に停止することを回避することができる。   Optionally, system components include, but are not limited to, timers, sleep locks, and broadcast notifications. At the same time, the above steps can save the status value of the system component when the system component is paused, so that after the restriction process is released, the background task will save the saved status of the system component A value can be called. In addition, the system component used by at least one background task corresponding to the first scenario is stopped only when the timer reaches a preset threshold (eg, 10 seconds, 30 seconds, etc.). As a result, frequent stopping of system components used by at least one background task corresponding to the first scenario can be avoided.

任意選択で、ステップ204の前に、本方法は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるステップと、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用する場合に、第1のシナリオを停止するステップと
をさらに含むことができる。
Optionally, prior to step 204, the method includes:
Querying whether at least one background task corresponding to the first scenario uses a system component;
Stopping the first scenario when at least one background task corresponding to the first scenario uses the system component.

本実施態様では、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントが停止されるため、デバイスの電力消費および電力損失も低減させることができる。   In this embodiment, the power consumption and power loss of the device can also be reduced because the system components used by at least one background task corresponding to the first scenario are stopped.

任意選択で、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含むこともできる。
Optionally, processing to reduce system resource usage is:
Freezing at least one background task;
Stop at least one background task,
It can also include at least one of ways to limit system resources used by at least one background task.

この場合、ステップ204は、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結するステップ、または第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを停止するステップ、または第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するステップ、とすることができる。   In this case, step 204 includes freezing at least one background task corresponding to the first scenario, or stopping at least one background task corresponding to the first scenario, or to the first scenario. And limiting system resources used by the corresponding at least one background task.

任意選択で、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結するステップは、バックグラウンドタスクがシステムリソースを呼び出すことを禁止するステップ、例えば、CPUが、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出すことを禁止するステップ、とすることができる。具体的には、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクが任意のスケジューリングに関与することを禁止するのに、オペレーティングシステムのタスクスケジューラが使用される。第1のシナリオに対応する少なくとも1つのバックグラウンドタスクがシステムリソースを呼び出すことを禁止されるため、デバイスの電力消費が低減される。   Optionally, freezing at least one background task corresponding to the first scenario is prohibiting the background task from invoking system resources, e.g., the CPU is at least corresponding to the first scenario It can be a step that prohibits calling one background task. Specifically, the operating system's task scheduler is used to prohibit at least one background task corresponding to the first scenario from participating in any scheduling. Since at least one background task corresponding to the first scenario is prohibited from calling system resources, the power consumption of the device is reduced.

任意選択で、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するステップは、CPUがその時間以内に第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出す時間を制限するステップ、とすることができる。例えば、CPUがCPU呼び出しの時間値によって指示される時間内に第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出すことができるように、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのために時間値が設定される。加えて、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するステップはさらに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによるシステムリソースの使用を制限するステップ、とすることもできる。例えば、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによるネットワーク帯域幅の使用を制限するステップ、または、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによるメモリ空間の使用を制限するステップ。加えて、このステップはさらに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対応する異なるシナリオに応じて異なる制限措置を使用するステップ、とすることもできる。前述のステップでは第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによるシステムリソースの使用が制限されるため、デバイスの電力消費が低減される。   Optionally, limiting the system resources used by at least one background task corresponding to the first scenario causes the CPU to call at least one background task corresponding to the first scenario within that time And a step of limiting time. For example, at least one background task corresponding to the first scenario so that the CPU can call at least one background task corresponding to the first scenario within the time indicated by the time value of the CPU call A time value is set for In addition, the step of limiting system resources used by at least one background task corresponding to the first scenario further limits the use of system resources by at least one background task corresponding to the first scenario. It can also be a step. For example, limiting network bandwidth usage by at least one background task corresponding to the first scenario, or limiting memory space usage by at least one background task corresponding to the first scenario . In addition, this step can further be a step of using different restriction measures depending on different scenarios corresponding to at least one background task corresponding to the first scenario. The aforementioned steps reduce device power consumption because the use of system resources by at least one background task corresponding to the first scenario is limited.

任意選択で、ステップ201は、
温度が事前設定温度閾値に達したときに、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するステップ
をさらに含むことができる。
Optionally, step 201 is
The method may further include determining a first scenario corresponding to the foreground task according to the foreground task when the temperature reaches a preset temperature threshold.

温度は、本実施形態を実施するデバイスの温度とすることができ、デバイスの温度は具体的には、デバイスのCPUの温度またはデバイスのモデムの温度ということができる。   The temperature may be the temperature of the device that implements the present embodiment, and the device temperature may specifically be the temperature of the device CPU or the temperature of the device modem.

本実施態様では、デバイスの温度が事前設定温度閾値に達したときに限り、バックグラウンドタスクに対して制限処理が行われることを実現することができる。   In this embodiment, it is possible to realize that the limit process is performed on the background task only when the temperature of the device reaches the preset temperature threshold.

任意選択で、本方法は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を解除するステップ
をさらに含むことができる。具体的には、第1のシナリオが第1のリストにないときに、制限処理を受けているバックグラウンドタスクについて、制限処理が解除される。
Optionally, the method includes
The method may further include a step of releasing restriction processing for at least one background task corresponding to the first scenario. Specifically, when the first scenario is not in the first list, the restriction process is canceled for the background task that has undergone the restriction process.

任意選択で、本方法は具体的には、タブレットコンピュータ、携帯電話、電子リーダ、リモコン、PC、ノートブックコンピュータ、車内デバイス、ウェブテレビ、ウェアラブルデバイス、またはネットワーク機能を有する他のインテリジェントデバイスといった、マルチタスクシステムを有する任意のデバイスに適用することができる。   Optionally, the method specifically includes multiple computers such as tablet computers, mobile phones, electronic readers, remote controls, PCs, notebook computers, in-car devices, web TVs, wearable devices, or other intelligent devices with network capabilities. It can be applied to any device having a task system.

前述の技術的解決策においては、複数の任意選択の実施態様が第1の実施形態に基づいて実現され、これらの実施態様のすべてがデバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, a plurality of optional implementations are realized based on the first embodiment, and all of these implementations can reduce the power consumption and power loss of the device.

図4を参照すると、図4は、本発明の一実施形態による別のタスク管理方法の概略的流れ図である。図4に示すように、本方法は、以下のステップを含む。   Referring to FIG. 4, FIG. 4 is a schematic flowchart of another task management method according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps.

401.フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定する。   401. According to the foreground task, a first scenario corresponding to the foreground task is determined.

任意選択で、ステップ401は具体的には、現在のタスクが切り換えられるときに、現在のタスクに従って対応する第1のシナリオを決定するステップ、とすることもできる。例えば、現在のタスク、音楽タスクが実行されているときに、このタスクは、音楽シナリオまたはダウンロードシナリオに入る。このように、フォアグラウンドタスクに対応する第1のシナリオは、音楽シナリオ、ダウンロードシナリオなどとすることができることを決定することができる。加えて、フォアグラウンドタスクは1つまたは複数の複数のフォアグラウンドタスクとすることもできる。複数のフォアグラウンドタスクの場合には、ステップ401は、複数のフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するステップ、を含むことができる。すなわち、ステップ401は、少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するステップ、を含むことができる。   Optionally, step 401 may specifically be a step of determining a corresponding first scenario according to the current task when the current task is switched. For example, when a current task, a music task is being executed, this task enters a music scenario or a download scenario. Thus, it can be determined that the first scenario corresponding to the foreground task can be a music scenario, a download scenario, or the like. In addition, the foreground task can be one or more foreground tasks. In the case of multiple foreground tasks, step 401 may include determining a first scenario corresponding to each foreground task according to the multiple foreground tasks. That is, step 401 can include determining a first scenario corresponding to each foreground task according to at least one foreground task.

402.フォアグラウンドタスクに対応する第1のシナリオ以外の第2のシナリオを決定する。第2のシナリオはタスク制限が許可されるシナリオであり、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応する。   402. A second scenario other than the first scenario corresponding to the foreground task is determined. The second scenario is a scenario in which task restriction is permitted, and the second scenario corresponds to at least one background task.

任意選択で、第2のシナリオは1つまたは複数のシナリオをいうこともできる。加えて、第2のシナリオは、第1のシナリオ以外のすべてのシナリオをいうこともでき、第1のシナリオ以外の1つまたは複数のシナリオをいうこともでき、これは本実施形態では限定されない。加えて、第2のシナリオは具体的には、所定のシナリオ、例えば、ユーザによって入力された操作を受け取るために設定されるシナリオとすることもできる。このように、タスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。   Optionally, the second scenario can also refer to one or more scenarios. In addition, the second scenario can also refer to all scenarios other than the first scenario, and can also refer to one or a plurality of scenarios other than the first scenario, which is not limited in the present embodiment. . In addition, the second scenario may specifically be a predetermined scenario, for example, a scenario set to receive an operation input by the user. As described above, it is possible to realize a scenario in which task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits.

任意選択で、第2のシナリオは、第1のシナリオ以外の、第2のリストにないシナリオとすることもでき、第2のリストは、タスク制限が禁止されるシナリオを含むことができる。   Optionally, the second scenario may be a scenario that is not in the second list other than the first scenario, and the second list may include scenarios where task restrictions are prohibited.

403.第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する。   403. Search for at least one background task corresponding to the second scenario.

任意選択で、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスク内の少なくとも1つのバックグラウンドタスクをいうこともでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスクをいうこともできる。加えて、ステップ403は具体的には、第2のシナリオに対応するバックグラウンドタスク内の、制限処理を受けた後で他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならない少なくとも2つのバックグラウンドタスクを探索するステップ、または、第2のシナリオに対応するバックグラウンドタスク内の少なくとも1つの所定のバックグラウンドタスクを探索するステップ、または、第2のシナリオに対応するバックグラウンドタスク内の、そのUIDが一般ユーザに対応する少なくとも1つのバックグラウンドタスクを探索するステップ、とすることもできる。例えば、ステップ403は、
第2のシナリオに対応する各バックグラウンドタスクのUIDを探索するステップと、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクとして、そのUIDが一般ユーザに対応するバックグラウンドタスクを探索するステップと、を含むことができる。
Optionally, at least one background task corresponding to the second scenario can also refer to at least one background task in all background tasks corresponding to the second scenario, The corresponding at least one background task can also refer to all background tasks corresponding to the second scenario. In addition, step 403 specifically includes at least two background tasks within the background task corresponding to the second scenario that will not affect other tasks or the operating system after undergoing restriction processing. Search for at least one predetermined background task in the background task corresponding to the second scenario, or the UID in the background task corresponding to the second scenario is It is also possible to search for at least one background task corresponding to a general user. For example, step 403
Searching for a UID of each background task corresponding to the second scenario, and searching for a background task corresponding to the general user as at least one background task corresponding to the second scenario; , Can be included.

すなわち、このステップは、第2のシナリオに対応し、ステップ403で探索される少なくとも1つのバックグラウンドタスクが、そのUIDが一般ユーザに対応するバックグラウンドタスクであることを実現するのに使用される。   That is, this step corresponds to the second scenario and is used to realize that at least one background task searched in step 403 is a background task whose UID corresponds to a general user. .

任意選択で、本方法は、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスク内の、そのUIDがシステムユーザに対応するバックグラウンドタスクを無視するステップ
をさらに含むことができる。すなわち、そのUIDがシステムユーザに対応するバックグラウンドタスクに対しては処理が行われない。
Optionally, the method includes
The method may further include ignoring a background task whose UID corresponds to the system user in at least one background task corresponding to the second scenario. That is, no processing is performed for the background task whose UID corresponds to the system user.

任意選択で、ステップ403は、そのシステムリソース使用が、第2のシナリオに対応するバックグラウンドタスクにおける事前設定閾値に達する少なくとも1つのバックグラウンドタスクを探索するステップ、とすることもできる。   Optionally, step 403 may be a step of searching for at least one background task whose system resource usage reaches a preset threshold in the background task corresponding to the second scenario.

404.第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う。制限処理はシステムリソース使用を低減させるための処理をいう。   404. Limit processing for at least one background task corresponding to the second scenario is performed. The restriction process refers to a process for reducing system resource usage.

任意選択で、図5に示すように、本方法は以下をさらに含むことができる。   Optionally, as shown in FIG. 5, the method can further include:

405.第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する。   405. Search for at least one background task corresponding to the first scenario.

406.第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのUIDが一般ユーザに対応する場合に、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う。   406. When the UID of at least one background task corresponding to the first scenario corresponds to a general user, a restriction process is performed on at least one background task corresponding to the first scenario.

本実施形態の本実施態様については、第1の実施形態および第2の実施形態における第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が行われる実施態様をさらに参照されたい。   For this embodiment of the present embodiment, further refer to the embodiment in which the restriction process is performed on at least one background task corresponding to the first scenario in the first embodiment and the second embodiment. .

任意選択で、ステップ404の前に、本方法は、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始するステップと、
タイマが事前設定閾値を超えたときに、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するステップと
をさらに含むことができる。
Optionally, prior to step 404, the method
Starting a timer for at least one background task corresponding to the second scenario;
Stopping a system component used by at least one background task corresponding to the second scenario when the timer exceeds a preset threshold.

任意選択で、システムコンポーネントは、それだけに限らないが、タイマ、スリープロック、およびブロードキャスト通知を含む。同時に、前述のステップでは、システムコンポーネントが休止されるときのシステムコンポーネントの状況値を保存することができ、このため、制限処理が解除された後で、バックグラウンドタスクはシステムコンポーネントの保存された状況値を呼び出すことができる。加えて、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントは、タイマが事前設定閾値(例えば、10秒、30秒など)に達したときに限り停止される。これにより、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを頻繁に停止することを回避することができる。   Optionally, system components include, but are not limited to, timers, sleep locks, and broadcast notifications. At the same time, the above steps can save the status value of the system component when the system component is paused, so that after the restriction process is released, the background task will save the saved status of the system component A value can be called. In addition, the system component used by at least one background task corresponding to the second scenario is stopped only when the timer reaches a preset threshold (eg, 10 seconds, 30 seconds, etc.). Thereby, frequent stopping of the system components used by at least one background task corresponding to the second scenario can be avoided.

任意選択で、ステップ404の前に、本方法は、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるステップと、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用する場合に、システムコンポーネントを停止するステップと
をさらに含むことができる。
Optionally, prior to step 404, the method
Querying whether at least one background task uses the system component; and
And stopping the system component when at least one background task uses the system component.

本実施態様では、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントが停止されるため、デバイスの電力消費および電力損失を低減させることができる。   In this embodiment, system components used by at least one background task corresponding to the second scenario are stopped, so that power consumption and power loss of the device can be reduced.

任意選択で、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含む。
Optionally, processing to reduce system resource usage is:
Freezing at least one background task;
Stop at least one background task,
Including at least one of: limiting system resources used by at least one background task.

この場合、ステップ404は、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結するステップ、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを停止するステップ、または
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するステップ
とすることができる。
In this case, step 404 freezes at least one background task corresponding to the second scenario,
Stopping at least one background task corresponding to the second scenario, or limiting system resources used by at least one background task corresponding to the second scenario.

任意選択で、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結するステップは、バックグラウンドタスクがシステムリソースを呼び出すことを禁止するステップ、例えば、CPUが、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出すことを禁止するステップ、とすることができる。具体的には、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクが任意のスケジューリングに関与することを禁止するのに、オペレーティングシステムのタスクスケジューラが使用される。第2のシナリオに対応する少なくとも1つのバックグラウンドタスクがシステムリソースを呼び出すことを禁止されるため、デバイスの電力消費が低減される。   Optionally, freezing at least one background task corresponding to the second scenario is to prohibit the background task from invoking system resources, e.g., the CPU is at least corresponding to the first scenario It can be a step that prohibits calling one background task. Specifically, the operating system's task scheduler is used to prohibit at least one background task corresponding to the first scenario from participating in any scheduling. Since at least one background task corresponding to the second scenario is prohibited from calling system resources, the power consumption of the device is reduced.

任意選択で、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するステップは、CPUがその時間以内に第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出す時間を制限するステップ、とすることもできる。例えば、CPUがCPU呼び出しの時間値によって指示される時間内に第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出すことができるように、時間値が第2のシナリオに対応する少なくとも1つのバックグラウンドタスクのために設定される。加えて、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するステップはさらに、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによるシステムリソースの使用を制限するステップ、とすることもできる。例えば、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによるネットワーク帯域幅の使用を制限するステップ、または、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによるメモリ空間の使用を制限するステップ。加えて、このステップはさらに、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対応する異なるシナリオに応じて異なる制限措置を使用するステップ、とすることもできる。前述のステップでは第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによるシステムリソースの使用が制限されるため、デバイスの電力消費が低減される。   Optionally, limiting the system resources used by at least one background task corresponding to the second scenario causes the CPU to call at least one background task corresponding to the second scenario within that time It can also be a step of limiting time. For example, at least one time value corresponding to the second scenario so that the CPU can call at least one background task corresponding to the second scenario within the time indicated by the time value of the CPU call Set for background tasks. In addition, the step of limiting system resources used by at least one background task corresponding to the second scenario further limits the use of system resources by at least one background task corresponding to the second scenario It can also be a step. For example, limiting network bandwidth usage by at least one background task corresponding to the second scenario, or limiting memory space usage by at least one background task corresponding to the second scenario . In addition, this step can further be a step of using different restriction measures depending on different scenarios corresponding to at least one background task corresponding to the second scenario. The aforementioned steps limit the use of system resources by at least one background task corresponding to the second scenario, thus reducing the power consumption of the device.

任意選択で、本方法は具体的には、タブレットコンピュータ、携帯電話、電子リーダ、リモコン、PC、ノートブックコンピュータ、車内デバイス、ウェブテレビ、ウェアラブルデバイス、またはネットワーク機能を有する他のインテリジェントデバイスといった、マルチタスクシステムを有する任意のデバイスに適用することができる。   Optionally, the method specifically includes multiple computers such as tablet computers, mobile phones, electronic readers, remote controls, PCs, notebook computers, in-car devices, web TVs, wearable devices, or other intelligent devices with network capabilities. It can be applied to any device having a task system.

前述の技術的解決策においては、フォアグラウンドタスクに対応する第1のシナリオがフォアグラウンドタスクに従って決定され、フォアグラウンドタスクに対応する第1のシナリオ以外の第2のシナリオが決定され、第2のシナリオはタスク制限が許可されるシナリオであり、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクが探索され、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が行われ、制限処理はシステムリソース使用を低減させるための処理をいう。したがって、デバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, the first scenario corresponding to the foreground task is determined according to the foreground task, the second scenario other than the first scenario corresponding to the foreground task is determined, and the second scenario is a task. A scenario where restrictions are allowed, the second scenario corresponds to at least one background task, and at least one background task corresponding to the second scenario is searched and at least one corresponding to the second scenario Restriction processing is performed for one background task, and the restriction processing is processing for reducing the use of system resources. Therefore, power consumption and power loss of the device can be reduced.

図6を参照すると、図6は、本発明の一実施形態によるタスク管理方法の概略的流れ図である。図6に示すように、本方法は、以下のステップを含む。   Referring to FIG. 6, FIG. 6 is a schematic flowchart of a task management method according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps.

601.現在切り換えられているシナリオがホワイトリストに含まれるシナリオであるかどうか判定する。「はい」の場合、ステップ602を行う。「いいえ」の場合、プロセスを終了する。ホワイトリストは、バックグラウンドタスク制限が許可される少なくとも1つのシナリオを含む事前設定リストである。   601. It is determined whether the currently switched scenario is a scenario included in the white list. If yes, step 602 is performed. If no, end the process. The white list is a pre-configured list that includes at least one scenario where background task restrictions are allowed.

任意選択で、前述のシナリオは具体的には、ステップ601を遂行するデバイスの動作の状況とすることもできる。デバイスの動作の状況は、デバイスがシステムリソースを使用する状況をいいうる。システムリソースは具体的には、ハードウェアリソース、例えばCPUリソースやメモリリソースとすることもでき、システムリソースは具体的には、仮想リソース、例えば、ネットワーク帯域幅リソースやオペレーティング・システム・リソースとすることもでき、これは本発明の実施形態では限定されない。シナリオは、電話をかけること、ショート・メッセージ・サービス・メッセージを送信すること、ブラウザを使用すること、2D/3Dゲームをプレーすること、メイン・ユーザ・インターフェースを見ること、ファイルをダウンロードすること、電子ブックを読むこと、音楽を再生すること、ビデオを見ること、ウェブサイトをナビゲートすること、写真をブラウズすること、写真を撮影すること、ビデオを作成すること、電子メールを送信することなどとすることができる。加えて、現在切り換えられているシナリオは、1つまたは複数のシナリオとすることもできる。加えて、シナリオ切り換えは具体的には、フォアグラウンドタスクの切り換え時間によって発生する切り換えとすることもできる。例えば、フォアグラウンドタスクが開始されるときに、1つまたは複数のシナリオに切り換えられる。例えば、電話をかけるというタスクが開始されるときに、デバイスは、電話をかけるシナリオに切り換わり、音楽タスクが開始されるときに、デバイスは音楽再生シナリオおよび音楽ダウンロードシナリオに切り換わり、ゲームタスクが開始されるときに、デバイスはゲームシナリオおよびインターネット・アクセス・シナリオに切り換わる。例えば、フォアグラウンドタスクが停止されるときに、デバイスは1つまたは複数のシナリオに切り換わる。例えば、ゲームタスクが停止されるときに、デバイスはゲームシナリオからメイン・ユーザ・インターフェース・シナリオに切り換わる。   Optionally, the aforementioned scenario may specifically be a situation of operation of the device performing step 601. The operation status of the device may refer to a status in which the device uses system resources. The system resource can specifically be a hardware resource such as a CPU resource or a memory resource, and the system resource can be a virtual resource such as a network bandwidth resource or an operating system resource. This is not limited in the embodiments of the present invention. Scenarios include making a call, sending a short message service message, using a browser, playing a 2D / 3D game, viewing the main user interface, downloading a file, Reading ebooks, playing music, watching videos, navigating websites, browsing photos, taking photos, creating videos, sending emails, etc. It can be. In addition, the currently switched scenario may be one or more scenarios. In addition, the scenario switching can be specifically a switching that occurs depending on the switching time of the foreground task. For example, when a foreground task is started, it is switched to one or more scenarios. For example, when the task of making a phone call is initiated, the device switches to a phone call scenario, when the music task is initiated, the device switches to a music playback scenario and a music download scenario, and the game task is When started, the device switches to a game scenario and an internet access scenario. For example, when a foreground task is stopped, the device switches to one or more scenarios. For example, when a game task is stopped, the device switches from a game scenario to a main user interface scenario.

任意選択で、バックグラウンドタスク制限が許可されるシナリオは、ユーザによって入力される操作を受け取るために設定されるシナリオとすることもできる。このように、バックグラウンドタスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。例えば、ユーザはデバイスの電力消費を低減させたいと思い、ユーザは、ホワイトリストにおいて、バックグラウンドタスク制限が許可される複数のシナリオを設定することができ、例えば、バックグラウンドタスク制限が許可されるシナリオとしてブラウザシナリオ、ゲームシナリオ、ナビゲーションシナリオなどを設定する。このように、デバイスの現在のシナリオがブラウザシナリオ、ゲームシナリオ、またはナビゲーションシナリオであるときに、デバイスの電力消費を低減させるためにステップ602を行うことができる。   Optionally, the scenario in which background task restrictions are allowed can also be a scenario that is set up to receive operations entered by the user. As described above, it is possible to realize a scenario in which background task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits. For example, the user wants to reduce the power consumption of the device, and the user can set multiple scenarios in the whitelist where background task limits are allowed, eg background task limits are allowed Browser scenario, game scenario, navigation scenario, etc. are set as scenarios. Thus, step 602 can be performed to reduce the power consumption of the device when the current scenario of the device is a browser scenario, a game scenario, or a navigation scenario.

任意選択で、バックグラウンドタスク制限が許可されるシナリオは、デバイスの性能に従って自動的に設定することもできる。例えば、デバイスが優れた性能を有するとき、例えば、デバイスのCPUが高速で走っており、デバイスが大容量のメモリを有し、またはデバイスが十分な電池を有するときには、ホワイトリストにおいてバックグラウンドタスク制限が許可されるごく少数のシナリオが設定されうる。例えば、デバイスが不十分な性能を有するとき、例えば、デバイスのCPUが低速で走っており、デバイスが小容量のメモリを有し、またはデバイスが十分な電池を有しないときには、ホワイトリストにおいてバックグラウンドタスク制限が許可される多数のシナリオが設定されうる。ホワイトリストはバックグラウンドタスク制限が許可される多数のシナリオを有し、ステップ602およびステップ603が複数回行われるため、デバイスの電力消費を低減させ、デバイスの安定動作を保証するように、制限処理を許可する複数のバックグラウンドタスクに対して制限処理を行うことができる。   Optionally, scenarios where background task restrictions are allowed can also be set automatically according to device performance. For example, when the device has excellent performance, for example, when the device's CPU is running at high speed, the device has a large amount of memory, or the device has enough batteries, the background task limits in the whitelist Only a few scenarios can be set up that are allowed. For example, when the device has insufficient performance, for example when the device's CPU is running at low speed, the device has a small amount of memory, or the device does not have enough batteries, A number of scenarios where task restrictions are allowed can be set. The whitelist has a large number of scenarios where background task limits are allowed, and step 602 and step 603 are performed multiple times, so the limit process is performed to reduce device power consumption and ensure stable device operation. Restriction processing can be performed for multiple background tasks that allow

602.現在切り換えられているシナリオがホワイトリストに含まれるシナリオであると判定されると、現在走っているバックグラウンドタスク内の制限処理を許可するバックグラウンドタスクを探索する。制限処理はシステムリソース使用を低減させるための処理をいう。   602. When it is determined that the currently switched scenario is a scenario included in the white list, a background task that permits the restriction process in the currently running background task is searched. The restriction process refers to a process for reducing system resource usage.

任意選択で、制限処理を許可するバックグラウンドタスクは具体的には、制限処理を受けた後で(フォアグラウンドタスクといった)他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならないバックグラウンドタスクとすることもでき、制限処理を許可するバックグラウンドタスクは具体的には、所定のバックグラウンドタスクとすることもでき、制限処理を許可するバックグラウンドタスクは具体的には、特定の条件を満たすバックグラウンドタスクとすることもできる。   Optionally, the background task that allows the restriction process can be a background task that does not affect other tasks or the operating system (such as the foreground task) after receiving the restriction process. Specifically, the background task that permits the restriction process can also be a predetermined background task, and the background task that permits the restriction process is specifically a background task that satisfies a specific condition. You can also

任意選択で、制限処理は具体的には、タスクによって現在使用されているシステムリソースを低減させるのに使用される操作とすることもできる。例えば、バックグラウンドタスクAによって使用されるシステムリソースの数量はステップ101が行われるときにはAであり、バックグラウンドタスクAに対して制限処理が行われた後で、バックグラウンドタスクAによって使用されるシステムリソースの数量はBであり、AはBよりも大きい。加えて、Bを0とすることもできる。   Optionally, the restriction process may specifically be an operation used to reduce system resources currently used by the task. For example, the amount of system resources used by background task A is A when step 101 is performed, and the system used by background task A after restriction processing is performed for background task A The quantity of resources is B, and A is larger than B. In addition, B can be zero.

603.制限処理を許可するバックグラウンドタスクに対して制限処理を行う。   603. Restriction processing is performed for background tasks that allow restriction processing.

任意選択で、本方法は具体的には、タブレットコンピュータ、携帯電話、電子リーダ、リモコン、PC、ノートブックコンピュータ、車内デバイス、ウェブテレビ、ウェアラブルデバイス、またはネットワーク機能を有する他のインテリジェントデバイスといった、マルチタスクシステムを有する任意のデバイスに適用することができる。   Optionally, the method specifically includes multiple computers such as tablet computers, mobile phones, electronic readers, remote controls, PCs, notebook computers, in-car devices, web TVs, wearable devices, or other intelligent devices with network capabilities. It can be applied to any device having a task system.

本実施形態のシナリオは前述の実施形態のシナリオと等しいものとすることができることに留意すべきである。加えて、本実施形態のホワイトリストは前述の実施形態の第1のリストとすることもできる。   It should be noted that the scenario of this embodiment can be equal to the scenario of the previous embodiment. In addition, the white list of this embodiment may be the first list of the above-described embodiment.

前述の技術的解決策においては、現在切り換えられているシナリオがホワイトリストに含まれるかシナリオであるどうかが判定され、ホワイトリストは、バックグラウンドタスク制限が許可される少なくとも1つのシナリオを含む事前設定リストであり、現在切り換えられているシナリオがホワイトリストに含まれるシナリオであると判定されると、現在走っているバックグラウンドタスク内で制限処理を許可するバックグラウンドタスクが探索され、制限処理はシステムリソース使用を低減させるための処理をいい、制限処理を許可するバックグラウンドタスクに対して制限処理が行われる。このようにして、制限処理を許可するバックグラウンドタスクに対して制限処理が行われる。バックグラウンドタスクが常に実行されている先行技術と比べて、本発明の本実施形態は、デバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, it is determined whether the currently switched scenario is whitelisted or a scenario, and the whitelist is preconfigured with at least one scenario that allows background task restrictions. When it is determined that the currently switched scenario is included in the whitelist, the background task that allows the restriction process is searched for in the background task that is currently running, and the restriction process is performed by the system. This is a process for reducing resource usage, and a restriction process is performed for a background task that permits the restriction process. In this way, the restriction process is performed on the background task that permits the restriction process. Compared to the prior art where background tasks are always executed, this embodiment of the present invention can reduce the power consumption and power loss of the device.

図7を参照すると、図7は、本発明の一実施形態による別のタスク管理方法の概略図である。図7に示すように、本方法は、以下のステップを含む。   Referring to FIG. 7, FIG. 7 is a schematic diagram of another task management method according to an embodiment of the present invention. As shown in FIG. 7, the method includes the following steps.

701.デバイスが、ゲームシナリオ、ブラウザシナリオ、またはナビゲーションシナリオに入ることを検出する。ゲームシナリオ、ブラウザシナリオ、またはナビゲーションシナリオは例にすぎず、本実施形態は、それだけに限らないが、これらのシナリオが、例えば、オーディオ再生またはビデオ再生シナリオも含みうることも含む。   701. Detect that the device enters a game scenario, browser scenario, or navigation scenario. Game scenarios, browser scenarios, or navigation scenarios are merely examples, and this embodiment includes, but is not limited to, these scenarios can also include, for example, audio playback or video playback scenarios.

702.凍結される必要のあるバックグラウンドタスクを問い合わせ、決定する。   702. Query and determine background tasks that need to be frozen.

703.凍結される必要のあるバックグラウンドタスクがシステムコンポーネントを使用するかどうか判定する。「はい」の場合、ステップ704を行う。「いいえ」の場合、ステップ705を行う。ステップ703は、凍結される必要のあるバックグラウンドタスクがスリープロックを使用するかどうか判定するステップ、および/または、凍結される必要のあるバックグラウンドタスクがタイマ使用するかどうか判定するステップ、および/または、凍結される必要のあるバックグラウンドタスクがブロードキャスト通知を使用するかどうか判定するステップ、を含むことができる。   703. Determine whether background tasks that need to be frozen use system components. If yes, step 704 is performed. If “no”, step 705 is performed. Step 703 determines whether a background task that needs to be frozen uses a sleep lock, and / or determines whether a background task that needs to be frozen uses a timer, and / or Or, determining whether a background task that needs to be frozen uses broadcast notifications.

704.システムコンポーネントを休止する。ステップ704は、凍結される必要のあるバックグラウンドタスクがスリープロックを使用する場合に、スリープロックを休止するステップ、凍結される必要のあるバックグラウンドタスクがタイマを使用する場合に、タイマを休止するステップ、凍結される必要のあるバックグラウンドタスクがブロードキャスト通知を使用する場合に、ブロードキャスト通知を休止するステップ、を含むことができる。   704. Halt system components. Step 704 pauses the sleep lock if the background task that needs to be frozen uses sleep lock, pauses the timer if the background task that needs to be frozen uses the timer Suspending broadcast notification when a background task that needs to be frozen uses broadcast notification.

705.凍結される必要のあるバックグラウンドタスクを凍結する。   705. Freeze background tasks that need to be frozen.

本タスク管理方法は以下をさらに含むことができる。   The task management method may further include:

706.デバイスがメイン・ユーザ・インターフェース・シナリオに切り換わることを検出する。   706. Detect that the device switches to the main user interface scenario.

707.凍結されているバックグラウンドタスクを問い合わせる。   707. Queries frozen background tasks.

708.凍結されているバックグラウンドタスクのためのシステムコンポーネントを再開する。ステップ708は、スリープロックを再開するステップ、タイマを再開するステップ、およびブロードキャスト通知を再開するステップ、を含むことができる。   708. Resume system components for frozen background tasks. Step 708 can include resuming sleep lock, resuming a timer, and resuming broadcast notification.

709.凍結されているバックグラウンドタスクを凍結解除する。   709. Unfreeze background tasks that are frozen.

以下で本発明の装置実施形態を説明する。本発明の装置実施形態は、本発明の第1の実施形態から第5の実施形態において実施される方法を実行するのに使用される。説明を容易にするために、以下では、本発明の実施形態に関連した部分だけを説明する。開示されない具体的な技術詳細については、本発明の第1の実施形態、第2の実施形態、第3の実施形態、第4の実施形態、および第5の実施形態を参照されたい。   The apparatus embodiment of the present invention will be described below. The apparatus embodiments of the present invention are used to perform the methods implemented in the first to fifth embodiments of the present invention. For ease of explanation, only the parts related to the embodiment of the present invention will be described below. For specific technical details that are not disclosed, refer to the first embodiment, the second embodiment, the third embodiment, the fourth embodiment, and the fifth embodiment of the present invention.

図8を参照すると、図8は、本発明の一実施形態によるタスク管理デバイスの構造の概略図である。図8に示すように、本タスク管理デバイスは、決定部81と、第1の探索部82と、第1の処理部83とを含む。   Referring to FIG. 8, FIG. 8 is a schematic diagram of the structure of a task management device according to an embodiment of the present invention. As shown in FIG. 8, the task management device includes a determination unit 81, a first search unit 82, and a first processing unit 83.

決定部81は、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するように構成されている。   The determining unit 81 is configured to determine a first scenario corresponding to the foreground task according to the foreground task.

任意選択で、決定部81は具体的には、現在のタスクが切り換えられるときに、現在のタスクに従って対応する第1のシナリオを決定することもできる。例えば、現在のタスク、音楽タスクが実行されているときに、このタスクは、音楽シナリオまたはダウンロードシナリオに入る。このように、フォアグラウンドタスクに対応する第1のシナリオは、音楽シナリオ、ダウンロードシナリオなどとすることができることを決定することができる。加えて、フォアグラウンドタスクは1つまたは複数の複数のフォアグラウンドタスクとすることもできる。複数のフォアグラウンドタスクの場合には、決定部81は、複数のフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するように構成することができる。すなわち、決定部81は、少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定することができる。   Optionally, the determining unit 81 can specifically determine the corresponding first scenario according to the current task when the current task is switched. For example, when a current task, a music task is being executed, this task enters a music scenario or a download scenario. Thus, it can be determined that the first scenario corresponding to the foreground task can be a music scenario, a download scenario, or the like. In addition, the foreground task can be one or more foreground tasks. In the case of a plurality of foreground tasks, the determination unit 81 can be configured to determine a first scenario corresponding to each foreground task according to the plurality of foreground tasks. That is, the determination unit 81 can determine the first scenario corresponding to each foreground task according to at least one foreground task.

第1の探索部82は、フォアグラウンドタスクに対応し、決定部81によって決定される第1のシナリオが第1のリストにあるときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するように構成されており、第1のリストはタスク制限が許可されるシナリオを含む。   The first search unit 82 corresponds to the foreground task, and searches for at least one background task corresponding to the first scenario when the first scenario determined by the determination unit 81 is in the first list. The first list includes scenarios where task restrictions are allowed.

任意選択で、タスク制限が許可され、第1のリストに含まれるシナリオは、ユーザによって入力される操作を受け取るために設定されるシナリオとすることもできる。このように、タスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。例えば、ユーザはデバイスの電力消費を低減させたいと思い、ユーザは第1のリストにおいてタスク制限が許可される複数のシナリオを設定することができ、例えば、タスク制限が許可されるシナリオとしてブラウザシナリオ、ゲームシナリオ、ナビゲーションシナリオなどを設定する。このように、現在のタスクに対応する第1のシナリオがブラウザシナリオ、ゲームシナリオ、またはナビゲーションシナリオであるときに、第1の探索部82は、デバイスの電力消費を低減させるために探索動作を行うことができる。   Optionally, the scenario where task restrictions are allowed and included in the first list may be a scenario configured to receive an operation entered by the user. As described above, it is possible to realize a scenario in which task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits. For example, the user wants to reduce the power consumption of the device, and the user can set multiple scenarios where task restrictions are allowed in the first list, e.g. browser scenarios as scenarios where task restrictions are allowed Set game scenario, navigation scenario, etc. Thus, when the first scenario corresponding to the current task is a browser scenario, a game scenario, or a navigation scenario, the first search unit 82 performs a search operation to reduce the power consumption of the device. be able to.

任意選択で、タスク制限が許可され、第1のリストに含まれるシナリオは、デバイスの性能に従って自動的に設定することもできる。例えば、デバイスが優れた性能を有するとき、例えば、デバイスのCPUが高速で走っており、デバイスが大容量のメモリを有し、またはデバイスが十分な電池を有するときには、第1のリストにおいてタスク制限が許可されるごく少数のシナリオが設定されうる。例えば、デバイスが不十分な性能を有するとき、例えば、デバイスのCPUが低速で走っており、デバイスが小容量のメモリを有し、またはデバイスが十分な電池を有しないときには、第1のリストにおいてタスク制限が許可される多数のシナリオが設定されうる。このようにして、デバイスの電力消費を低減させることができる。   Optionally, task restrictions are allowed and the scenarios included in the first list can also be set automatically according to device performance. For example, when a device has excellent performance, for example, when the device's CPU is running at high speed, the device has a large amount of memory, or the device has enough battery, task limits in the first list Only a few scenarios can be set up that are allowed. For example, when the device has insufficient performance, for example, when the device's CPU is running at low speed, the device has a small amount of memory, or the device does not have enough batteries, in the first list A number of scenarios where task restrictions are allowed can be set. In this way, the power consumption of the device can be reduced.

任意選択で、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第1のシナリオに対応するすべてのバックグラウンドタスク内の少なくとも1つのバックグラウンドタスクをいうこともでき、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第1のシナリオに対応するすべてのバックグラウンドタスクをいうこともできる。本実施形態はこれに対して制限を設定しない。   Optionally, at least one background task corresponding to the first scenario can also refer to at least one background task in all background tasks corresponding to the first scenario, The corresponding at least one background task can also refer to all background tasks corresponding to the first scenario. In the present embodiment, no limit is set for this.

第1の処理部83は、第1のシナリオに対応し、第1の探索部82によって探索される少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成されており、制限処理はシステムリソース使用を低減させるための処理をいう。   The first processing unit 83 corresponds to the first scenario, and is configured to perform restriction processing on at least one background task searched by the first search unit 82. The restriction processing uses system resources. This is a process for reducing.

任意選択で、制限処理は、タスクによって現在使用されているシステムリソースを低減させるための処理とすることもできる。   Optionally, the limiting process can be a process to reduce system resources currently used by the task.

任意選択で、本デバイスは具体的には、タブレットコンピュータ、携帯電話、電子リーダ、リモコン、PC、ノートブックコンピュータ、車内デバイス、ウェブテレビ、ウェアラブルデバイス、またはネットワーク機能を有する他のインテリジェントデバイスといった、マルチタスクシステムを有する任意のデバイスとすることができる。   Optionally, the device is specifically a multi-purpose device such as a tablet computer, mobile phone, electronic reader, remote control, PC, notebook computer, in-car device, web TV, wearable device, or other intelligent device with network capabilities. It can be any device with a task system.

前述の技術的解決策においては、フォアグラウンドタスクに対応する第1のシナリオがフォアグラウンドタスクに従って決定され、フォアグラウンドタスクに対応する第1のシナリオが第1のリストにあるときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクが探索され、第1のリストはタスク制限が許可されるシナリオを含み、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が行われ、制限処理はシステムリソース使用を低減させるための処理をいう。このようにして、タスク制限が許可されるシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が遂行される。バックグラウンドタスクが常に実行されている先行技術と比べて、本発明の実施形態は、デバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, the first scenario corresponding to the foreground task is determined according to the foreground task, and the first scenario corresponding to the foreground task is in the first list, it corresponds to the first scenario At least one background task is searched, the first list includes scenarios where task restrictions are allowed, and the restriction process is performed on at least one background task corresponding to the first scenario, and the restriction process Is a process for reducing the use of system resources. In this manner, the restriction process is performed on at least one background task corresponding to a scenario in which task restriction is permitted. Compared to the prior art where background tasks are always executed, embodiments of the present invention can reduce device power consumption and power loss.

図9を参照すると、図9は、本発明の一実施形態によるタスク管理デバイスの構造の概略図である。図9に示すように、本タスク管理デバイスは、決定部91と、判断部92と、第1の探索部93と、第1の処理部94とを含む。   Referring to FIG. 9, FIG. 9 is a schematic diagram of the structure of a task management device according to an embodiment of the present invention. As shown in FIG. 9, the task management device includes a determination unit 91, a determination unit 92, a first search unit 93, and a first processing unit 94.

決定部91は、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するように構成されている。   The determining unit 91 is configured to determine a first scenario corresponding to the foreground task according to the foreground task.

判断部92は、決定部91によって決定される第1のシナリオが第1のリストにあるかどうか判定するように構成されており、第1のリストはタスク制限が許可されるシナリオを含む。   The determination unit 92 is configured to determine whether or not the first scenario determined by the determination unit 91 is in the first list, and the first list includes scenarios in which task restriction is permitted.

第1の探索部93は、判断部92が、決定部91によって決定される第1のシナリオが第1のリストにあると決定したときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するように構成されている。   The first search unit 93, when the determination unit 92 determines that the first scenario determined by the determination unit 91 is in the first list, at least one background task corresponding to the first scenario Is configured to search for.

任意選択で、第1の探索部93は具体的には、第1のシナリオに対応するバックグラウンドタスク内の、制限処理を受けた後で他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならない少なくとも1つのバックグラウンドタスクを探索することもでき、第1のシナリオに対応するバックグラウンドタスク内の少なくとも1つの所定のバックグラウンドタスクを探索することもでき、第1のシナリオに対応するバックグラウンドタスク内の、そのユーザ識別子が一般ユーザに対応する少なくとも1つのバックグラウンドタスクを探索することもできる。例えば、第1のシナリオに対応する各バックグラウンドタスクのユーザ識別子UIDが探索され、そのUIDが一般ユーザに対応するバックグラウンドタスクが探索され、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクとして使用される。   Optionally, the first search unit 93 specifically does not affect other tasks or the operating system after receiving the restriction process in the background task corresponding to the first scenario. You can also search for one background task, you can also search for at least one predefined background task in the background task that corresponds to the first scenario, and in the background task that corresponds to the first scenario It is also possible to search for at least one background task whose user identifier corresponds to a general user. For example, the user identifier UID of each background task corresponding to the first scenario is searched, the background task whose UID corresponds to the general user is searched, and as at least one background task corresponding to the first scenario used.

このようにして、第1のシナリオに対応し、第1の探索部93によって探索される少なくとも1つのバックグラウンドタスクが、そのUIDが一般ユーザに対応するバックグラウンドタスクであることを実現することができる。UIDは、各タスクの固有の識別子であり、タスクを一意に識別するのに使用することができる。加えて、UIDは、システムユーザおよび一般ユーザにも対応しうる。バックグラウンドタスクのUIDがシステムユーザに対応するとき、これは、バックグラウンドタスクがオペレーティングシステムに含まれるバックグラウンドタスクであることを指示する。バックグラウンドタスクのUIDが一般ユーザに対応するとき、これは、バックグラウンドタスクがオペレーティングシステムに含まれるバックグラウンドタスクではないことを指示する。   In this way, it is possible to realize that at least one background task corresponding to the first scenario and searched by the first search unit 93 is a background task whose UID corresponds to a general user. it can. The UID is a unique identifier for each task and can be used to uniquely identify the task. In addition, the UID can correspond to system users and general users. When the background task UID corresponds to a system user, this indicates that the background task is a background task included in the operating system. When the background task UID corresponds to a regular user, this indicates that the background task is not a background task included in the operating system.

任意選択で、本デバイスは、第1のシナリオに対応する少なくとも1つのバックグラウンドタスク内の、そのUIDがシステムユーザに対応するバックグラウンドタスクを無視するようにさらに構成することもできる。すなわち、そのUIDがシステムユーザに対応するバックグラウンドタスクに対しては処理が行われない。   Optionally, the device can be further configured to ignore the background task whose UID corresponds to the system user in at least one background task corresponding to the first scenario. That is, no processing is performed for the background task whose UID corresponds to the system user.

任意選択で、第1の探索部93は、第1のシナリオに対応するバックグラウンドタスク内の、そのシステムリソース使用が事前設定閾値に達する少なくとも1つのバックグラウンドタスクを探索することもできる。例えば、第1のシナリオに対応するバックグラウンドタスク内の、そのCPUリソース使用がCPUリソースの10%に達する少なくとも1つのバックグラウンドタスクが探索され、または、第1のシナリオに対応するバックグラウンドタスク内の、そのスリープロック保持期間が10分間に達する少なくとも1つのバックグラウンドタスクが探索され、または、第1のシナリオに対応するバックグラウンドタスク内の、その平均データダウンロード速度が10M/分に達する少なくとも1つのバックグラウンドタスクが探索される。   Optionally, the first search unit 93 can also search for at least one background task in the background task corresponding to the first scenario whose system resource usage reaches a preset threshold. For example, at least one background task in the background task corresponding to the first scenario whose CPU resource usage reaches 10% of the CPU resource is searched or in the background task corresponding to the first scenario At least one background task whose sleep lock retention period reaches 10 minutes is searched, or at least one of its average data download speed within the background task corresponding to the first scenario reaches 10M / min Two background tasks are searched.

第1の処理部94は、第1のシナリオに対応し、第1の探索部93によって探索される少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成されており、制限処理はシステムリソース使用を低減させるための処理をいう。   The first processing unit 94 corresponds to the first scenario, and is configured to perform restriction processing on at least one background task searched by the first search unit 93. The restriction processing uses system resources. This is a process for reducing.

任意選択で、図10に示すように、本デバイスは、
フォアグラウンドタスクに対応し、決定部91によって探索される第1のシナリオ以外の第2のシナリオを探索するように構成された第2の探索部であって、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、第1のリストは第2のシナリオを含む、第2の探索部95と、
第2のシナリオに対応し、第2の探索部95によって探索される少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成された第2の処理部96と
をさらに含むことができる。
Optionally, as shown in FIG. 10, the device
A second search unit corresponding to the foreground task and configured to search for a second scenario other than the first scenario searched by the determination unit 91, wherein the second scenario is at least one background A second search unit 95 corresponding to the task, the first list includes the second scenario, and
A second processing unit 96 corresponding to the second scenario and configured to perform a restriction process on at least one background task searched by the second search unit 95.

任意選択で、第2のシナリオは1つまたは複数のシナリオをいうこともできる。加えて、第2のシナリオは、第1のシナリオ以外のすべてのシナリオをいうこともでき、第1のシナリオ以外の1つまたは複数のシナリオをいうこともでき、これは本実施形態では限定されない。   Optionally, the second scenario can also refer to one or more scenarios. In addition, the second scenario can also refer to all scenarios other than the first scenario, and can also refer to one or a plurality of scenarios other than the first scenario, which is not limited in the present embodiment. .

加えて、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスク内の少なくとも1つのバックグラウンドタスクをいうこともでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスクをいうこともできる。本実施形態はこれに対して制限を設定しない。加えて、第2のシナリオは具体的には、所定のシナリオ、例えば、ユーザによって入力された操作を受け取るために設定されるシナリオとすることもできる。このように、タスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。加えて、第2の探索部95は具体的には、第2のシナリオに対応するバックグラウンドタスク内の、制限処理を受けた後で他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならない少なくとも1つのバックグラウンドタスクを探索することもでき、第2のシナリオに対応するバックグラウンドタスク内の少なくとも1つの所定のバックグラウンドタスクを探索することもでき、第2のシナリオに対応するバックグラウンドタスク内の、そのユーザ識別子が一般ユーザに対応する少なくとも1つのバックグラウンドタスクを探索することもできる。   In addition, at least one background task corresponding to the second scenario can also refer to at least one background task in all background tasks corresponding to the second scenario, corresponding to the second scenario The at least one background task can also refer to all background tasks corresponding to the second scenario. In the present embodiment, no limit is set for this. In addition, the second scenario may specifically be a predetermined scenario, for example, a scenario set to receive an operation input by the user. As described above, it is possible to realize a scenario in which task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits. In addition, the second search unit 95 specifically has at least one in the background task corresponding to the second scenario that does not affect other tasks or the operating system after receiving the restriction process. You can also search for one background task, you can also search for at least one predefined background task in the background task that corresponds to the second scenario, and in the background task that corresponds to the second scenario It is also possible to search for at least one background task whose user identifier corresponds to a general user.

任意選択で、第2のシナリオは、第1のシナリオ以外の、第2のリストにないシナリオとすることもでき、第2のリストは、タスク制限が禁止されるシナリオを含むことができる。タスク制限が禁止されるシナリオは、ユーザによって入力される操作を受け取るために設定されるシナリオとすることができる。このように、タスク制限が禁止されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。例えば、ユーザは、第2のリストにおいて、タスク制限が禁止されるシナリオとしてユーザの注意を必要とするシナリオ、例えば、ショート・メッセージ・サービス・メッセージ・シナリオ、電話シナリオ、ダウンロードシナリオを設定することができる。あるいは、タスク制限が禁止されるシナリオは、デバイスの性能に従って自動的に設定することもできる。例えば、デバイスが優れた性能を有するとき、例えば、デバイスのCPUが高速で走っており、デバイスが大容量のメモリを有し、またはデバイスが十分な電池を有するときには、第2のリストにおいてタスク制限が禁止される多数のシナリオが設定されうる。例えば、デバイスが不十分な性能を有するとき、例えば、デバイスのCPUが低速で走っており、デバイスが小容量のメモリを有し、またはデバイスが十分な電池を有しないときには、第2のリストにおいてタスク制限が禁止されるごく少数のシナリオが設定されうる。   Optionally, the second scenario may be a scenario that is not in the second list other than the first scenario, and the second list may include scenarios where task restrictions are prohibited. The scenario in which task restriction is prohibited can be a scenario set to receive an operation input by a user. As described above, it is possible to realize a scenario in which task restriction is prohibited, which is set according to an operation input by the user and meets the user's requirements or habits. For example, in the second list, the user may set a scenario that requires the user's attention as a scenario in which task restriction is prohibited, such as a short message service message scenario, a telephone scenario, and a download scenario. it can. Alternatively, a scenario in which task restriction is prohibited can be automatically set according to device performance. For example, when the device has excellent performance, for example, when the device's CPU is running at high speed, the device has a large amount of memory, or the device has enough battery, task limits in the second list There are a number of scenarios that can be prohibited. For example, when the device has insufficient performance, for example, when the device's CPU is running at low speed, the device has a small amount of memory, or the device does not have enough batteries, in the second list There can be very few scenarios where task restrictions are prohibited.

任意選択で、図11に示すように、本デバイスは、
少なくとも1つのバックグラウンドタスクのユーザ識別子を問い合わせるように構成された第1の問い合わせ部97と、
少なくとも1つのバックグラウンドタスクのものであり、第1の問い合わせ部によって問い合わせられるユーザ識別子がシステムユーザに対応する場合に、少なくとも1つのバックグラウンドタスクを無視するように構成された無視部98と
をさらに含むことができ、
第1の処理部94は、少なくとも1つのバックグラウンドタスクのものであり、第1の問い合わせ部97によって問い合わせられるユーザ識別子が一般ユーザに対応する場合に、少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成することができる。
Optionally, as shown in FIG.
A first query unit 97 configured to query a user identifier of at least one background task;
And an ignoring unit 98 configured to ignore at least one background task when the user identifier queried by the first query unit corresponds to a system user and is of at least one background task. Can include
The first processing unit 94 is for at least one background task, and performs a restriction process on at least one background task when the user identifier inquired by the first inquiry unit 97 corresponds to a general user. It can be constituted as follows.

本実施態様では、そのUIDが一般ユーザに対応するバックグラウンドタスクはオペレーティングシステムのタスクではないため、バックグラウンドタスクに対して一般ユーザ制限処理が行われた後で他のタスクが影響を受けない。したがって、第1の処理部94は、そのUIDが一般ユーザに対応するバックグラウンドタスクのみ制限し、これにより、他のタスクに影響を及ぼさずにデバイスの電力消費および電力損失を低減させることができる。   In this embodiment, since the background task whose UID corresponds to the general user is not an operating system task, other tasks are not affected after the general user restriction process is performed on the background task. Therefore, the first processing unit 94 can limit only the background task whose UID corresponds to a general user, thereby reducing the power consumption and power loss of the device without affecting other tasks. .

任意選択で、図12に示すように、本デバイスは、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始するように構成されたタイミング部99と、
タイマが事前設定閾値を超えたときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するように構成された第1の停止部100と
をさらに含むことができる。
Optionally, as shown in FIG. 12, the device
A timing unit 99 configured to start a timer for at least one background task corresponding to the first scenario;
And a first stop 100 configured to stop a system component used by at least one background task corresponding to the first scenario when the timer exceeds a preset threshold. it can.

任意選択で、システムコンポーネントは、それだけに限らないが、タイマ、スリープロック、およびブロードキャスト通知を含む。加えて、システムコンポーネントが休止されるときのシステムコンポーネントの状況値を本デバイスにおいて保存することができ、このため、制限処理が解除された後で、バックグラウンドタスクはシステムコンポーネントの保存された状況値を呼び出すことができる。加えて、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントは、タイマが事前設定閾値(例えば、10秒、30秒など)に達したときに限り停止される。これにより、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを頻繁に停止することを回避することができる。   Optionally, system components include, but are not limited to, timers, sleep locks, and broadcast notifications. In addition, the status value of the system component when the system component is paused can be saved in the device, so that after the restriction process is released, the background task can save the status value of the system component. Can be called. In addition, the system component used by at least one background task corresponding to the first scenario is stopped only when the timer reaches a preset threshold (eg, 10 seconds, 30 seconds, etc.). As a result, frequent stopping of system components used by at least one background task corresponding to the first scenario can be avoided.

任意選択で、図13に示すように、本デバイスは、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるように構成された第2の問い合わせ部101と、
第2の問い合わせ部101が、少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用することを確認した場合に、システムコンポーネントを停止するように構成された第2の停止部102と
をさらに含むことができる。
Optionally, as shown in FIG.
A second query unit 101 configured to query whether at least one background task uses the system component;
The second query unit 101 may further include a second stop unit 102 configured to stop the system component when the at least one background task confirms that the system component is used. .

本実施態様では、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントが停止されるため、デバイスの電力消費および電力損失を低減させることができる。   In this embodiment, system components used by at least one background task corresponding to the first scenario are stopped, so that power consumption and power loss of the device can be reduced.

任意選択で、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含む。
Optionally, processing to reduce system resource usage is:
Freezing at least one background task;
Stop at least one background task,
Including at least one of: limiting system resources used by at least one background task.

このように、第1の処理部94は、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結することもでき、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを停止することもでき、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限することもできる。   As described above, the first processing unit 94 can freeze at least one background task corresponding to the first scenario, or can stop at least one background task corresponding to the first scenario. And can limit system resources used by at least one background task corresponding to the first scenario.

任意選択で、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結することは、バックグラウンドタスクがシステムリソースを呼び出すことを禁止すること、例えば、CPUが、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出すことを禁止すること、とすることができる。具体的には、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクが任意のスケジューリングに関与することを禁止するのに、オペレーティングシステムのタスクスケジューラが使用される。第1のシナリオに対応する少なくとも1つのバックグラウンドタスクがシステムリソースを呼び出すことを禁止されるため、デバイスの電力消費が低減される。   Optionally, freezing at least one background task corresponding to the first scenario prohibits the background task from invoking system resources, e.g., the CPU at least corresponds to the first scenario. It can be prohibited to call one background task. Specifically, the operating system's task scheduler is used to prohibit at least one background task corresponding to the first scenario from participating in any scheduling. Since at least one background task corresponding to the first scenario is prohibited from calling system resources, the power consumption of the device is reduced.

任意選択で、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限することは、CPUがその時間以内に第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出す時間を制限すること、とすることができる。例えば、CPUがCPU呼び出しの時間値によって指示される時間内に第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出すことができるように、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのために時間値が設定される。加えて、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限することはさらに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによるシステムリソースの使用がシステムリソースを使用するのを制限すること、とすることもできる。例えば、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを制限すること、または、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによるメモリ空間の使用を制限すること。加えて、このことはさらに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対応する異なるシナリオに応じて異なる制限措置を使用すること、とすることもできる。前述のステップでは第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによるシステムリソースの使用が制限されるため、デバイスの電力消費が低減される。   Optionally, limiting the system resources used by at least one background task corresponding to the first scenario causes the CPU to call at least one background task corresponding to the first scenario within that time Limiting the time. For example, at least one background task corresponding to the first scenario so that the CPU can call at least one background task corresponding to the first scenario within the time indicated by the time value of the CPU call A time value is set for In addition, limiting the system resources used by at least one background task corresponding to the first scenario is further limited to using system resources by the at least one background task corresponding to the first scenario. Can also be used. For example, restricting at least one background task corresponding to the first scenario, or restricting use of memory space by at least one background task corresponding to the first scenario. In addition, this can also be to use different restriction measures depending on different scenarios corresponding to at least one background task corresponding to the first scenario. The aforementioned steps reduce device power consumption because the use of system resources by at least one background task corresponding to the first scenario is limited.

任意選択で、温度が事前設定温度閾値に達したときに、決定部91は、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するようにさらに構成することもできる。   Optionally, when the temperature reaches a preset temperature threshold, the determining unit 91 may be further configured to determine a first scenario corresponding to the foreground task according to the foreground task.

温度は、デバイスの温度とすることができ、デバイスの温度は具体的には、デバイスのCPUの温度またはデバイスのモデムの温度を指しうる。   The temperature may be the temperature of the device, and the device temperature may specifically refer to the temperature of the device CPU or the temperature of the device modem.

本実施態様では、デバイスの温度が事前設定温度閾値に達したときに限り、バックグラウンドタスクに対して制限処理が行われることを実現することができる。   In this embodiment, it is possible to realize that the limit process is performed on the background task only when the temperature of the device reaches the preset temperature threshold.

任意選択で、デバイスは、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を解除するようにさらに構成することもできる。具体的には、第1のシナリオが第1のリストにないときに、制限処理を受けているバックグラウンドタスクについて、制限処理が解除される。   Optionally, the device may be further configured to release the restriction process for at least one background task corresponding to the first scenario. Specifically, when the first scenario is not in the first list, the restriction process is canceled for the background task that has undergone the restriction process.

任意選択で、本デバイスは具体的には、タブレットコンピュータ、携帯電話、電子リーダ、リモコン、PC、ノートブックコンピュータ、車内デバイス、ウェブテレビ、ウェアラブルデバイス、またはネットワーク機能を有する他のインテリジェントデバイスといった、マルチタスクシステムを有する任意のデバイスとすることができる。   Optionally, the device is specifically a multi-purpose device such as a tablet computer, mobile phone, electronic reader, remote control, PC, notebook computer, in-car device, web TV, wearable device, or other intelligent device with network capabilities. It can be any device with a task system.

前述の技術的解決策においては、複数の任意選択の実施態様が第1の実施形態に基づいて実現され、これらの実施態様のすべてがデバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, a plurality of optional implementations are realized based on the first embodiment, and all of these implementations can reduce the power consumption and power loss of the device.

図14を参照すると、図14は、本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。図14に示すように、本タスク管理デバイスは、第1の決定部141と、第2の決定部142と、第1の探索部143と、第1の処理部144とを含む。   Referring to FIG. 14, FIG. 14 is a schematic diagram of another task management device structure according to an embodiment of the present invention. As shown in FIG. 14, the task management device includes a first determination unit 141, a second determination unit 142, a first search unit 143, and a first processing unit 144.

第1の決定部141は、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定するように構成されている。   The first determination unit 141 is configured to determine a first scenario corresponding to the foreground task according to the foreground task.

任意選択で、第1の決定部141は具体的には、現在のタスクが切り換えられるときに、現在のタスクに従って対応する第1のシナリオを決定することもできる。例えば、現在のタスク、音楽タスクが実行されているときに、このタスクは、音楽シナリオまたはダウンロードシナリオに入る。このように、フォアグラウンドタスクに対応する第1のシナリオは、音楽シナリオ、ダウンロードシナリオなどとすることができることを決定することができる。加えて、フォアグラウンドタスクは1つまたは複数の複数のフォアグラウンドタスクとすることもできる。複数のフォアグラウンドタスクの場合には、第1の決定部141は、複数のフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するように構成することができる。すなわち、第1の決定部141は、少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するように構成することができる。   Optionally, the first determination unit 141 can specifically determine the corresponding first scenario according to the current task when the current task is switched. For example, when a current task, a music task is being executed, this task enters a music scenario or a download scenario. Thus, it can be determined that the first scenario corresponding to the foreground task can be a music scenario, a download scenario, or the like. In addition, the foreground task can be one or more foreground tasks. In the case of a plurality of foreground tasks, the first determination unit 141 can be configured to determine a first scenario corresponding to each foreground task according to the plurality of foreground tasks. That is, the first determination unit 141 can be configured to determine a first scenario corresponding to each foreground task according to at least one foreground task.

第2の決定部142は、フォアグラウンドタスクに対応し、第1の決定部141によって決定される第1のシナリオ以外の第2のシナリオを決定するように構成されており、第2のシナリオはタスク制限が許可されるシナリオであり、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応する。   The second determination unit 142 corresponds to the foreground task, and is configured to determine a second scenario other than the first scenario determined by the first determination unit 141. The second scenario is a task. A scenario where restrictions are allowed, and the second scenario corresponds to at least one background task.

任意選択で、第2のシナリオは1つまたは複数のシナリオをいうこともできる。加えて、第2のシナリオは、第1のシナリオ以外のすべてのシナリオをいうこともでき、第1のシナリオ以外の1つまたは複数のシナリオをいうこともでき、これは本実施形態では限定されない。加えて、第2のシナリオは具体的には、所定のシナリオ、例えば、ユーザによって入力された操作を受け取るために設定されるシナリオとすることもできる。このように、タスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。   Optionally, the second scenario can also refer to one or more scenarios. In addition, the second scenario can also refer to all scenarios other than the first scenario, and can also refer to one or a plurality of scenarios other than the first scenario, which is not limited in the present embodiment. . In addition, the second scenario may specifically be a predetermined scenario, for example, a scenario set to receive an operation input by the user. As described above, it is possible to realize a scenario in which task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits.

任意選択で、第2のシナリオは、第1のシナリオ以外の、第2のリストにないシナリオとすることもでき、第2のリストは、タスク制限が禁止されるシナリオを含むことができる。   Optionally, the second scenario may be a scenario that is not in the second list other than the first scenario, and the second list may include scenarios where task restrictions are prohibited.

第1の探索部143は、第2の決定部142によって決定される第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するように構成されている。   The first search unit 143 is configured to search for at least one background task corresponding to the second scenario determined by the second determination unit 142.

任意選択で、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスク内の少なくとも1つのバックグラウンドタスクをいうこともでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスクをいうこともできる。加えて、第1の探索部143は具体的には、第2のシナリオに対応するバックグラウンドタスク内の、制限処理を受けた後で他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならない少なくとも2つのバックグラウンドタスクを探索することもでき、第2のシナリオに対応するバックグラウンドタスク内の少なくとも1つの所定のバックグラウンドタスクを探索することもでき、第2のシナリオに対応するバックグラウンドタスク内の、そのUIDが一般ユーザに対応する少なくとも1つのバックグラウンドタスクを探索することもできる。例えば、第1の探索部143は、第2のシナリオに対応する各バックグラウンドタスクのUIDを探索し、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクとして、そのUIDが一般ユーザに対応するバックグラウンドタスクを探索するように構成することができる。   Optionally, at least one background task corresponding to the second scenario can also refer to at least one background task in all background tasks corresponding to the second scenario, The corresponding at least one background task can also refer to all background tasks corresponding to the second scenario. In addition, the first search unit 143 specifically does not affect other tasks or the operating system in the background task corresponding to the second scenario after receiving the restriction process. You can also search for one background task, you can also search for at least one predefined background task in the background task that corresponds to the second scenario, and in the background task that corresponds to the second scenario You can also search for at least one background task whose UID corresponds to a regular user. For example, the first search unit 143 searches for the UID of each background task corresponding to the second scenario, and the UID corresponds to the general user as at least one background task corresponding to the second scenario. It can be configured to search for background tasks.

前述の動作は、第2のシナリオに対応し、第1の探索部143によって探索される少なくとも1つのバックグラウンドタスクが、そのUIDが一般ユーザに対応するバックグラウンドタスクであることを実現することができる。   The above-described operation corresponds to the second scenario, and at least one background task searched by the first search unit 143 can realize that the UID is a background task corresponding to a general user. it can.

任意選択で、デバイスは、第2のシナリオに対応する少なくとも1つのバックグラウンドタスク内の、そのUIDがシステムユーザに対応するバックグラウンドタスクを無視するように構成することもできる。すなわち、そのUIDがシステムユーザに対応するバックグラウンドタスクに対しては処理が行われない。   Optionally, the device may be configured to ignore background tasks whose UID corresponds to the system user in at least one background task corresponding to the second scenario. That is, no processing is performed for the background task whose UID corresponds to the system user.

任意選択で、第1の探索部143は、第2のシナリオに対応するバックグラウンドタスク内の、そのシステムリソース使用が事前設定閾値に達する少なくとも1つのバックグラウンドタスクを探索するように構成することもできる。   Optionally, the first search unit 143 may be configured to search for at least one background task in the background task corresponding to the second scenario whose system resource usage reaches a preset threshold. it can.

第1の処理部144は、第2のシナリオに対応し、第1の探索部143によって探索される少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成されており、制限処理はシステムリソース使用を低減させるための処理をいう。   The first processing unit 144 corresponds to the second scenario, and is configured to perform a limiting process on at least one background task searched by the first searching unit 143. The limiting process uses system resources. This is a process for reducing.

任意選択で、図15に示すように、本デバイスは、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するように構成された第2の探索部145と、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのユーザ識別子が一般ユーザに対応する場合に、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成された第2の処理部146と
をさらに含むこともできる。
Optionally, as shown in Figure 15, the device
A second search unit 145 configured to search for at least one background task corresponding to the first scenario;
A second configured to perform a restriction process on at least one background task corresponding to the first scenario when a user identifier of at least one background task corresponding to the first scenario corresponds to a general user; The processing unit 146 may be further included.

任意選択で、図16に示すように、本デバイスは、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始するように構成されたタイミング部147と、
タイマが事前設定閾値を超えたときに、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するように構成された第1の停止部148と
をさらに含むこともできる。
Optionally, as shown in FIG.
A timing unit 147 configured to start a timer for at least one background task corresponding to the second scenario;
A first stop 148 configured to stop a system component used by at least one background task corresponding to the second scenario when the timer exceeds a preset threshold. it can.

任意選択で、システムコンポーネントは、それだけに限らないが、タイマ、スリープロック、およびブロードキャスト通知を含む。同時に、前述のステップでは、システムコンポーネントが休止されるときのシステムコンポーネントの状況値を保存することができ、このため、制限処理が解除された後で、バックグラウンドタスクはシステムコンポーネントの保存された状況値を呼び出すことができる。加えて、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントは、タイマが事前設定閾値(例えば、10秒、30秒など)に達したときに限り停止される。これにより、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを頻繁に停止することを回避することができる。   Optionally, system components include, but are not limited to, timers, sleep locks, and broadcast notifications. At the same time, the above steps can save the status value of the system component when the system component is paused, so that after the restriction process is released, the background task will save the saved status of the system component A value can be called. In addition, the system component used by at least one background task corresponding to the second scenario is stopped only when the timer reaches a preset threshold (eg, 10 seconds, 30 seconds, etc.). Thereby, frequent stopping of the system components used by at least one background task corresponding to the second scenario can be avoided.

任意選択で、図17に示すように、本デバイスは、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるように構成された問い合わせ部149と、
問い合わせ部が、少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用することを確認した場合に、システムコンポーネントを停止するように構成された第2の停止部150と
をさらに含むこともできる。
Optionally, as shown in FIG.
An inquiry unit 149 configured to inquire whether at least one background task uses the system component;
The interrogator may further include a second stop 150 configured to stop the system component when the at least one background task confirms that the system component is used.

本実施態様では、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントが停止されるため、デバイスの電力消費および電力損失を低減させることができる。   In this embodiment, system components used by at least one background task corresponding to the second scenario are stopped, so that power consumption and power loss of the device can be reduced.

任意選択で、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含むこともできる。
Optionally, processing to reduce system resource usage is:
Freezing at least one background task;
Stop at least one background task,
It can also include at least one of ways to limit system resources used by at least one background task.

この場合、第1の処理部144は、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結することもでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを停止することもでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限することもできる。   In this case, the first processing unit 144 can freeze at least one background task corresponding to the second scenario, or can stop at least one background task corresponding to the second scenario. The system resources used by at least one background task corresponding to the second scenario can also be limited.

任意選択で、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結することは、バックグラウンドタスクがシステムリソースを呼び出すことを禁止すること、例えば、CPUが、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出すことを禁止すること、とすることができる。具体的には、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクが任意のスケジューリングに関与することを禁止するのに、オペレーティングシステムのタスクスケジューラが使用される。第2のシナリオに対応する少なくとも1つのバックグラウンドタスクがシステムリソースを呼び出すことを禁止されるため、デバイスの電力消費が低減される。   Optionally, freezing at least one background task corresponding to the second scenario prohibits the background task from calling system resources, e.g., the CPU at least corresponds to the first scenario. It can be prohibited to call one background task. Specifically, the operating system's task scheduler is used to prohibit at least one background task corresponding to the first scenario from participating in any scheduling. Since at least one background task corresponding to the second scenario is prohibited from calling system resources, the power consumption of the device is reduced.

任意選択で、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限することは、CPUがその時間以内に第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出す時間を制限すること、とすることもできる。例えば、CPUがCPU呼び出しの時間値によって指示される時間内に第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを呼び出すことができるように、時間値が第2のシナリオに対応する少なくとも1つのバックグラウンドタスクのために設定される。加えて、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限することはさらに、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによるシステムリソースの使用を制限すること、とすることもできる。例えば、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによるネットワーク帯域幅の使用を制限すること、または、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによるメモリ空間の使用を制限すること。加えて、このことはさらに、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対応する異なるシナリオに応じて異なる制限措置を使用すること、とすることもできる。前述のステップでは第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによるシステムリソースの使用が制限されるため、デバイスの電力消費が低減される。   Optionally, limiting the system resources used by at least one background task corresponding to the second scenario causes the CPU to call at least one background task corresponding to the second scenario within that time You can also limit your time. For example, at least one time value corresponding to the second scenario so that the CPU can call at least one background task corresponding to the second scenario within the time indicated by the time value of the CPU call Set for background tasks. In addition, limiting the system resources used by at least one background task corresponding to the second scenario further limits the use of system resources by at least one background task corresponding to the second scenario It can also be said. For example, limiting the use of network bandwidth by at least one background task corresponding to the second scenario, or limiting the use of memory space by at least one background task corresponding to the second scenario . In addition, this can also be to use different restriction measures depending on different scenarios corresponding to at least one background task corresponding to the second scenario. The aforementioned steps limit the use of system resources by at least one background task corresponding to the second scenario, thus reducing the power consumption of the device.

任意選択で、本デバイスは具体的には、タブレットコンピュータ、携帯電話、電子リーダ、リモコン、PC、ノートブックコンピュータ、車内デバイス、ウェブテレビ、ウェアラブルデバイス、またはネットワーク機能を有する他のインテリジェントデバイスといった、マルチタスクシステムを有する任意のデバイスとすることができる。   Optionally, the device is specifically a multi-purpose device such as a tablet computer, mobile phone, electronic reader, remote control, PC, notebook computer, in-car device, web TV, wearable device, or other intelligent device with network capabilities. It can be any device with a task system.

前述の技術的解決策においては、フォアグラウンドタスクに対応する第1のシナリオがフォアグラウンドタスクに従って決定され、フォアグラウンドタスクに対応する第1のシナリオ以外の第2のシナリオが決定され、第2のシナリオはタスク制限が許可されるシナリオであり、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクが探索され、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が行われ、制限処理はシステムリソース使用を低減させるための処理をいう。したがって、デバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, the first scenario corresponding to the foreground task is determined according to the foreground task, the second scenario other than the first scenario corresponding to the foreground task is determined, and the second scenario is a task. A scenario where restrictions are allowed, the second scenario corresponds to at least one background task, and at least one background task corresponding to the second scenario is searched and at least one corresponding to the second scenario Restriction processing is performed for one background task, and the restriction processing is processing for reducing the use of system resources. Therefore, power consumption and power loss of the device can be reduced.

図18を参照すると、図18は、本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。図18に示すように、本タスク管理デバイスは、メモリ181と、メモリ181に接続されたプロセッサ182とを含み、メモリ181は、プログラムコードを記憶するように構成されており、プロセッサ182は、
フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定する動作と、
フォアグラウンドタスクに対応する第1のシナリオが第1のリストにあるときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する動作であって、第1のリストはタスク制限が許可されるシナリオを含む、少なくとも1つのバックグラウンドタスクを探索する動作と、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作であって、制限処理はシステムリソース使用を低減させるための処理をいう、制限処理を行う動作と
を行うためにメモリ181に記憶されたプログラムを呼び出すように構成されている。
Referring to FIG. 18, FIG. 18 is a schematic diagram of another task management device structure according to an embodiment of the present invention. As shown in FIG. 18, the task management device includes a memory 181 and a processor 182 connected to the memory 181, and the memory 181 is configured to store a program code.
According to the foreground task, determining the first scenario corresponding to the foreground task, and
When the first scenario corresponding to the foreground task is in the first list, the operation is to search for at least one background task corresponding to the first scenario, and the first list is allowed to be restricted. Searching for at least one background task, including
An operation for performing a restriction process on at least one background task corresponding to the first scenario, and the restriction process is a process for reducing the use of system resources. Is configured to call a program stored in the memory.

任意選択で、プロセッサ182は具体的には、現在のタスクが切り換えられるときに、現在のタスクに従って対応する第1のシナリオを決定することもできる。例えば、現在のタスク、音楽タスクが実行されているときに、このタスクは、音楽シナリオまたはダウンロードシナリオに入る。このように、フォアグラウンドタスクに対応する第1のシナリオは、音楽シナリオ、ダウンロードシナリオなどとすることができることを決定することができる。加えて、フォアグラウンドタスクは1つまたは複数の複数のフォアグラウンドタスクとすることもできる。複数のフォアグラウンドタスクの場合には、プロセッサ182は、複数のフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するように構成することができる。すなわち、プロセッサ182は、少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定することができる。   Optionally, the processor 182 may specifically determine a corresponding first scenario according to the current task when the current task is switched. For example, when a current task, a music task is being executed, this task enters a music scenario or a download scenario. Thus, it can be determined that the first scenario corresponding to the foreground task can be a music scenario, a download scenario, or the like. In addition, the foreground task can be one or more foreground tasks. In the case of multiple foreground tasks, the processor 182 may be configured to determine a first scenario corresponding to each foreground task according to the multiple foreground tasks. That is, the processor 182 can determine a first scenario corresponding to each foreground task according to at least one foreground task.

任意選択で、タスク制限が許可され、第1のリストに含まれるシナリオは、ユーザによって入力される操作を受け取るために設定されるシナリオとすることもできる。このように、タスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。例えば、ユーザはデバイスの電力消費を低減させたいと思い、ユーザは第1のリストにおいてタスク制限が許可される複数のシナリオを設定することができ、例えば、タスク制限が許可されるシナリオとしてブラウザシナリオ、ゲームシナリオ、ナビゲーションシナリオなどを設定する。このように、現在のタスクに対応する第1のシナリオがブラウザシナリオ、ゲームシナリオ、またはナビゲーションシナリオであるときに、プロセッサ182は、デバイスの電力消費を低減させるために探索動作を行うことができる。   Optionally, the scenario where task restrictions are allowed and included in the first list may be a scenario configured to receive an operation entered by the user. As described above, it is possible to realize a scenario in which task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits. For example, the user wants to reduce the power consumption of the device, and the user can set multiple scenarios where task restrictions are allowed in the first list, e.g. browser scenarios as scenarios where task restrictions are allowed Set game scenario, navigation scenario, etc. Thus, when the first scenario corresponding to the current task is a browser scenario, a game scenario, or a navigation scenario, the processor 182 can perform a search operation to reduce the power consumption of the device.

任意選択で、タスク制限が許可され、第1のリストに含まれるシナリオは、デバイスの性能に従って自動的に設定することもできる。例えば、デバイスが優れた性能を有するとき、例えば、デバイスのCPUが高速で走っており、デバイスが大容量のメモリを有し、またはデバイスが十分な電池を有するときには、第1のリストにおいてタスク制限が許可されるごく少数のシナリオが設定されうる。例えば、デバイスが不十分な性能を有するとき、例えば、デバイスのCPUが低速で走っており、デバイスが小容量のメモリを有し、またはデバイスが十分な電池を有しないときには、第1のリストはタスク制限が許可される多数のシナリオを有するため、第1のリストにおいてタスク制限が許可される多数のシナリオが設定されうる。   Optionally, task restrictions are allowed and the scenarios included in the first list can also be set automatically according to device performance. For example, when a device has excellent performance, for example, when the device's CPU is running at high speed, the device has a large amount of memory, or the device has enough battery, task limits in the first list Only a few scenarios can be set up that are allowed. For example, when a device has insufficient performance, for example, when the device's CPU is running at low speed, the device has a small amount of memory, or the device does not have enough batteries, Since there are multiple scenarios where task limits are allowed, multiple scenarios where task limits are allowed in the first list may be set.

任意選択で、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第1のシナリオに対応するすべてのバックグラウンドタスク内の少なくとも1つのバックグラウンドタスクをいうこともでき、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第1のシナリオに対応するすべてのバックグラウンドタスクをいうこともできる。本実施形態はこれに対して制限を設定しない。   Optionally, at least one background task corresponding to the first scenario can also refer to at least one background task in all background tasks corresponding to the first scenario, The corresponding at least one background task can also refer to all background tasks corresponding to the first scenario. In the present embodiment, no limit is set for this.

任意選択で、制限処理は、現在のシステムリソース使用を低減させるのに使用される処理とすることもできる。   Optionally, the restriction process may be a process used to reduce current system resource usage.

別の実施形態において、プロセッサ182は、
フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定する動作と、
第1のシナリオが第1のリストにあるかどうか判定し、「はい」の場合、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する動作と、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作であって、制限処理はシステムリソース使用を低減させるための処理をいう、制限処理を行う動作と、
判定の結果が「いいえ」であるときに、プロセスを終了する動作と
を行うようにさらに構成することができる。
In another embodiment, the processor 182
According to the foreground task, determining the first scenario corresponding to the foreground task, and
Determining whether the first scenario is in the first list and, if yes, searching for at least one background task corresponding to the first scenario; and
An operation for performing a restriction process on at least one background task corresponding to the first scenario, the restriction process being a process for reducing the use of system resources, an operation for performing a restriction process,
It can be further configured to perform an operation of terminating the process when the result of the determination is “no”.

任意選択で、プロセッサ182は具体的には、第1のシナリオに対応するバックグラウンドタスク内の、制限処理を受けた後で他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならない少なくとも1つのバックグラウンドタスクを探索することもでき、第1のシナリオに対応するバックグラウンドタスク内の少なくとも1つの所定のバックグラウンドタスクを探索することもでき、第1のシナリオに対応するバックグラウンドタスク内の、そのユーザ識別子が一般ユーザに対応する少なくとも1つのバックグラウンドタスクを探索することもできる。例えば、プロセッサ182によって行われる、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する動作は、
第1のシナリオに対応する各バックグラウンドタスクのユーザ識別子を探索し、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクとして、そのUIDが一般ユーザに対応するバックグラウンドタスクを探索する動作
を含むことができる。
Optionally, processor 182 specifically specifies at least one background within the background task corresponding to the first scenario that will not affect other tasks or the operating system after undergoing restriction processing. You can also search for tasks, search for at least one predefined background task in the background task corresponding to the first scenario, and the user in the background task corresponding to the first scenario It is also possible to search for at least one background task whose identifier corresponds to a general user. For example, the operation performed by the processor 182 to search for at least one background task corresponding to the first scenario is:
Search for the user identifier of each background task corresponding to the first scenario, and at least one background task corresponding to the first scenario includes the operation of searching for the background task whose UID corresponds to the general user be able to.

すなわち、この動作は、第1のシナリオに対応し、プロセッサ182によって探索される少なくとも1つのバックグラウンドタスクが、そのUIDが一般ユーザに対応するバックグラウンドタスクであることを実現するのに使用される。UIDは、各タスクの固有の識別子であり、タスクを一意に識別するのに使用される。加えて、UIDは、システムユーザおよび一般ユーザにも対応しうる。バックグラウンドタスクのUIDがシステムユーザに対応するとき、これは、バックグラウンドタスクがオペレーティングシステムに含まれるバックグラウンドタスクであることを指示する。バックグラウンドタスクのUIDが一般ユーザに対応するとき、これは、バックグラウンドタスクがオペレーティングシステムに含まれるバックグラウンドタスクではないことを指示する。   That is, this action corresponds to the first scenario and is used to realize that at least one background task searched by the processor 182 is a background task whose UID corresponds to a general user. . The UID is a unique identifier of each task and is used to uniquely identify the task. In addition, the UID can correspond to system users and general users. When the background task UID corresponds to a system user, this indicates that the background task is a background task included in the operating system. When the background task UID corresponds to a regular user, this indicates that the background task is not a background task included in the operating system.

任意選択で、プロセッサ182は、第1のシナリオに対応する少なくとも1つのバックグラウンドタスク内の、そのUIDがシステムユーザに対応するバックグラウンドタスクを無視するように構成することもできる。すなわち、そのUIDがシステムユーザに対応するバックグラウンドタスクに対しては処理が行われない。   Optionally, the processor 182 may be configured to ignore background tasks whose UID corresponds to the system user in at least one background task corresponding to the first scenario. That is, no processing is performed for the background task whose UID corresponds to the system user.

任意選択で、プロセッサ182は、第1のシナリオに対応するバックグラウンドタスク内の、そのシステムリソース使用が事前設定閾値に達する少なくとも1つのバックグラウンドタスクを探索することもできる。例えば、第1のシナリオに対応するバックグラウンドタスク内の、そのCPUリソース使用がCPUリソースの10%に達する少なくとも1つのバックグラウンドタスクが探索され、または、第1のシナリオに対応するバックグラウンドタスク内の、そのスリープロック保持期間が10分間に達する少なくとも1つのバックグラウンドタスクが探索され、または、第1のシナリオに対応するバックグラウンドタスク内の、その平均データダウンロード速度が10M/分に達する少なくとも1つのバックグラウンドタスクが探索される。   Optionally, the processor 182 may search for at least one background task in the background task corresponding to the first scenario whose system resource usage reaches a preset threshold. For example, at least one background task in the background task corresponding to the first scenario whose CPU resource usage reaches 10% of the CPU resource is searched or in the background task corresponding to the first scenario At least one background task whose sleep lock retention period reaches 10 minutes is searched, or at least one of its average data download speed within the background task corresponding to the first scenario reaches 10M / min Two background tasks are searched.

任意選択で、プロセッサ182は、
フォアグラウンドタスクに対応する第1のシナリオ以外の第2のシナリオを探索する動作であって、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、第1のリストは第2のシナリオを含む、第2のシナリオを探索する動作と、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作と
を行うようにさらに構成することもできる。
Optionally, the processor 182
An operation to search for a second scenario other than the first scenario corresponding to the foreground task, wherein the second scenario corresponds to at least one background task, and the first list includes the second scenario; An action to search for the second scenario;
It is possible to further perform an operation of performing a restriction process on at least one background task corresponding to the second scenario.

任意選択で、第2のシナリオは1つまたは複数のシナリオをいうこともできる。加えて、第2のシナリオは、第1のシナリオ以外のすべてのシナリオをいうこともでき、第1のシナリオ以外の1つまたは複数のシナリオをいうこともでき、これは本実施形態では限定されない。   Optionally, the second scenario can also refer to one or more scenarios. In addition, the second scenario can also refer to all scenarios other than the first scenario, and can also refer to one or a plurality of scenarios other than the first scenario, which is not limited in the present embodiment. .

加えて、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスク内の少なくとも1つのバックグラウンドタスクをいうこともでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスクをいうこともできる。本実施形態はこれに対して制限を設定しない。加えて、第2のシナリオは具体的には、所定のシナリオ、例えば、ユーザによって入力された操作を受け取るために設定されるシナリオとすることもできる。このように、タスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。加えて、プロセッサ182は具体的には、第2のシナリオに対応するバックグラウンドタスク内の、制限処理を受けた後で他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならない少なくとも1つのバックグラウンドタスクを探索することもでき、第2のシナリオに対応するバックグラウンドタスク内の少なくとも1つの所定のバックグラウンドタスクを探索することもでき、第2のシナリオに対応するバックグラウンドタスク内の、そのユーザ識別子が一般ユーザに対応する少なくとも1つのバックグラウンドタスクを探索することもできる。   In addition, at least one background task corresponding to the second scenario can also refer to at least one background task in all background tasks corresponding to the second scenario, corresponding to the second scenario The at least one background task can also refer to all background tasks corresponding to the second scenario. In the present embodiment, no limit is set for this. In addition, the second scenario may specifically be a predetermined scenario, for example, a scenario set to receive an operation input by the user. As described above, it is possible to realize a scenario in which task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits. In addition, the processor 182 specifically has at least one background task in the background task corresponding to the second scenario that will not affect other tasks or the operating system after undergoing restriction processing. And at least one predetermined background task in the background task corresponding to the second scenario, and its user identifier in the background task corresponding to the second scenario Can also search for at least one background task corresponding to a general user.

任意選択で、第2のシナリオは、第1のシナリオ以外の、第2のリストにないシナリオとすることもでき、第2のリストは、タスク制限が禁止されるシナリオを含むことができる。加えて、第2のリストをブラックリストと呼ぶこともできる。タスク制限が禁止されるシナリオは、ユーザによって入力される操作を受け取るために設定されるシナリオとすることができる。このように、タスク制限が禁止されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。例えば、ユーザは、第2のリストにおいて、タスク制限が禁止されるシナリオとしてユーザの注意を必要とするシナリオ、例えば、ショート・メッセージ・サービス・メッセージ・シナリオ、電話シナリオ、ダウンロードシナリオを設定することができる。あるいは、タスク制限が禁止されるシナリオは、デバイスの性能に従って自動的に設定することもできる。例えば、デバイスが優れた性能を有するとき、例えば、デバイスのCPUが高速で走っており、デバイスが大容量のメモリを有し、またはデバイスが十分な電池を有するときには、第2のリストにおいてタスク制限が禁止される多数のシナリオが設定されうる。例えば、デバイスが不十分な性能を有するとき、例えば、デバイスのCPUが低速で走っており、デバイスが小容量のメモリを有し、またはデバイスが十分な電池を有しないときには、第2のリストにおいてタスク制限が禁止されるごく少数のシナリオが設定されうる。   Optionally, the second scenario may be a scenario that is not in the second list other than the first scenario, and the second list may include scenarios where task restrictions are prohibited. In addition, the second list can be called a black list. The scenario in which task restriction is prohibited can be a scenario set to receive an operation input by a user. As described above, it is possible to realize a scenario in which task restriction is prohibited, which is set according to an operation input by the user and meets the user's requirements or habits. For example, in the second list, the user may set a scenario that requires the user's attention as a scenario in which task restriction is prohibited, such as a short message service message scenario, a telephone scenario, and a download scenario. it can. Alternatively, a scenario in which task restriction is prohibited can be automatically set according to device performance. For example, when the device has excellent performance, for example, when the device's CPU is running at high speed, the device has a large amount of memory, or the device has enough battery, task limits in the second list There are a number of scenarios that can be prohibited. For example, when the device has insufficient performance, for example, when the device's CPU is running at low speed, the device has a small amount of memory, or the device does not have enough batteries, in the second list There can be very few scenarios where task restrictions are prohibited.

任意選択で、プロセッサ182が第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作の前に、プロセッサ182は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのUIDを問い合わせる動作と、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのUIDがシステムユーザに対応する場合に、その少なくとも1つのバックグラウンドタスクを無視する動作、または
少なくとも1つのバックグラウンドタスクのUIDが一般ユーザに対応する場合に、少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作と
を行うようにさらに構成することもできる。すなわち、ステップ204は、そのUIDが一般ユーザに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う。
Optionally, prior to the operation in which processor 182 performs a restriction process on at least one background task corresponding to the first scenario, processor 182
Querying the UID of at least one background task corresponding to the first scenario, and
Behavior to ignore at least one background task if at least one background task UID corresponding to the first scenario corresponds to a system user, or at least one background task UID corresponds to a general user In this case, it can be further configured to perform an operation of performing restriction processing on at least one background task. In other words, step 204 performs a restriction process on at least one background task whose UID corresponds to a general user.

本実施態様では、そのUIDが一般ユーザに対応するバックグラウンドタスクはオペレーティングシステムのタスクではないため、バックグラウンドタスクに対して一般ユーザ制限処理が行われた後で他のタスクが影響を受けない。したがって、ステップ204で、そのUIDが一般ユーザに対応するバックグラウンドタスクに対してのみ制限処理が行われ、これにより、他のタスクに影響を及ぼさずにデバイスの電力消費および電力損失を低減させることができる。   In this embodiment, since the background task whose UID corresponds to the general user is not an operating system task, other tasks are not affected after the general user restriction process is performed on the background task. Therefore, in step 204, the restriction process is performed only for the background task whose UID corresponds to the general user, thereby reducing the power consumption and power loss of the device without affecting other tasks. Can do.

任意選択で、プロセッサ182が第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作の前に、プロセッサ182は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始する動作と、
タイマが事前設定閾値を超えたときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止する動作と
を行うようにさらに構成することもできる。
Optionally, prior to the operation in which processor 182 performs a restriction process on at least one background task corresponding to the first scenario, processor 182
An action to start a timer for at least one background task corresponding to the first scenario;
It may be further configured to perform an operation to stop a system component used by at least one background task corresponding to the first scenario when the timer exceeds a preset threshold.

任意選択で、システムコンポーネントは、それだけに限らないが、タイマ、スリープロック、およびブロードキャスト通知を含む。同時に、前述のステップでは、システムコンポーネントが休止されるときのシステムコンポーネントの状況値を保存することができ、このため、制限処理が解除された後で、バックグラウンドタスクはシステムコンポーネントの保存された状況値を呼び出すことができる。加えて、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントは、タイマが事前設定閾値(例えば、10秒、30秒など)に達したときに限り停止される。これにより、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを頻繁に停止することを回避することができる。   Optionally, system components include, but are not limited to, timers, sleep locks, and broadcast notifications. At the same time, the above steps can save the status value of the system component when the system component is paused, so that after the restriction process is released, the background task will save the saved status of the system component A value can be called. In addition, the system component used by at least one background task corresponding to the first scenario is stopped only when the timer reaches a preset threshold (eg, 10 seconds, 30 seconds, etc.). As a result, frequent stopping of system components used by at least one background task corresponding to the first scenario can be avoided.

任意選択で、プロセッサ182が第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作の前に、プロセッサ182は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせる動作と、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用する場合に、第1のシナリオを停止する動作と
を行うようにさらに構成することもできる。
Optionally, prior to the operation in which processor 182 performs a restriction process on at least one background task corresponding to the first scenario, processor 182
An action to query whether at least one background task corresponding to the first scenario uses a system component;
It may be further configured to perform an action to stop the first scenario when at least one background task corresponding to the first scenario uses the system component.

本実施態様では、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントが停止されるため、デバイスの電力消費および電力損失を低減させることができる。   In this embodiment, system components used by at least one background task corresponding to the first scenario are stopped, so that power consumption and power loss of the device can be reduced.

任意選択で、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含むこともできる。
Optionally, processing to reduce system resource usage is:
Freezing at least one background task;
Stop at least one background task,
It can also include at least one of ways to limit system resources used by at least one background task.

この場合、プロセッサ182は、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結することもでき、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを停止することもでき、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限することもできる。   In this case, the processor 182 can also freeze at least one background task corresponding to the first scenario, can stop at least one background task corresponding to the first scenario, It is also possible to limit the system resources used by at least one background task corresponding to the scenario.

任意選択で、プロセッサ182によって行われる、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定する動作は、
温度が事前設定温度閾値に達したときに、フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定する動作
を含むこともできる。
Optionally, the operation performed by processor 182 to determine a first scenario corresponding to the foreground task according to the foreground task is:
When the temperature reaches a preset temperature threshold, an operation may be included that determines a first scenario corresponding to the foreground task according to the foreground task.

温度は、デバイスの温度とすることができ、デバイスの温度は具体的には、デバイスのCPUの温度またはデバイスのモデムの温度を指しうる。   The temperature may be the temperature of the device, and the device temperature may specifically refer to the temperature of the device CPU or the temperature of the device modem.

本実施態様では、デバイスの温度が事前設定温度閾値に達したときに限り、バックグラウンドタスクに対して制限処理が行われることを実現することができる。   In this embodiment, it is possible to realize that the limit process is performed on the background task only when the temperature of the device reaches the preset temperature threshold.

任意選択で、プロセッサ182は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を解除する動作
を行うようにさらに構成することもできる。具体的には、第1のシナリオが第1のリストにないときに、制限処理を受けているバックグラウンドタスクについて、制限処理が解除される。
Optionally, the processor 182
It can be further configured to perform an operation of releasing the restriction process for at least one background task corresponding to the first scenario. Specifically, when the first scenario is not in the first list, the restriction process is canceled for the background task that has undergone the restriction process.

任意選択で、本方法は具体的には、タブレットコンピュータ、携帯電話、電子リーダ、リモコン、PC、ノートブックコンピュータ、車内デバイス、ウェブテレビ、ウェアラブルデバイス、またはネットワーク機能を有する他のインテリジェントデバイスといった、マルチタスクシステムを有する任意のデバイスに適用することができる。   Optionally, the method specifically includes multiple computers such as tablet computers, mobile phones, electronic readers, remote controls, PCs, notebook computers, in-car devices, web TVs, wearable devices, or other intelligent devices with network capabilities. It can be applied to any device having a task system.

前述の技術的解決策においては、フォアグラウンドタスクに対応する第1のシナリオがフォアグラウンドタスクに従って決定され、フォアグラウンドタスクに対応する第1のシナリオが第1のリストにあるときに、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクが探索され、第1のリストはタスク制限が許可されるシナリオを含み、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が行われ、制限処理はシステムリソース使用を低減させるための処理をいう。このようにして、タスク制限が許可されるシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が遂行される。バックグラウンドタスクが常に実行されている先行技術と比べて、本発明の本実施形態は、デバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, the first scenario corresponding to the foreground task is determined according to the foreground task, and the first scenario corresponding to the foreground task is in the first list, it corresponds to the first scenario At least one background task is searched, the first list includes scenarios where task restrictions are allowed, and the restriction process is performed on at least one background task corresponding to the first scenario, and the restriction process Is a process for reducing the use of system resources. In this manner, the restriction process is performed on at least one background task corresponding to a scenario in which task restriction is permitted. Compared to the prior art where background tasks are always executed, this embodiment of the present invention can reduce the power consumption and power loss of the device.

図19を参照すると、図19は、本発明の一実施形態による別のタスク管理デバイスの構造の概略図である。図19に示すように、本タスク管理デバイスは、メモリ191と、メモリ191に接続されたプロセッサ192とを含み、メモリ191は、プログラムコードを記憶するように構成されており、プロセッサ192は、
フォアグラウンドタスクに従って、フォアグラウンドタスクに対応する第1のシナリオを決定する動作と、
フォアグラウンドタスクに対応する第1のシナリオ以外の第2のシナリオを決定する動作であって、第2のシナリオはタスク制限が許可されるシナリオであり、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応する、第2のシナリオを決定する動作と、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する動作と、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作であって、制限処理はシステムリソース使用を低減させるための処理をいう、制限処理を行う動作と
を行うためにメモリ191に記憶されたプログラムを呼び出すように構成されている。
Referring to FIG. 19, FIG. 19 is a schematic diagram of the structure of another task management device according to an embodiment of the present invention. As shown in FIG. 19, the task management device includes a memory 191 and a processor 192 connected to the memory 191. The memory 191 is configured to store a program code.
According to the foreground task, determining the first scenario corresponding to the foreground task, and
An action to determine a second scenario other than the first scenario corresponding to the foreground task, where the second scenario is a scenario in which task restriction is permitted, and the second scenario is at least one background task. An action to determine the corresponding second scenario;
Searching for at least one background task corresponding to the second scenario; and
An operation for performing a restriction process on at least one background task corresponding to the second scenario, and the restriction process is a process for reducing the use of system resources. Is configured to call a program stored in the memory.

任意選択で、プロセッサ192は具体的には、現在のタスクが切り換えられるときに、現在のタスクに従って対応する第1のシナリオを決定することもできる。例えば、現在のタスク、音楽タスクが実行されているときに、このタスクは、音楽シナリオまたはダウンロードシナリオに入る。このように、フォアグラウンドタスクに対応する第1のシナリオは、音楽シナリオ、ダウンロードシナリオなどとすることができることを決定することができる。加えて、フォアグラウンドタスクは1つまたは複数の複数のフォアグラウンドタスクとすることもできる。複数のフォアグラウンドタスクの場合には、プロセッサ192は、複数のフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定するように構成することができる。すなわち、プロセッサ192は、少なくとも1つのフォアグラウンドタスクに従って、各フォアグラウンドタスクに対応する第1のシナリオを決定することができる。   Optionally, the processor 192 may specifically determine the corresponding first scenario according to the current task when the current task is switched. For example, when a current task, a music task is being executed, this task enters a music scenario or a download scenario. Thus, it can be determined that the first scenario corresponding to the foreground task can be a music scenario, a download scenario, or the like. In addition, the foreground task can be one or more foreground tasks. In the case of multiple foreground tasks, the processor 192 may be configured to determine a first scenario corresponding to each foreground task according to the multiple foreground tasks. That is, the processor 192 can determine a first scenario corresponding to each foreground task according to at least one foreground task.

任意選択で、第2のシナリオは1つまたは複数のシナリオをいうこともできる。加えて、第2のシナリオは、第1のシナリオ以外のすべてのシナリオをいうこともでき、第1のシナリオ以外の1つまたは複数のシナリオをいうこともでき、これは本実施形態では限定されない。加えて、第2のシナリオは具体的には、所定のシナリオ、例えば、ユーザによって入力された操作を受け取るために設定されるシナリオとすることもできる。このように、タスク制限が許可されるシナリオであって、ユーザによって入力される操作に従って設定され、ユーザの要件または習慣に適合するシナリオを実現することができる。   Optionally, the second scenario can also refer to one or more scenarios. In addition, the second scenario can also refer to all scenarios other than the first scenario, and can also refer to one or a plurality of scenarios other than the first scenario, which is not limited in the present embodiment. . In addition, the second scenario may specifically be a predetermined scenario, for example, a scenario set to receive an operation input by the user. As described above, it is possible to realize a scenario in which task restriction is permitted, which is set according to an operation input by the user and conforms to the user's requirements or habits.

任意選択で、第2のシナリオは、第1のシナリオ以外の、第2のリストにないシナリオとすることもでき、第2のリストは、タスク制限が禁止されるシナリオを含むことができる。   Optionally, the second scenario may be a scenario that is not in the second list other than the first scenario, and the second list may include scenarios where task restrictions are prohibited.

任意選択で、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスク内の少なくとも1つのバックグラウンドタスクをいうこともでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクは、第2のシナリオに対応するすべてのバックグラウンドタスクをいうこともできる。加えて、プロセッサ192は具体的には、第2のシナリオに対応するバックグラウンドタスク内の、制限処理を受けた後で他のタスクもしくはオペレーティングシステムに影響を及ぼすことにならない少なくとも2つのバックグラウンドタスクを探索することもでき、第2のシナリオに対応するバックグラウンドタスク内の少なくとも1つの所定のバックグラウンドタスクを探索することもでき、第2のシナリオに対応するバックグラウンドタスク内の、そのUIDが一般ユーザに対応する少なくとも1つのバックグラウンドタスクを探索することもできる。例えば、プロセッサ192によって行われる、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する動作は、
第2のシナリオに対応する各バックグラウンドタスクのUIDを探索し、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクとして、そのUIDが一般ユーザに対応するバックグラウンドタスクを探索する動作
を含むことができる。
Optionally, at least one background task corresponding to the second scenario can also refer to at least one background task in all background tasks corresponding to the second scenario, The corresponding at least one background task can also refer to all background tasks corresponding to the second scenario. In addition, the processor 192 specifically has at least two background tasks within the background task corresponding to the second scenario that will not affect other tasks or the operating system after undergoing restriction processing. You can also search for at least one predetermined background task in the background task corresponding to the second scenario, and its UID in the background task corresponding to the second scenario is It is also possible to search for at least one background task corresponding to a general user. For example, the operation performed by the processor 192 to search for at least one background task corresponding to the second scenario is:
Search for the UID of each background task corresponding to the second scenario, and at least one background task corresponding to the second scenario includes an operation for searching for the background task corresponding to the general user. Can do.

すなわち、このステップは、第2のシナリオに対応し、プロセッサ192によって探索される少なくとも1つのバックグラウンドタスクが、そのUIDが一般ユーザに対応するバックグラウンドタスクであることを実現するのに使用される。   That is, this step corresponds to the second scenario and is used to realize that at least one background task searched by the processor 192 is a background task whose UID corresponds to a general user. .

任意選択で、プロセッサ192は、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスク内の、そのUIDがシステムユーザに対応するバックグラウンドタスクを無視する動作
を行うようにさらに構成することもできる。すなわち、そのUIDがシステムユーザに対応するバックグラウンドタスクに対しては処理が行われない。
Optionally, the processor 192 is
It can be further configured to perform an action in the at least one background task corresponding to the second scenario that ignores the background task whose UID corresponds to the system user. That is, no processing is performed for the background task whose UID corresponds to the system user.

任意選択で、プロセッサ192は、第2のシナリオに対応するバックグラウンドタスク内の、そのシステムリソース使用が事前設定閾値に達する少なくとも1つのバックグラウンドタスクを探索することもできる。   Optionally, the processor 192 may search for at least one background task in the background task corresponding to the second scenario whose system resource usage reaches a preset threshold.

任意選択で、プロセッサ192は、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索する動作と、
第1のシナリオに対応する少なくとも1つのバックグラウンドタスクのUIDが一般ユーザに対応する場合に、第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作と
を行うようにさらに構成することもできる。
Optionally, the processor 192 is
Searching for at least one background task corresponding to the first scenario;
When the UID of at least one background task corresponding to the first scenario corresponds to a general user, it is further configured to perform an operation of performing restriction processing on at least one background task corresponding to the first scenario You can also

本実施形態の本実施態様については、第1の実施形態および第2の実施形態における第1のシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が行われる実施態様をさらに参照されたい。   For this embodiment of the present embodiment, further refer to the embodiment in which the restriction process is performed on at least one background task corresponding to the first scenario in the first embodiment and the second embodiment. .

任意選択で、プロセッサ192が第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作の前に、プロセッサ192は、
第2のシナリオに対応する少なくとも1つのバックグラウンドタスクのためのタイマを開始する動作と、
タイマが事前設定閾値を超えたときに、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止する動作と
を行うようにさらに構成することもできる。
Optionally, prior to the operation of processor 192 performing a restriction process on at least one background task corresponding to the second scenario, processor 192
An action to start a timer for at least one background task corresponding to the second scenario;
It may be further configured to perform an action to stop a system component used by at least one background task corresponding to the second scenario when the timer exceeds a preset threshold.

任意選択で、システムコンポーネントは、それだけに限らないが、タイマ、スリープロック、およびブロードキャスト通知を含む。同時に、前述のステップでは、システムコンポーネントが休止されるときのシステムコンポーネントの状況値を保存することができ、このため、制限処理が解除された後で、バックグラウンドタスクはシステムコンポーネントの保存された状況値を呼び出すことができる。加えて、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントは、タイマが事前設定閾値(例えば、10秒、30秒など)に達したときに限り停止される。これにより、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを頻繁に停止することを回避することができる。   Optionally, system components include, but are not limited to, timers, sleep locks, and broadcast notifications. At the same time, the above steps can save the status value of the system component when the system component is paused, so that after the restriction process is released, the background task will save the saved status of the system component A value can be called. In addition, the system component used by at least one background task corresponding to the second scenario is stopped only when the timer reaches a preset threshold (eg, 10 seconds, 30 seconds, etc.). Thereby, frequent stopping of the system components used by at least one background task corresponding to the second scenario can be avoided.

任意選択で、プロセッサ192が第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対する制限処理を行う動作の前に、プロセッサ192は、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせる動作と、
少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用する場合に、システムコンポーネントを停止するス動作と
を行うようにさらに構成することもできる。
Optionally, prior to the operation of processor 192 performing a restriction process on at least one background task corresponding to the second scenario, processor 192
An action to query whether at least one background task uses a system component, and
If at least one background task uses a system component, it can be further configured to perform the action of stopping the system component.

本実施態様では、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントが停止されるため、デバイスの電力消費および電力損失を低減させることができる。   In this embodiment, system components used by at least one background task corresponding to the second scenario are stopped, so that power consumption and power loss of the device can be reduced.

任意選択で、システムリソース使用を低減させるための処理は、
少なくとも1つのバックグラウンドタスクを凍結するやり方と、
少なくとも1つのバックグラウンドタスクを停止するやり方と、
少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含むこともできる。
Optionally, processing to reduce system resource usage is:
Freezing at least one background task;
Stop at least one background task,
It can also include at least one of ways to limit system resources used by at least one background task.

この場合、プロセッサ192は、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを凍結することもでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクを停止することもでき、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限することもできる。   In this case, the processor 192 can freeze at least one background task corresponding to the second scenario, can also stop at least one background task corresponding to the second scenario, It is also possible to limit the system resources used by at least one background task corresponding to the scenario.

任意選択で、本方法は具体的には、タブレットコンピュータ、携帯電話、電子リーダ、リモコン、PC、ノートブックコンピュータ、車内デバイス、ウェブテレビ、ウェアラブルデバイス、またはネットワーク機能を有する他のインテリジェントデバイスといった、マルチタスクシステムを有する任意のデバイスに適用することができる。   Optionally, the method specifically includes multiple computers such as tablet computers, mobile phones, electronic readers, remote controls, PCs, notebook computers, in-car devices, web TVs, wearable devices, or other intelligent devices with network capabilities. It can be applied to any device having a task system.

前述の技術的解決策においては、フォアグラウンドタスクに対応する第1のシナリオがフォアグラウンドタスクに従って決定され、フォアグラウンドタスクに対応する第1のシナリオ以外の第2のシナリオが決定され、第2のシナリオはタスク制限が許可されるシナリオであり、第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクが探索され、第2のシナリオに対応する少なくとも1つのバックグラウンドタスクに対して制限処理が行われ、制限処理はシステムリソース使用を低減させるための処理をいう。したがって、デバイスの電力消費および電力損失を低減させることができる。   In the above technical solution, the first scenario corresponding to the foreground task is determined according to the foreground task, the second scenario other than the first scenario corresponding to the foreground task is determined, and the second scenario is a task. A scenario where restrictions are allowed, the second scenario corresponds to at least one background task, and at least one background task corresponding to the second scenario is searched and at least one corresponding to the second scenario Restriction processing is performed for one background task, and the restriction processing is processing for reducing the use of system resources. Therefore, power consumption and power loss of the device can be reduced.

当業者は、各実施形態における方法の各プロセスの全部または一部を関連ハードウェアに命令するコンピュータプログラムによって実現することができることを理解するであろう。プログラムはコンピュータ可読記憶媒体に記憶することができる。プログラムが走ると、各実施形態における方法の各プロセスが行われる。前述の記憶媒体は、磁気ディスク、光ディスク、読取り専用メモリ(Read-Only Memory、略称ROM)、またはランダム・アクセス・メモリ(Random Access Memory、略称RAM)を含むことができる。   Those skilled in the art will appreciate that all or part of each process of the method in each embodiment can be realized by a computer program that instructs the associated hardware. The program can be stored in a computer readable storage medium. When the program runs, each process of the method in each embodiment is performed. The aforementioned storage medium can include a magnetic disk, an optical disk, a read-only memory (abbreviated as ROM), or a random access memory (abbreviated as RAM).

以上の開示は単に本発明の例示的実施形態であるにすぎず、当然ながら、本発明の保護範囲を限定するためのものではない。したがって、本発明の特許請求の範囲に従ってなされる均等な変形は本発明の範囲内に含まれるものとする。   The foregoing disclosure is merely exemplary embodiments of the present invention and, of course, is not intended to limit the protection scope of the present invention. Accordingly, equivalent modifications made in accordance with the claims of the present invention are intended to be included within the scope of the present invention.

81 決定部
82 第1の探索部
83 第1の処理部
91 決定部
92 判断部
93 第1の探索部
94 第1の処理部
95 第2の探索部
96 第2の処理部
97 第1の問い合わせ部
98 無視部
99 タイミング部
100 第1の停止部
101 第2の問い合わせ部
102 第2の停止部
141 第1の決定部
142 第2の決定部
143 第1の探索部
144 第1の処理部
145 第2の探索部
146 第2の処理部
147 タイミング部
148 第1の停止部
149 問い合わせ部
150 第2の停止部
181 メモリ
182 プロセッサ
191 メモリ
192 プロセッサ
81 Decision part
82 First search part
83 First processing section
91 Decision part
92 Judgment Department
93 First search part
94 First processing section
95 Second search part
96 Second processing section
97 First Inquiry Department
98 Ignore part
99 Timing section
100 First stop
101 Second inquiry section
102 Second stop
141 First decision part
142 Second decision part
143 First search unit
144 First processing part
145 Second search unit
146 Second processing unit
147 Timing section
148 First stop
149 Inquiry Department
150 Second stop
181 memory
182 processor
191 memory
192 processor

Claims (14)

タスク管理方法であって、
フォアグラウンドタスクに従って、前記フォアグラウンドタスクに対応する第1のシナリオを決定するステップと、
前記フォアグラウンドタスクに対応する前記第1のシナリオが第1のリストにあるときに、前記第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するステップであって、前記第1のリストはタスク制限が許可されるシナリオを含む、少なくとも1つのバックグラウンドタスクを探索するステップと、
前記第1のシナリオに対応する前記少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップであって、前記制限処理はシステムリソース使用を低減させるための処理をいう、制限処理を行うステップと
を含み、
前記第1のシナリオを決定するステップは、
温度が事前設定温度閾値に達したときに、前記フォアグラウンドタスクに従って、前記フォアグラウンドタスクに対応する前記第1のシナリオを決定するステップをさらに含み、
前記温度は、前記タスク管理方法を実施するデバイスの温度であり、
前記デバイスの温度が前記事前設定温度閾値に達したときに限り、前記バックグラウンドタスクに対して前記制限処理が行われ、
前記フォアグラウンドタスクに対応する前記第1のシナリオ以外の第2のシナリオを探索するステップであって、前記第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、前記第1のリストは前記第2のシナリオを含む、第2のシナリオを探索するステップと、
前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップと
をさらに含み、
前記第2のシナリオは、前記第1のシナリオ以外の、第2のリストにないシナリオであり、前記第2のリストは、タスク制限が禁止されるシナリオを含み、前記タスク制限が禁止されるシナリオは、前記デバイスの性能に従って自動的に設定され、
前記デバイスの性能は、前記デバイスのCPUの性能と、前記デバイスのメモリ容量と、前記デバイスの電池容量とのうちの少なくとも1つを含む、タスク管理方法。
A task management method,
Determining a first scenario corresponding to the foreground task according to the foreground task;
Searching for at least one background task corresponding to the first scenario when the first scenario corresponding to the foreground task is in a first list, wherein the first list is a task Exploring at least one background task, including scenarios where restrictions are allowed;
Performing restriction processing on the at least one background task corresponding to the first scenario, the restriction processing including processing for reducing system resource use, and performing restriction processing;
Determining the first scenario comprises:
Determining, according to the foreground task, the first scenario corresponding to the foreground task when a temperature reaches a preset temperature threshold;
The temperature is a temperature of a device that performs the task management method,
Only when the temperature of the device reaches the preset temperature threshold, the limiting process is performed on the background task ,
Searching for a second scenario other than the first scenario corresponding to the foreground task, wherein the second scenario corresponds to at least one background task, and the first list is the second scenario Exploring a second scenario including:
Performing a restriction process on the at least one background task corresponding to the second scenario;
Further including
The second scenario is a scenario that is not in the second list other than the first scenario, and the second list includes a scenario in which task restriction is prohibited, and the scenario in which the task restriction is prohibited Is automatically set according to the performance of the device,
The task management method , wherein the device performance includes at least one of a performance of the CPU of the device, a memory capacity of the device, and a battery capacity of the device .
前記第1のシナリオに対応する前記少なくとも1つのバックグラウンドタスクに対する制限処理を行う前記ステップの前に、
前記少なくとも1つのバックグラウンドタスクのユーザ識別子を問い合わせるステップと、
前記少なくとも1つのバックグラウンドタスクの前記ユーザ識別子がシステムユーザに対応する場合に、前記少なくとも1つのバックグラウンドタスクを無視するステップと、
前記少なくとも1つのバックグラウンドタスクの前記ユーザ識別子が一般ユーザに対応する場合に、前記少なくとも1つのバックグラウンドタスクに対する前記制限処理を行うステップと
をさらに含み、
前記少なくとも1つのバックグラウンドタスクの前記ユーザ識別子がシステムユーザに対応する場合は、前記少なくとも1つのバックグラウンドタスクがオペレーティングシステムに含まれるバックグラウンドタスクである、請求項1に記載の方法。
Before the step of restricting the at least one background task corresponding to the first scenario,
Querying a user identifier of the at least one background task;
Ignoring the at least one background task if the user identifier of the at least one background task corresponds to a system user;
Performing the restriction process on the at least one background task when the user identifier of the at least one background task corresponds to a general user, and
Wherein if at least one of the user identifier of the background task corresponds to the system user, it said at least one background task is a background task in the operating system, the method according to claim 1.
前記第1のシナリオに対応する前記少なくとも1つのバックグラウンドタスクに対する制限処理を行う前記ステップの前に、
前記少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるステップと、
前記少なくとも1つのバックグラウンドタスクが前記システムコンポーネントを使用する場合に、前記システムコンポーネントを停止するステップと
をさらに含む、請求項1に記載の方法。
Before the step of restricting the at least one background task corresponding to the first scenario,
Querying whether the at least one background task uses a system component;
Wherein when at least one of the background task will use the system components, further comprises the step of stopping the system components, the method according to claim 1.
システムリソース使用を低減させるための前記処理は、
前記少なくとも1つのバックグラウンドタスクを凍結するやり方と、
前記少なくとも1つのバックグラウンドタスクを停止するやり方と、
前記少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含む、請求項1から3のいずれか一項に記載の方法。
The process for reducing system resource usage includes:
Freezing the at least one background task;
Stopping the at least one background task;
4. The method according to any one of claims 1 to 3 , comprising at least one of: limiting system resources used by the at least one background task.
タスク管理方法であって、
フォアグラウンドタスクに従って、前記フォアグラウンドタスクに対応する第1のシナリオを決定するステップと、
前記フォアグラウンドタスクに対応する前記第1のシナリオ以外の第2のシナリオを決定するステップであって、前記第2のシナリオはタスク制限が許可されるシナリオであり、前記第2のシナリオは少なくとも1つのバックグラウンドタスクに対応する、第2のシナリオを決定するステップと、
前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクを探索するステップと、
前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップであって、前記制限処理はシステムリソース使用を低減させるための処理をいう、制限処理を行うステップと
を含み、
前記第1のシナリオを決定するステップは、
温度が事前設定温度閾値に達したときに、前記フォアグラウンドタスクに従って、前記フォアグラウンドタスクに対応する前記第1のシナリオを決定するステップをさらに含み、
前記温度は、前記タスク管理方法を実施するデバイスの温度であり、
前記デバイスの温度が前記事前設定温度閾値に達したときに限り、前記バックグラウンドタスクに対して前記制限処理が行われ、
前記第2のシナリオは、前記第1のシナリオ以外の、第2のリストにないシナリオであり、前記第2のリストは、タスク制限が禁止されるシナリオを含み、前記タスク制限が禁止されるシナリオは、前記デバイスの性能に従って自動的に設定され、
前記デバイスの性能は、前記デバイスのCPUの性能と、前記デバイスのメモリ容量と、前記デバイスの電池容量とのうちの少なくとも1つを含む、タスク管理方法。
A task management method,
Determining a first scenario corresponding to the foreground task according to the foreground task;
Determining a second scenario other than the first scenario corresponding to the foreground task, wherein the second scenario is a scenario in which task restriction is allowed, and the second scenario is at least one Determining a second scenario corresponding to the background task;
Searching for the at least one background task corresponding to the second scenario;
Performing a restriction process on the at least one background task corresponding to the second scenario, the restriction process including a process for reducing a system resource use, and performing a restriction process;
Determining the first scenario comprises:
Determining, according to the foreground task, the first scenario corresponding to the foreground task when a temperature reaches a preset temperature threshold;
The temperature is a temperature of a device that performs the task management method,
Only when the temperature of the device reaches the preset temperature threshold, the limiting process is performed on the background task ,
The second scenario is a scenario that is not in the second list other than the first scenario, and the second list includes a scenario in which task restriction is prohibited, and the scenario in which the task restriction is prohibited Is automatically set according to the performance of the device,
The task management method , wherein the device performance includes at least one of a performance of the CPU of the device, a memory capacity of the device, and a battery capacity of the device .
前記第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するステップと、
前記第1のシナリオに対応する前記少なくとも1つのバックグラウンドタスクのユーザ識別子が一般ユーザに対応する場合に、前記第1のシナリオに対応する前記少なくとも1つのバックグラウンドタスクに対する制限処理を行うステップと、
前記第1のシナリオに対応する前記少なくとも1つのバックグラウンドタスクのユーザ識別子がシステムユーザに対応する場合に、前記少なくとも1つのバックグラウンドタスクを無視するステップと、
をさらに含み、
前記少なくとも1つのバックグラウンドタスクの前記ユーザ識別子がシステムユーザに対応する場合は、前記少なくとも1つのバックグラウンドタスクがオペレーティングシステムに含まれるバックグラウンドタスクである、請求項5に記載の方法。
Searching for at least one background task corresponding to the first scenario;
Performing a restriction process on the at least one background task corresponding to the first scenario when a user identifier of the at least one background task corresponding to the first scenario corresponds to a general user;
Ignoring the at least one background task if a user identifier of the at least one background task corresponding to the first scenario corresponds to a system user;
Further including
6. The method of claim 5 , wherein if the user identifier of the at least one background task corresponds to a system user, the at least one background task is a background task included in an operating system.
前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクに対する制限処理を行う前記ステップの前に、
前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクのためのタイマを開始するステップと、
前記タイマが事前設定閾値を超えたときに、前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するステップと
をさらに含む、請求項5または6に記載の方法。
Before the step of restricting the at least one background task corresponding to the second scenario,
Starting a timer for the at least one background task corresponding to the second scenario;
When the timer exceeds a preset threshold, further comprising the step of stopping the system components used by the at least one background task corresponding to the second scenario, according to claim 5 or 6 Method.
前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクに対する制限処理を行う前記ステップの前に、
前記少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるステップと、
前記少なくとも1つのバックグラウンドタスクが前記システムコンポーネントを使用する場合に、前記システムコンポーネントを停止するステップと
をさらに含む、請求項5または6に記載の方法。
Before the step of restricting the at least one background task corresponding to the second scenario,
Querying whether the at least one background task uses a system component;
7. The method of claim 5 or 6 , further comprising stopping the system component when the at least one background task uses the system component.
システムリソース使用を低減させるための前記処理は、
前記少なくとも1つのバックグラウンドタスクを凍結するやり方と、
前記少なくとも1つのバックグラウンドタスクを停止するやり方と、
前記少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含む、請求項5から8のいずれか一項に記載の方法。
The process for reducing system resource usage includes:
Freezing the at least one background task;
Stopping the at least one background task;
9. A method according to any one of claims 5 to 8 , comprising at least one of: limiting system resources used by the at least one background task.
第1の決定部と、第2の決定部と、第1の探索部と、第1の処理部とを含む、タスク管理デバイスであって、
前記第1の決定部は、フォアグラウンドタスクに従って、前記フォアグラウンドタスクに対応する第1のシナリオを決定するように構成されており、
前記第2の決定部は、前記フォアグラウンドタスクに対応し、前記第1の決定部によって決定される前記第1のシナリオ以外の第2のシナリオを決定するように構成されており、前記第2のシナリオはタスク制限が許可されるシナリオであり、前記第2のシナリオは少なくとも1つのバックグラウンドタスクに対応し、
前記第1の探索部は、前記第2の決定部によって決定される前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクを探索するように構成されており、
前記第1の処理部は、前記第2のシナリオに対応し、前記第1の探索部によって探索される前記少なくとも1つのバックグラウンドタスクに対する制限処理を行うように構成されており、前記制限処理はシステムリソース使用を低減させるための処理であり、
前記第1の決定部は、
温度が事前設定温度閾値に達したときに、前記フォアグラウンドタスクに従って、前記フォアグラウンドタスクに対応する前記第1のシナリオを決定するように、さらに構成されており、
前記温度は、前記タスク管理デバイスによってタスク管理されるデバイスの温度であり、
前記第1の処理部は、
前記デバイスの温度が前記事前設定温度閾値に達したときに限り、前記バックグラウンドタスクに対して前記制限処理を行うように、さらに構成されており
前記第2のシナリオは、前記第1のシナリオ以外の、第2のリストにないシナリオであり、前記第2のリストは、タスク制限が禁止されるシナリオを含み、前記タスク制限が禁止されるシナリオは、前記デバイスの性能に従って自動的に設定され
前記デバイスの性能は、前記デバイスのCPUの性能と、前記デバイスのメモリ容量と、前記デバイスの電池容量とのうちの少なくとも1つを含む、
タスク管理デバイス。
A task management device including a first determination unit, a second determination unit, a first search unit, and a first processing unit,
The first determination unit is configured to determine a first scenario corresponding to the foreground task according to a foreground task,
The second determination unit corresponds to the foreground task and is configured to determine a second scenario other than the first scenario determined by the first determination unit, and the second determination unit The scenario is a scenario in which task restriction is allowed, and the second scenario corresponds to at least one background task,
The first search unit is configured to search for the at least one background task corresponding to the second scenario determined by the second determination unit;
The first processing unit corresponds to the second scenario, and is configured to perform a limiting process on the at least one background task searched by the first searching unit, and the limiting process is This is a process to reduce system resource usage.
The first determination unit includes:
Further configured to determine, according to the foreground task, the first scenario corresponding to the foreground task when a temperature reaches a preset temperature threshold;
The temperature is a temperature of a device managed by the task management device.
The first processing unit includes:
Only when the temperature of the device reaches the preset temperature threshold value, to perform the limit processing for the background task is further configured,
The second scenario is a scenario that is not in the second list other than the first scenario, and the second list includes a scenario in which task restriction is prohibited, and the scenario in which the task restriction is prohibited Is automatically set according to the performance of the device
The device performance includes at least one of the CPU performance of the device, the memory capacity of the device, and the battery capacity of the device.
Task management device.
前記第1のシナリオに対応する少なくとも1つのバックグラウンドタスクを探索するように構成された第2の探索部と、
前記第1のシナリオに対応する前記少なくとも1つのバックグラウンドタスクのユーザ識別子が一般ユーザに対応する場合に、前記第1のシナリオに対応する前記少なくとも1つのバックグラウンドタスクに対する前記制限処理を行うように構成された第2の処理部と、
前記第1のシナリオに対応する前記少なくとも1つのバックグラウンドタスクのユーザ識別子がシステムユーザに対応する場合に、前記少なくとも1つのバックグラウンドタスクを無視するように構成された第3の処理部と
をさらに含み、
前記少なくとも1つのバックグラウンドタスクの前記ユーザ識別子がシステムユーザに対応する場合は、前記少なくとも1つのバックグラウンドタスクがオペレーティングシステムに含まれるバックグラウンドタスクである、請求項10に記載のデバイス。
A second search unit configured to search for at least one background task corresponding to the first scenario;
When the user identifier of the at least one background task corresponding to the first scenario corresponds to a general user, the restriction process is performed on the at least one background task corresponding to the first scenario. A second processing unit configured;
A third processing unit configured to ignore the at least one background task when a user identifier of the at least one background task corresponding to the first scenario corresponds to a system user; and Including
11. The device of claim 10 , wherein the at least one background task is a background task included in an operating system if the user identifier of the at least one background task corresponds to a system user.
前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクのためのタイマを開始するように構成されたタイミング部と、
前記タイマが事前設定閾値を超えたときに、前記第2のシナリオに対応する前記少なくとも1つのバックグラウンドタスクによって使用されるシステムコンポーネントを停止するように構成された第1の停止部と
をさらに含む、請求項10に記載のデバイス。
A timing unit configured to start a timer for the at least one background task corresponding to the second scenario;
A first stop configured to stop a system component used by the at least one background task corresponding to the second scenario when the timer exceeds a preset threshold; and The device of claim 10 .
前記少なくとも1つのバックグラウンドタスクがシステムコンポーネントを使用するかどうか問い合わせるように構成された問い合わせ部と、
前記問い合わせ部が、前記少なくとも1つのバックグラウンドタスクが前記システムコンポーネントを使用することを確認した場合に、前記システムコンポーネントを停止するように構成された第2の停止部と
をさらに含む、請求項10に記載のデバイス。
An inquiry unit configured to inquire whether the at least one background task uses a system component;
The inquiry unit further comprises said when at least one background task it was confirmed that the use of the system components, second stop portion configured to stop the system components, according to claim 10 Device described in.
システムリソース使用を低減させるための前記処理は、
前記少なくとも1つのバックグラウンドタスクを凍結するやり方と、
前記少なくとも1つのバックグラウンドタスクを停止するやり方と、
前記少なくとも1つのバックグラウンドタスクによって使用されるシステムリソースを制限するやり方と
のうちの少なくとも1つを含む、請求項10から13のいずれか一項に記載のデバイス。
The process for reducing system resource usage includes:
Freezing the at least one background task;
Stopping the at least one background task;
14. A device according to any one of claims 10 to 13 , comprising at least one of: limiting system resources used by the at least one background task.
JP2016538038A 2013-12-10 2014-12-04 Task management method and task management device Active JP6443813B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201310665434.9A CN104699218B (en) 2013-12-10 2013-12-10 A kind of task management method and equipment
CN201310665434.9 2013-12-10
PCT/CN2014/093028 WO2015085887A1 (en) 2013-12-10 2014-12-04 Task management method and device

Publications (2)

Publication Number Publication Date
JP2016540313A JP2016540313A (en) 2016-12-22
JP6443813B2 true JP6443813B2 (en) 2018-12-26

Family

ID=53346437

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016538038A Active JP6443813B2 (en) 2013-12-10 2014-12-04 Task management method and task management device

Country Status (6)

Country Link
US (3) US10345890B2 (en)
EP (2) EP3062193A4 (en)
JP (1) JP6443813B2 (en)
KR (1) KR101922576B1 (en)
CN (2) CN104699218B (en)
WO (1) WO2015085887A1 (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528055B (en) * 2015-12-30 2018-11-23 小米科技有限责任公司 Run the processing method and processing device of object
JP6702762B2 (en) * 2016-03-03 2020-06-03 キヤノン株式会社 Information processing apparatus, information processing apparatus control method, and program
CN105893128B (en) * 2016-03-30 2019-08-06 北京小米移动软件有限公司 A kind of method and apparatus of application call management
CN106537344A (en) * 2016-03-30 2017-03-22 北京小米移动软件有限公司 A method and apparatus for managing application calls
KR20180013608A (en) * 2016-07-29 2018-02-07 삼성전자주식회사 Method and apparatus for reducing power consumption of electronic device
US11277798B2 (en) * 2017-10-13 2022-03-15 Huawei Technologies Co., Ltd. Method for reducing power consumption of terminal, and terminal
CN107766211B (en) * 2017-10-31 2021-06-15 努比亚技术有限公司 Screen freezing prevention method, mobile terminal and computer readable storage medium
CN110753909B (en) * 2017-10-31 2024-04-02 深圳市欢太科技有限公司 Service scheduling method and device, computer equipment and computer readable storage medium
KR101989249B1 (en) * 2017-12-14 2019-06-13 연세대학교 산학협력단 Method for offloading in mobile device and the mobile device
CN109992397A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Process handling method and device, electronic equipment, computer readable storage medium
CN110045809A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium
US10901806B2 (en) * 2018-05-01 2021-01-26 International Business Machines Corporation Internet of things resource optimization
JP6569185B1 (en) 2018-06-14 2019-09-04 レノボ・シンガポール・プライベート・リミテッド Information processing apparatus, information processing apparatus control method, and program
EP3608779B1 (en) * 2018-08-09 2024-04-03 Bayerische Motoren Werke Aktiengesellschaft Method for processing a predetermined computing task by means of a distributed, vehicle-based computing system as well as computing system, server device, and motor vehicle
CN109324884A (en) * 2018-09-04 2019-02-12 青岛海信移动通信技术股份有限公司 A kind of method and terminal limiting background application
CN111107429A (en) * 2018-10-26 2020-05-05 深圳Tcl新技术有限公司 Method, apparatus and computer readable storage medium for improving performance of television system
CN109739632A (en) * 2019-01-04 2019-05-10 Oppo广东移动通信有限公司 One kind freezing mechanism take-effective method, electronic device and computer readable storage medium
CN110147275A (en) * 2019-05-24 2019-08-20 中国联合网络通信集团有限公司 A kind of terminal resource optimization method and device
CN110795240A (en) * 2019-10-18 2020-02-14 Oppo(重庆)智能科技有限公司 Task management method and device, electronic equipment and computer readable storage medium
US11422616B2 (en) * 2020-03-26 2022-08-23 Intel Corporation System, apparatus and method for dynamically adjusting platform power and performance based on task characteristics
CN113488042B (en) * 2021-06-29 2022-12-13 荣耀终端有限公司 Voice control method and electronic equipment
CN114780218A (en) * 2022-04-20 2022-07-22 Oppo广东移动通信有限公司 Application control method and device, storage medium and electronic equipment
US11921558B1 (en) 2022-11-30 2024-03-05 Intel Corporation Using network traffic metadata to control a processor

Family Cites Families (53)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6098090A (en) * 1997-09-05 2000-08-01 Novell, Inc. Methods and system for providing a background processing thread which manages the background tasks of external threads
US6205468B1 (en) * 1998-03-10 2001-03-20 Lucent Technologies, Inc. System for multitasking management employing context controller having event vector selection by priority encoding of contex events
EP0942366A2 (en) * 1998-03-10 1999-09-15 Lucent Technologies Inc. Event-driven and cyclic context controller and processor employing the same
US6574734B1 (en) * 1998-12-28 2003-06-03 International Business Machines Corporation Method and apparatus for securing access to automotive devices and software services
US6834386B1 (en) * 1999-07-16 2004-12-21 Microsoft Corporation Method and system for regulating background tasks using performance measurements
GB9928503D0 (en) * 1999-12-03 2000-02-02 Ibm Resource allocation in data processing systems
US7024668B2 (en) * 2000-05-15 2006-04-04 Matsushita Electric Industrial Co., Ltd. Application execution apparatus and method
US7991633B2 (en) * 2000-12-12 2011-08-02 On Time Systems, Inc. System and process for job scheduling to minimize construction costs
US20130024812A1 (en) * 2011-07-13 2013-01-24 Z124 Foreground/background assortment of hidden windows
US7069559B2 (en) * 2001-08-29 2006-06-27 International Business Machines Corporation System and method for monitoring software queuing applications
JP4522043B2 (en) * 2002-09-06 2010-08-11 セイコーエプソン株式会社 Information device and display control method
US7146439B1 (en) * 2003-06-27 2006-12-05 Emc Corporation Management of background copy task for point-in-time copies
US20050028160A1 (en) * 2003-08-01 2005-02-03 Honeywell International Inc. Adaptive scheduler for anytime tasks
US8224639B2 (en) 2004-03-29 2012-07-17 Sony Computer Entertainment Inc. Methods and apparatus for achieving thermal management using processing task scheduling
US7784054B2 (en) * 2004-04-14 2010-08-24 Wm Software Inc. Systems and methods for CPU throttling utilizing processes
JP2005316764A (en) 2004-04-28 2005-11-10 Toshiba Corp Information processing device and system control method for it
US20070136731A1 (en) * 2005-12-09 2007-06-14 Caterpillar Inc. Systems and methods for prioritizing tasks
CN101114875A (en) * 2006-07-25 2008-01-30 中兴通讯股份有限公司 Mobile communications network link performance measuring system and method
US8352733B2 (en) * 2006-08-04 2013-01-08 Apple Inc. Resource restriction systems and methods
US8028060B1 (en) * 2007-01-05 2011-09-27 Apple Inc. Background task execution over a network based on network activity idle time
US8125950B2 (en) * 2007-01-31 2012-02-28 Broadcom Corporation Apparatus for wirelessly managing resources
US8555282B1 (en) * 2007-07-27 2013-10-08 Dp Technologies, Inc. Optimizing preemptive operating system with motion sensing
US7904673B2 (en) * 2007-11-20 2011-03-08 Seagate Technology Llc Data storage device with histogram of idle time and scheduling of background and foreground jobs
US8140830B2 (en) 2008-05-22 2012-03-20 International Business Machines Corporation Structural power reduction in multithreaded processor
US8276141B2 (en) * 2008-12-10 2012-09-25 International Business Machines Corporation Selection of transaction managers based on transaction metadata
US8788655B2 (en) * 2008-12-19 2014-07-22 Openpeak Inc. Systems for accepting and approving applications and methods of operation of same
US8140876B2 (en) * 2009-01-16 2012-03-20 International Business Machines Corporation Reducing power consumption of components based on criticality of running tasks independent of scheduling priority in multitask computer
CN101923382B (en) * 2009-06-16 2013-01-16 联想(北京)有限公司 Computer system energy-saving method and computer system
KR20110064832A (en) * 2009-12-09 2011-06-15 한국전자통신연구원 Task management apparatus
CN101788926B (en) * 2009-12-28 2014-04-30 中兴通讯股份有限公司 Resource allocation method and device for switching J2ME (Java 2 Micro Edition) application platform
US20110252430A1 (en) 2010-04-07 2011-10-13 Apple Inc. Opportunistic Multitasking
US9251855B2 (en) * 2011-01-28 2016-02-02 Apple Inc. Efficient media processing
US8886976B2 (en) * 2011-04-11 2014-11-11 Microsoft Corporation Management of background tasks
KR101812583B1 (en) * 2011-07-21 2018-01-30 삼성전자주식회사 Apparatus or task assignment, method for task assignment and a computer-readable storage medium
JP2013045373A (en) * 2011-08-25 2013-03-04 Fujitsu Ltd Information processor, control program, and control method
US9032413B2 (en) * 2011-09-01 2015-05-12 Microsoft Technology Licensing, Llc Decoupling background work and foreground work
US9063775B2 (en) * 2011-09-01 2015-06-23 Microsoft Technology Licensing, Llc Event aggregation for background work execution
US8621494B2 (en) 2011-09-12 2013-12-31 Microsoft Corporation Managing processes within suspend states and execution states
CN102508701A (en) * 2011-10-18 2012-06-20 北京百纳威尔科技有限公司 User terminal and method for controlling automatically-operating application program
CN102541246B (en) 2011-12-15 2015-02-04 江苏中科梦兰电子科技有限公司 Standby method based on dragon chip processor platform
US9164803B2 (en) * 2012-01-20 2015-10-20 Microsoft Technology Licensing, Llc Background task resource control
CN103246834B (en) * 2012-02-07 2016-08-17 联想(北京)有限公司 Control method and electronic equipment
US9135064B2 (en) * 2012-03-07 2015-09-15 Sandisk Enterprise Ip Llc Fine grained adaptive throttling of background processes
CN102768571A (en) 2012-06-13 2012-11-07 上海交通大学 Energy saving method of PCM-based (phase change memory based) data center
US8745261B1 (en) * 2012-10-02 2014-06-03 Nextbit Systems Inc. Optimized video streaming using cloud computing platform
CN102945344B (en) * 2012-10-17 2015-12-09 北京奇虎科技有限公司 A kind of backstage service switchover disposal route and system
CN102984359B (en) * 2012-11-13 2015-09-23 广东欧珀移动通信有限公司 The method of Lookup protocol mobile phone parameters
CN102981906A (en) * 2012-11-16 2013-03-20 广东欧珀移动通信有限公司 Application program background process management method and device
US9378054B2 (en) * 2013-04-12 2016-06-28 Dropbox, Inc. Testing system with methodology for background application control
US9569260B2 (en) * 2013-05-31 2017-02-14 Microsoft Technology Licensing, Llc Efficient priority-aware thread scheduling
US20140373032A1 (en) * 2013-06-12 2014-12-18 Microsoft Corporation Prefetching content for service-connected applications
US9292080B2 (en) * 2013-06-19 2016-03-22 Microsoft Technology Licensing, Llc Selective blocking of background activity
US20150024701A1 (en) * 2013-07-17 2015-01-22 Nec Casio Mobile Communications, Ltd. Mobile communication terminal, crime prevention method, computer-readable recording medium recording program thereon

Also Published As

Publication number Publication date
CN104699218A (en) 2015-06-10
US20190286213A1 (en) 2019-09-19
US20160299550A1 (en) 2016-10-13
US11209894B2 (en) 2021-12-28
KR20160085894A (en) 2016-07-18
JP2016540313A (en) 2016-12-22
EP3742291A1 (en) 2020-11-25
US11662802B2 (en) 2023-05-30
CN110083444A (en) 2019-08-02
EP3062193A4 (en) 2017-04-12
US20210216129A1 (en) 2021-07-15
CN104699218B (en) 2019-04-19
KR101922576B1 (en) 2018-11-27
EP3062193A1 (en) 2016-08-31
US10345890B2 (en) 2019-07-09
WO2015085887A1 (en) 2015-06-18

Similar Documents

Publication Publication Date Title
JP6443813B2 (en) Task management method and task management device
RU2686673C1 (en) Device and method of terminal control and terminal
JP6285905B2 (en) Persistent and recoverable worker process
KR101739216B1 (en) Centralized task scheduling
JP5601731B2 (en) System and method for dynamically controlling a processor
KR101518163B1 (en) System and method for asynchronously and independently controlling core clocks in a multicore central processing unit
KR101516859B1 (en) System and method for controlling central processing unit power with guaranteed steady state deadlines
WO2017185616A1 (en) File storage method and electronic equipment
WO2017185605A1 (en) File management method and electronic equipment
US20160203083A1 (en) Systems and methods for providing dynamic cache extension in a multi-cluster heterogeneous processor architecture
TW201432565A (en) Method and system for thread scheduling
WO2017020781A1 (en) Power saving processing method, device, mobile terminal and cloud server
KR20140100909A (en) Systems and methods for providing safe confluence modality
JP2013516711A (en) System and method for controlling power in an electronic device
CN103873587A (en) Method and device for achieving dispatching based on cloud platform
CN109889406B (en) Method, apparatus, device and storage medium for managing network connection
CN110286954B (en) Application program starting method and device and storage medium
JP5460883B2 (en) System and method for adjusting dynamic clock and voltage switching algorithms based on workload requirements
CN106162282B (en) Method and device for forbidding keys of intelligent television input equipment
TW201826118A (en) Processor for electronic device, method for software execution and memory
WO2019071405A1 (en) Terminal application control method and apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160819

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160819

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170627

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170704

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20170921

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170929

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180219

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180516

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: 20181022

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181116

R150 Certificate of patent or registration of utility model

Ref document number: 6443813

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250