CN107797851A - Method for scheduling task, device and mobile terminal - Google Patents

Method for scheduling task, device and mobile terminal Download PDF

Info

Publication number
CN107797851A
CN107797851A CN201610802840.9A CN201610802840A CN107797851A CN 107797851 A CN107797851 A CN 107797851A CN 201610802840 A CN201610802840 A CN 201610802840A CN 107797851 A CN107797851 A CN 107797851A
Authority
CN
China
Prior art keywords
task
nonsystematic
user
score value
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610802840.9A
Other languages
Chinese (zh)
Inventor
蒋燚
许鲤蓉
陈浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Spreadtrum Communications Inc
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201610802840.9A priority Critical patent/CN107797851A/en
Publication of CN107797851A publication Critical patent/CN107797851A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/4812Task transfer initiation or dispatching by interrupt, e.g. masked

Abstract

The present invention provides a kind of method for scheduling task, device and mobile terminal.Methods described includes:Record situation of the user using application;Data are used using history of the situation statistics of application with each nonsystematic task of user mutual during user uses application according to the user;Data are used according to the history, calculate the new prominence score value of each nonsystematic task, prominence score value is smaller, and the nonsystematic task is more important;When Installed System Memory deficiency, according to the new prominence score value of each nonsystematic task, by the nonsystematic task termination that new prominence score value is maximum.Compared with prior art, the present invention can be when being scheduled to nonsystematic task, the task service condition of comprehensive statistics user, the prominence score value of task is more accurately calculated, terminated by mistake in Installed System Memory deficiency so as to be effectively prevented from important task.

Description

Method for scheduling task, device and mobile terminal
Technical field
The present invention relates to system management technologies field, more particularly to a kind of method for scheduling task, device and mobile terminal.
Background technology
When existing embedded system is scheduled middle Installed System Memory deficiency to nonsystematic task, system is interior in order to reclaim Deposit, the process terminated, the high process of prominence score value can be determined according to the prominence score value of process importance analysis Importance is low, can be terminated first.When prominence score value is identical, system can press in prominence score value identical process Come terminated task or process according to the size of committed memory, terminate committed memory maximum task or process first.But actual feelings In condition, the prominence score value highest of most of background process and identical, system is come eventually by score value and committed memory size Only task, the larger background system of the internal memory that is commonly used of user is often terminated first.
For example, the running background of system has N number of task, respectively task 1, task 2 ..., task N, their weight The property wanted score value is identical, it is assumed that wherein task 1 is wechat, be the most-often used program of user but simultaneously the task take Internal memory is maximum, then in Installed System Memory deficiency, Installed System Memory recycling module first can terminate task 1.But to user and Speech, other N-1 tasks are all not frequently used, and unessential task, what user was more desirable to be terminated is other N-1 Individual task rather than task 1.
During the present invention is realized, inventor has found following technical problem in the prior art at least be present:
When being scheduled in current embedded system to nonsystematic task, a task can not be synthetically evaluated to user Importance, task important for a user may be caused to be terminated when system load is excessive by Installed System Memory recycling module, And resource is taken to the unessential task long-term existence of user, system resource is unable to reasonable distribution.
The content of the invention
Method for scheduling task, device and mobile terminal provided by the invention, being capable of comprehensive statistics user of the task use feelings Condition, the prominence score value of task is more accurately calculated, so as to avoid important task from being terminated by mistake.
In a first aspect, the present invention provides a kind of method for scheduling task, including:
Record situation of the user using application;
Count each non-with user mutual during user uses application using the situation of application according to the user The history of system task uses data;
According to described use data with each nonsystematic task of user mutual history, calculate each nonsystematic task newly Prominence score value, prominence score value is smaller, and the nonsystematic task is more important;
When Installed System Memory deficiency, according to the new prominence score value of each nonsystematic task, by new prominence score It is worth maximum nonsystematic task termination.
Alternatively, the record user is included using the situation of application:Record user starts application, using applying and exit The behavior of application.
Alternatively, it is described according to the user using application situation statistics user using application during with user The history of interactive each nonsystematic task is included using data:Used according to the user using the situation statistics of application in user During with the total usage time, total frequency of use, the nearest scheduled time of each nonsystematic task of user mutual The frequency of use in usage time and nearest predetermined amount of time in section.
Alternatively, data are used described in the basis with the history of each nonsystematic task of user mutual, calculate each non-system The new prominence score value of system task includes:
The new prominence score value ub_adj of each nonsystematic task is calculated according to equation below:
Ub_adj=i*adj/f+j*adj/t+k*adj/F+l*adj/T,
Wherein, i, j, k, l are default weight regulation coefficient, and f is each nonsystematic task in nearest predetermined amount of time Frequency of use, t are usage time of each nonsystematic task in nearest predetermined amount of time, and F is that the total of each nonsystematic task makes With frequency, T is total usage time of each nonsystematic task, to each nonsystematic when adj is the carry out Memory recycle of default The initial importance score value of task.
Second aspect, the present invention provide a kind of task scheduling apparatus, including:
Recording unit, for recording situation of the user using application;
Statistic unit, for according to the user using application situation statistics user using application during with The history of each nonsystematic task of family interaction uses data;
Computing unit, for using data according to the history of each nonsystematic task with user mutual, calculate each non- The new prominence score value of system task, prominence score value is smaller, and the nonsystematic task is more important;
Processing unit, for when Installed System Memory deficiency, according to the new prominence score value of each nonsystematic task, inciting somebody to action new The maximum nonsystematic task termination of prominence score value.
Alternatively, the recording unit, the behavior for recording user starts application, using applying and exiting application.
Alternatively, the statistic unit, for using application in user using the situation statistics of application according to the user During with the total usage time, total frequency of use, nearest predetermined amount of time of each nonsystematic task of user mutual Usage time and nearest predetermined amount of time in frequency of use.
Alternatively, the computing unit, for calculating the new prominence score of each nonsystematic task according to equation below Value ub_adj:
Ub_adj=i*adj/f+j*adj/t+k*adj/F+l*adj/T,
Wherein, i, j, k, l are default weight regulation coefficient, and f is each nonsystematic task in nearest predetermined amount of time Frequency of use, t are usage time of each nonsystematic task in nearest predetermined amount of time, and F is that the total of each nonsystematic task makes With frequency, T is total usage time of each nonsystematic task, to each nonsystematic when adj is the carry out Memory recycle of default The initial importance score value of task.
The third aspect, the present invention provide a kind of mobile terminal, and the mobile terminal includes above-mentioned task scheduling apparatus.
Method for scheduling task, device and mobile terminal provided in an embodiment of the present invention, application is used by recording user Situation;According to each nonsystematic of the user using the situation statistics of application during user uses application with user mutual The history of task uses data;Data are used with each nonsystematic task of user mutual history according to described, calculate each non-system The new prominence score value of system task, prominence score value is smaller, and the nonsystematic task is more important;When Installed System Memory deficiency When, according to the new prominence score value of each nonsystematic task, by the nonsystematic task termination that new prominence score value is maximum. Compared with prior art, the present invention can be when being scheduled to nonsystematic task, the task service condition of comprehensive statistics user, The prominence score value of task is more accurately calculated, so as to carry out task tune according to new task significance score value Degree, can be effectively prevented from important task and be terminated by mistake in Installed System Memory deficiency.
Brief description of the drawings
Fig. 1 is the flow chart for the method for scheduling task that one embodiment of the invention provides;
Fig. 2 is the structural representation for the task scheduling apparatus that one embodiment of the invention provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only Only it is part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill The every other embodiment that personnel are obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The present invention provides a kind of method for scheduling task, as shown in figure 1, methods described includes:
S101, record user use situation about applying.
Specifically, record user is included using the situation of application:Record user starts application, using applying and exit application Behavior.
S102, according to the user using application situation statistics user using application during with user mutual The history of each nonsystematic task uses data.
Specifically, the history of statistics is included using data:Counted according to the user using the situation of application is made in user With total usage time during application with each nonsystematic task of user mutual, recently total frequency of use, pre- timing Between frequency of use in usage time and nearest predetermined amount of time in section.
S103, the history of basis each nonsystematic task with user mutual use data, calculate each nonsystematic task New prominence score value, prominence score value it is smaller, the nonsystematic task is more important.
Specifically, the new prominence score value ub_adj of each nonsystematic task is calculated according to equation below:
Ub_adj=i*adj/f+j*adj/t+k*adj/F+l*adj/T,
Wherein, i, j, k, l are default weight regulation coefficient, and f is each nonsystematic task in nearest predetermined amount of time Frequency of use, t are usage time of each nonsystematic task in nearest predetermined amount of time, and F is that the total of each nonsystematic task makes With frequency, T is total usage time of each nonsystematic task, to each nonsystematic when adj is the carry out Memory recycle of default The initial importance score value of task, adj is smaller, and corresponding nonsystematic task is more important;Adj is bigger, and corresponding nonsystematic is appointed Business is more inessential.
Wherein, nearest predetermined amount of time is configured by user according to the actual use demand of oneself, can be one small When it is interior, in one day, in a week.
S104, when Installed System Memory deficiency, according to the new prominence score value of each nonsystematic task, by new importance The maximum nonsystematic task termination of score value.
Wherein, new prominence score value is smaller, shows that the nonsystematic task is more important;New prominence score value is got over Greatly, show that the nonsystematic task is more inessential.Prioritizing selection by the maximum nonsystematic task termination of new prominence score value, I.e. preferentially will most unessential nonsystematic task termination, so as to avoid important task from being terminated by mistake.
Method for scheduling task provided in an embodiment of the present invention, by recording situation of the user using application;According to the use Family is used using history of the situation statistics of application with each nonsystematic task of user mutual during user uses application Data;Data are used with each nonsystematic task of user mutual history according to described, calculate the new weight of each nonsystematic task The property wanted score value, prominence score value is smaller, and the nonsystematic task is more important;When Installed System Memory deficiency, according to each nonsystematic The new prominence score value of task, by the nonsystematic task termination that new prominence score value is maximum.Compared with prior art, The present invention can be when being scheduled to nonsystematic task, the task service condition of comprehensive statistics user, to the importance of task Score value is more accurately divided, can be effectively so as to carry out task scheduling according to new task significance score value Important task is avoided to be terminated by mistake in Installed System Memory deficiency.
The embodiment of the present invention also provides a kind of task scheduling apparatus, as shown in Fig. 2 described device includes:
Recording unit 201, for recording situation of the user using application;
Statistic unit 202, for being counted according to the user using the situation of application during user uses application Data are used with the history of each nonsystematic task of user mutual;
Computing unit 203, for using data according to the history of each nonsystematic task with user mutual, calculate each The new prominence score value of nonsystematic task, prominence score value is smaller, and the nonsystematic task is more important;
Processing unit 204, for when Installed System Memory deficiency, according to the new prominence score value of each nonsystematic task, By the nonsystematic task termination that new prominence score value is maximum.
Wherein, new prominence score value is smaller, shows that the nonsystematic task is more important;New prominence score value is got over Greatly, show that the nonsystematic task is more inessential.Prioritizing selection by the maximum nonsystematic task termination of new prominence score value, I.e. preferentially will most unessential nonsystematic task termination, so as to avoid important task from being terminated by mistake.
Task scheduling apparatus provided in an embodiment of the present invention, situation of the user using application can be recorded;According to the use Family is used using history of the situation statistics of application with each nonsystematic task of user mutual during user uses application Data;Data are used with each nonsystematic task of user mutual history according to described, calculate the new weight of each nonsystematic task The property wanted score value, prominence score value is smaller, and the nonsystematic task is more important;When Installed System Memory deficiency, according to each nonsystematic The new prominence score value of task, by the nonsystematic task termination that new prominence score value is maximum.Compared with prior art, The present invention can be when being scheduled to nonsystematic task, the task service condition of comprehensive statistics user, to the importance of task Score value is more accurately divided, can be effectively so as to carry out task scheduling according to new task significance score value Important task is avoided to be terminated by mistake in Installed System Memory deficiency.
Alternatively, the recording unit 201, the behavior for recording user starts application, using applying and exiting application.
Alternatively, the statistic unit 202, should for being used according to the user using the situation statistics of application in user During with the total usage time, total frequency of use, nearest predetermined amount of time of each nonsystematic task of user mutual Frequency of use in interior usage time and nearest predetermined amount of time.
Alternatively, the computing unit 203, the new importance for calculating each nonsystematic task according to equation below are commented Score value ub_adj:
Ub_adj=i*adj/f+j*adj/t+k*adj/F+l*adj/T,
Wherein, i, j, k, l are default weight regulation coefficient, and f is each nonsystematic task in nearest predetermined amount of time Frequency of use, t are usage time of each nonsystematic task in nearest predetermined amount of time, and F is that the total of each nonsystematic task makes With frequency, T is total usage time of each nonsystematic task, to each nonsystematic when adj is the carry out Memory recycle of default The initial importance score value of task, adj is smaller, and corresponding nonsystematic task is more important;Adj is bigger, and corresponding nonsystematic is appointed Business is more inessential.
The embodiment of the present invention also provides a kind of mobile terminal, and the mobile terminal includes above-mentioned task scheduling apparatus.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all should It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (9)

  1. A kind of 1. method for scheduling task, it is characterised in that including:
    Record situation of the user using application;
    According to each nonsystematic of the user using the situation statistics of application during user uses application with user mutual The history of task uses data;
    Use data with each nonsystematic task of user mutual history according to described, calculate newly important of each nonsystematic task Property score value, prominence score value it is smaller, the nonsystematic task is more important;
    When Installed System Memory deficiency, according to the new prominence score value of each nonsystematic task, by new prominence score value most Big nonsystematic task termination.
  2. 2. according to the method for claim 1, it is characterised in that the record user is included using the situation of application:Record User starts application, use the behavior for applying and exiting application.
  3. 3. according to the method for claim 2, it is characterised in that described to be existed according to the user using the situation statistics of application User uses the history during application with each nonsystematic task of user mutual to include using data:Made according to the user With total usage time of the situation of the application statistics during user uses application with each nonsystematic task of user mutual, Total frequency of use, the usage time in nearest predetermined amount of time and frequency of use in nearest predetermined amount of time.
  4. 4. according to the method for claim 3, it is characterised in that described in the basis with each nonsystematic task of user mutual History use data, calculating the new prominence score value of each nonsystematic task includes:
    The new prominence score value ub_adj of each nonsystematic task is calculated according to equation below:
    Ub_adj=i*adj/f+j*adj/t+k*adj/F+l*adj/T,
    Wherein, i, j, k, l are default weight regulation coefficient, and f is use of each nonsystematic task in nearest predetermined amount of time Frequency, t are usage time of each nonsystematic task in nearest predetermined amount of time, and F is that the total of each nonsystematic task uses frequently Rate, T is total usage time of each nonsystematic task, to each nonsystematic task when adj is the carry out Memory recycle of default Initial importance score value.
  5. A kind of 5. task scheduling apparatus, it is characterised in that including:
    Recording unit, for recording situation of the user using application;
    Statistic unit, for being handed over according to the user using the situation statistics of application during user uses application with user The history of mutual each nonsystematic task uses data;
    Computing unit, for using data according to the history of each nonsystematic task with user mutual, calculate each nonsystematic The new prominence score value of task, prominence score value is smaller, and the nonsystematic task is more important;
    Processing unit, for when Installed System Memory deficiency, according to the new prominence score value of each nonsystematic task, by new weight The maximum nonsystematic task termination of the property wanted score value.
  6. 6. device according to claim 5, it is characterised in that the recording unit, for recording user starts application, making With the behavior for applying and exiting application.
  7. 7. device according to claim 6, it is characterised in that the statistic unit, should for being used according to the user Situation statistics during user uses application with total usage time of each nonsystematic task of user mutual, total Frequency of use, the usage time in nearest predetermined amount of time and the frequency of use in nearest predetermined amount of time.
  8. 8. device according to claim 7, it is characterised in that the computing unit, it is each for being calculated according to equation below The new prominence score value ub_adj of nonsystematic task:
    Ub_adj=i*adj/f+j*adj/t+k*adj/F+l*adj/T,
    Wherein, i, j, k, l are default weight regulation coefficient, and f is use of each nonsystematic task in nearest predetermined amount of time Frequency, t are usage time of each nonsystematic task in nearest predetermined amount of time, and F is that the total of each nonsystematic task uses frequently Rate, T is total usage time of each nonsystematic task, to each nonsystematic task when adj is the carry out Memory recycle of default Initial importance score value.
  9. 9. a kind of mobile terminal, it is characterised in that the mobile terminal includes appointing as any one of claim 5 to 8 Business dispatching device.
CN201610802840.9A 2016-09-05 2016-09-05 Method for scheduling task, device and mobile terminal Pending CN107797851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610802840.9A CN107797851A (en) 2016-09-05 2016-09-05 Method for scheduling task, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610802840.9A CN107797851A (en) 2016-09-05 2016-09-05 Method for scheduling task, device and mobile terminal

Publications (1)

Publication Number Publication Date
CN107797851A true CN107797851A (en) 2018-03-13

Family

ID=61529683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610802840.9A Pending CN107797851A (en) 2016-09-05 2016-09-05 Method for scheduling task, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107797851A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563506A (en) * 2018-04-11 2018-09-21 青岛海信移动通信技术股份有限公司 The method for recovering internal storage and device of mobile terminal
CN111382921A (en) * 2018-12-29 2020-07-07 福建金风科技有限公司 Task matching method of offshore wind generating set, storage medium and computing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598315A (en) * 2014-12-12 2015-05-06 广州三星通信技术研究有限公司 Memory managing method, device and terminal
CN104794004A (en) * 2015-03-17 2015-07-22 中国石油天然气集团公司 Information pre-loading method
CN105893153A (en) * 2016-03-31 2016-08-24 北京百纳威尔无线通信设备有限公司 Memory cleaning method and device for mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598315A (en) * 2014-12-12 2015-05-06 广州三星通信技术研究有限公司 Memory managing method, device and terminal
CN104794004A (en) * 2015-03-17 2015-07-22 中国石油天然气集团公司 Information pre-loading method
CN105893153A (en) * 2016-03-31 2016-08-24 北京百纳威尔无线通信设备有限公司 Memory cleaning method and device for mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563506A (en) * 2018-04-11 2018-09-21 青岛海信移动通信技术股份有限公司 The method for recovering internal storage and device of mobile terminal
CN111382921A (en) * 2018-12-29 2020-07-07 福建金风科技有限公司 Task matching method of offshore wind generating set, storage medium and computing device

Similar Documents

Publication Publication Date Title
US11272059B2 (en) Exclusive agent pool allocation method, electronic device, and computer readable storage medium
Jiang et al. Asap: A self-adaptive prediction system for instant cloud resource demand provisioning
CN103430151B (en) A kind of resource allocation method and device
CN108090225B (en) Database instance running method, device and system and computer readable storage medium
CN107870981A (en) Electronic installation, the method and storage medium of tables of data filing processing
EP4068090A1 (en) Container scheduling method and apparatus, and non-volatile computer-readable storage medium
WO2019135963A1 (en) A system and method for scheduling workload based on a credit-based mechanism
Tang et al. A framework for amazon ec2 bidding strategy under sla constraints
WO2013082119A1 (en) Cloud provisioning accelerator
CN105939225A (en) Method and device for executing service
DE102006046184A1 (en) Power consumption deviation determining method for e.g. notebook personal computer, involves determining whether estimated deviation of maximum permitted power consumption takes place in case of performing new instance of executing process
CN108770017B (en) Dynamic equalization method and system for wireless resources
KR20130021625A (en) Operating method and portable device supporting the same
CN110138688A (en) Dynamic adjusts method, apparatus, equipment and the readable storage medium storing program for executing of business interface
CN107729137A (en) Server, the method and storage medium of the decryption of block chain sign test
US7904689B1 (en) Just in time storage allocation analysis systems and methods
CN104574051A (en) Charging method and device
CN113010576A (en) Method, device, equipment and storage medium for capacity evaluation of cloud computing system
CN103023984A (en) Terminal application server and application log filtering method thereof
CN110362531A (en) A kind of automatic archiving method and device
CN102279784A (en) Electronic equipment and method and system for reminding user of use condition of system resource of electronic equipment
CN110532100A (en) Dispatch method, apparatus, terminal and the storage medium of resource
CN107797851A (en) Method for scheduling task, device and mobile terminal
CN110515721A (en) A kind of application management method, device, terminal and computer storage medium
CN116521350B (en) ETL scheduling method and device based on deep learning algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180313