CN103577267A - Resource distribution method and resource distribution device of vehicle-mounted device - Google Patents

Resource distribution method and resource distribution device of vehicle-mounted device Download PDF

Info

Publication number
CN103577267A
CN103577267A CN201210276027.4A CN201210276027A CN103577267A CN 103577267 A CN103577267 A CN 103577267A CN 201210276027 A CN201210276027 A CN 201210276027A CN 103577267 A CN103577267 A CN 103577267A
Authority
CN
China
Prior art keywords
task
priority
resource
mobile unit
group
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
CN201210276027.4A
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.)
Shanghai Pateo Electronic Equipment Manufacturing Co Ltd
Original Assignee
Shanghai Pateo Electronic Equipment Manufacturing 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 Shanghai Pateo Electronic Equipment Manufacturing Co Ltd filed Critical Shanghai Pateo Electronic Equipment Manufacturing Co Ltd
Priority to CN201210276027.4A priority Critical patent/CN103577267A/en
Publication of CN103577267A publication Critical patent/CN103577267A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a resource distribution method and a resource distribution device of a vehicle-mounted device. The resource distribution method comprises the steps of grouping tasks operating on the vehicle-mounted device; setting priorities for tasks in each group, wherein the tasks in the same group are in the same priority, and the tasks in different groups are in different priorities; carrying out resource scheduling according to the priority of each task, and preferentially distributing a resource for the task in a higher priority. According to the resource distribution method provided by the invention, the resource can be scheduled and distributed according to high/low priorities, and the task in the higher priority can be in smooth operating.

Description

The resource allocation methods of mobile unit and device
Technical field
The present invention relates to a kind of resource allocation methods and device of mobile unit.
Background technology
Along with the continuous increase of automobile pollution, the use of mobile unit with functions such as navigation, media play is also more and more extensive.In prior art, in mobile unit, the distribution of the resource of each task is impartial, coequally the resource request of each task is responded.But, adopt impartial mode of distributing, may cause some to user more importantly task can not be assigned in time enough resources.For example, the task of foreground and running background is impartial Resources allocation, therefore when background application is many, task is when heavier, the operation of foreground task will be slow, as video playback/audio frequency, broadcasting there will be pause, discontinuous.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of resource allocation methods and device of mobile unit, can to resource, carry out dispatching distribution according to the height of priority, and the task that assurance priority is higher can smooth be moved.
For solving the problems of the technologies described above, the invention provides a kind of resource allocation methods of mobile unit, comprising:
Moving on mobile unit of task is divided into groups;
For the task setting priority in each group, the task in same group has identical priority, and the task in does not on the same group have different priority;
According to the priority of each task, carry out scheduling of resource, be preferably the task Resources allocation that priority is higher.
Alternatively, moving on mobile unit of task is divided into groups to comprise: the task of mobile unit front stage operation is incorporated into as foreground group, the task of running background is incorporated into as backstage group.
Alternatively, for the task setting priority in each group comprises: being the first priority by the priority level initializing of the task in the group of described foreground, is the second priority by the priority level initializing of the task in the group of described backstage, and described the first priority is higher than the second priority.
Alternatively, described method also comprises: if the resource that the available resources of described mobile unit are fully occupied and the task requests of described front stage operation is new, discharge the resource that the task of described running background has taken, and the resource of release is distributed to the task of described front stage operation.
Alternatively, described resource comprises CPU time, Installed System Memory and/or the network bandwidth.
The present invention also provides a kind of resource allocation device of mobile unit, comprising:
Grouping module, divides into groups to moving on mobile unit of task;
Priority level initializing module, is the task setting priority in each group, and the task in same group has identical priority, and the task in does not on the same group have different priority;
Scheduling of resource module, carries out scheduling of resource according to the priority of each task, is preferably the task Resources allocation that priority is higher.
Alternatively, described grouping module incorporates the task of mobile unit front stage operation into foreground group into, and the task of running background is incorporated into as backstage group.
Alternatively, described priority level initializing module is the first priority by the priority level initializing of the task in the group of described foreground, by the priority level initializing of the task in the group of described backstage, is the second priority, and described the first priority is higher than the second priority.
Alternatively, described device also comprises:
Resource release module, the resource that if the available resources of described mobile unit are fully occupied and the task requests of described front stage operation is new, discharge the resource that the task of described running background has taken, described scheduling of resource module is distributed to the resource of release the task of described front stage operation.
Alternatively, described resource comprises CPU time, Installed System Memory and/or the network bandwidth.
Compared with prior art, the present invention has the following advantages:
In the resource allocation methods of the mobile unit of the embodiment of the present invention and device, moving in mobile unit of task is divided into groups and each group is set to priority, the priority of task that priority is higher obtains requested resource, thereby can smooth move.
Further, the resource allocation methods of the mobile unit of the embodiment of the present invention and device incorporate the task of front stage operation into foreground group into, the task of running background is incorporated into as backstage group, the task of front stage operation normally to user more importantly, thereby the task in the group of foreground has the first higher priority, assurance foreground task can preferentially be obtained more resource, thereby when multitask moves simultaneously, guarantees the smoothness operation of foreground application, is conducive to improve user's experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of resource allocation methods of the mobile unit of the embodiment of the present invention;
Fig. 2 is the structured flowchart of resource allocation device of the mobile unit of the embodiment of the present invention.
Embodiment
Below in conjunction with specific embodiments and the drawings, the invention will be further described, but should not limit the scope of the invention with this.
With reference to figure 1, the resource allocation methods of the mobile unit of the present embodiment comprises:
Step S11, divides into groups to moving on mobile unit of task;
Step S12, is the task setting priority in each group, and the task in same group has identical priority, and the task in does not on the same group have different priority;
Step S13, carries out scheduling of resource according to the priority of each task, is preferably the task Resources allocation that priority is higher.
In step S11, the grouping process of task can be divided according to the attribute of task itself, in the present embodiment, the task of mobile unit front stage operation is incorporated into into foreground group, and the task of running background is incorporated into as backstage group.Wherein the task of front stage operation is included in the task that mobile unit current interface shows and moves, and the task of front stage operation also comprises as some services such as media services (mediaserver) in addition.
Further, further refinement of grouping process, such as by foreground group Further Division being real-time Communication for Power set of applications (application such as voice call, video calling, navigation), multimedia application group (application such as audio frequency broadcasting, video playback).
Certainly, in other embodiments, also can adopt other modes to divide into groups, for example, by using, wish that the application of Real-time Obtaining result is divided into one group, as application such as navigation, voice calls; Can postpone the application of obtaining result and be divided into one group, as application such as Emails.
In step S12, be the different priority of the task setting in each group, the task in same group has identical priority, and the task in does not on the same group have different priority.The setting of priority is to carry out for user's importance according to each task in group.For example in the present embodiment, the task in the group of foreground is at front stage operation and be and dedicate user to, thereby it has the first higher priority; Correspondingly, the task in the group of backstage has the second lower priority.
According to the difference of specific embodiment, if group further refinement in foreground is grouped into real-time Communication for Power set of applications and multimedia application group, the priority of the task in real-time Communication for Power set of applications can be higher than the task in multimedia application group, so that resource can be assigned to more in time, meet the demand of user's real-time Communication for Power.
In step S13, according to the priority of each task of mobile unit operation, the resource of mobile unit is dispatched, be preferably the task Resources allocation that priority is higher, the task that assurance priority is higher can smooth be moved.Wherein, the resource of mobile unit can comprise CPU time, Installed System Memory and/or the network bandwidth etc.It is to grip according to the priority of task that scheduling of resource is distributed, and for example, when foreground task and background task all need to take more CPU time, preferentially guarantees that foreground task obtains more CPU time.The priority of the task in same group is identical, divides each other resource equally, for example, divide CPU time equally.
If the available resources of mobile unit are fully occupied, and task in the group of foreground continues the resource of request letter, can discharge the resource that the task in the group of backstage had previously taken so, the resource of release can be whole resources of taking of background task or be only a part wherein.The resource of release can be distributed to the task of front stage operation afterwards, unaffected to guarantee the task of front stage operation.For example the performance at mobile unit is lower, resource is relatively and in inadequate situation, and the audio frequency and video that guarantee front stage operation are play application and preferentially obtained required resource (as CPU time), thereby make the broadcasting of audio/video can't occur break.
As a nonrestrictive example, the release of backstage resource can be carried out in the following way: the cgroup scheduling strategy in employing linux kernel (kernel) limits the use of the resources such as CPU time.
With reference to figure 2, the resource allocation device 20 of the mobile unit of the present embodiment comprises: grouping module 201, priority level initializing module 202, scheduling of resource module 203 and resource release module 204.
Wherein, moving on 201 pairs of mobile units of grouping module of task is divided into groups.In the present embodiment, grouping module 201 incorporates the task of mobile unit front stage operation into foreground group into, and the task of running background is incorporated into as backstage group.Certainly, the mode of grouping is not limited to Zu He backstage, foreground group, also can adopt other modes to divide into groups or the further refinement of the task in the group of Zu He backstage, foreground is divided into groups.
Priority level initializing module 202 is the task setting priority in each group, and wherein the task in same group has identical priority, and the task in does not on the same group have different priority.In the present embodiment, priority level initializing module 202 is to have the first higher priority by the task setting in the group of foreground, by the task setting in the group of backstage, is to have the second lower priority.
Scheduling of resource module 203 is carried out scheduling of resource according to the priority of each task of current operation to the resource 21 of mobile unit, is preferably the task Resources allocation that priority is higher.Wherein, the resource 21 of mobile unit can comprise CPU time, Installed System Memory and/or the network bandwidth etc.
Resource release module 204 is when the resource that the resource 21 of mobile unit is fully occupied and the task requests of front stage operation is new, the resource that the task of release running background has taken, by scheduling of resource module 203, the resource of release is dispensed to the task of front stage operation, preferentially meets the operation of foreground task.
More detailed contents about the course of work of resource allocation device 20, please refer to the description of resource allocation methods in previous embodiment, repeat no more here.
Although the present invention with preferred embodiment openly as above; but it is not for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can make possible change and modification, so protection scope of the present invention should be as the criterion with the scope that the claims in the present invention were defined.

Claims (10)

1. a resource allocation methods for mobile unit, is characterized in that, comprising:
Moving on mobile unit of task is divided into groups;
For the task setting priority in each group, the task in same group has identical priority, and the task in does not on the same group have different priority;
According to the priority of each task, carry out scheduling of resource, be preferably the task Resources allocation that priority is higher.
2. the resource allocation methods of mobile unit according to claim 1, is characterized in that, moving on mobile unit of task is divided into groups to comprise: the task of mobile unit front stage operation is incorporated into as foreground group, the task of running background is incorporated into as backstage group.
3. the resource allocation methods of mobile unit according to claim 2, it is characterized in that, for the task setting priority in each group comprises: be the first priority by the priority level initializing of the task in the group of described foreground, by the priority level initializing of the task in the group of described backstage, be the second priority, described the first priority is higher than the second priority.
4. the resource allocation methods of mobile unit according to claim 2, it is characterized in that, also comprise: if the resource that the available resources of described mobile unit are fully occupied and the task requests of described front stage operation is new, discharge the resource that the task of described running background has taken, and the resource of release is distributed to the task of described front stage operation.
5. according to the resource allocation methods of the mobile unit described in any one in claim 1 to 4, it is characterized in that, described resource comprises CPU time, Installed System Memory and/or the network bandwidth.
6. a resource allocation device for mobile unit, is characterized in that, comprising:
Grouping module, divides into groups to moving on mobile unit of task;
Priority level initializing module, is the task setting priority in each group, and the task in same group has identical priority, and the task in does not on the same group have different priority;
Scheduling of resource module, carries out scheduling of resource according to the priority of each task, is preferably the task Resources allocation that priority is higher.
7. the resource allocation device of mobile unit according to claim 6, is characterized in that, described grouping module incorporates the task of mobile unit front stage operation into foreground group into, and the task of running background is incorporated into as backstage group.
8. the resource allocation device of mobile unit according to claim 7, it is characterized in that, described priority level initializing module is the first priority by the priority level initializing of the task in the group of described foreground, by the priority level initializing of the task in the group of described backstage, be the second priority, described the first priority is higher than the second priority.
9. the resource allocation device of mobile unit according to claim 7, is characterized in that, also comprises:
Resource release module, the resource that if the available resources of described mobile unit are fully occupied and the task requests of described front stage operation is new, discharge the resource that the task of described running background has taken, described scheduling of resource module is distributed to the resource of release the task of described front stage operation.
10. according to the resource allocation device of the mobile unit described in any one in claim 6 to 9, it is characterized in that, described resource comprises CPU time, Installed System Memory and/or the network bandwidth.
CN201210276027.4A 2012-08-03 2012-08-03 Resource distribution method and resource distribution device of vehicle-mounted device Pending CN103577267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210276027.4A CN103577267A (en) 2012-08-03 2012-08-03 Resource distribution method and resource distribution device of vehicle-mounted device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210276027.4A CN103577267A (en) 2012-08-03 2012-08-03 Resource distribution method and resource distribution device of vehicle-mounted device

Publications (1)

Publication Number Publication Date
CN103577267A true CN103577267A (en) 2014-02-12

Family

ID=50049106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210276027.4A Pending CN103577267A (en) 2012-08-03 2012-08-03 Resource distribution method and resource distribution device of vehicle-mounted device

Country Status (1)

Country Link
CN (1) CN103577267A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282854A (en) * 2015-11-23 2016-01-27 重庆大学 Safety information transmission method among vehicles in cluster on the basis of vehicle health state
WO2017113688A1 (en) * 2015-12-31 2017-07-06 乐视控股(北京)有限公司 Resource allocation method and device
CN107291557A (en) * 2017-08-02 2017-10-24 中国银行股份有限公司 A kind of method and device for business processing
CN108647900A (en) * 2018-05-18 2018-10-12 北京科技大学 A kind of region partitioning method applied to hydrological simulation field
CN108834157A (en) * 2018-04-27 2018-11-16 努比亚技术有限公司 Internet wide band distribution, mobile terminal and computer readable storage medium
CN109302333A (en) * 2018-11-13 2019-02-01 奇酷互联网络科技(深圳)有限公司 A kind of uplink resource allocating method, user equipment and the device with store function
CN109684090A (en) * 2018-12-19 2019-04-26 三星电子(中国)研发中心 A kind of resource allocation methods and device
CN109783236A (en) * 2019-01-16 2019-05-21 北京百度网讯科技有限公司 Method and apparatus for output information
CN109857561A (en) * 2019-02-12 2019-06-07 武汉深之度科技有限公司 A kind of EMS memory management process and calculate equipment
CN110166767A (en) * 2019-06-26 2019-08-23 湖北亿咖通科技有限公司 A kind of the picture quality adjusting method and device of the unused resource of combination vehicle device
CN110311965A (en) * 2019-06-21 2019-10-08 长沙学院 Method for scheduling task and system under a kind of cloud computing environment
CN110413417A (en) * 2019-08-02 2019-11-05 广州小鹏汽车科技有限公司 The running optimizatin methods, devices and systems of onboard system process
CN110471713A (en) * 2019-08-15 2019-11-19 深圳开立生物医疗科技股份有限公司 A kind of ultrasonic system method for managing resource and device
CN110764890A (en) * 2019-10-21 2020-02-07 深圳金蝶账无忧网络科技有限公司 Computing resource scheduling method, system and related equipment
CN114519480A (en) * 2020-11-20 2022-05-20 炬星科技(深圳)有限公司 Resource allocation method, equipment and storage medium for multi-robot navigation
CN117130773A (en) * 2023-04-28 2023-11-28 荣耀终端有限公司 Resource allocation method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007164713A (en) * 2005-12-16 2007-06-28 Matsushita Electric Ind Co Ltd Device and method for managing resource
CN101751289A (en) * 2008-12-19 2010-06-23 黄强 Mixed scheduling method of embedded real-time operating system
CN102081366A (en) * 2011-01-20 2011-06-01 浙江吉利汽车研究院有限公司 Task scheduling method for complete vehicle controller of hybrid electric vehicle
CN102135906A (en) * 2011-03-18 2011-07-27 深圳市民德电子科技有限公司 Power consumption control method and system orienting to embedded real-time operating system
EP2400732A1 (en) * 2010-06-24 2011-12-28 LG Electronics Inc. Mobile terminal and method of controlling a group operation therein

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007164713A (en) * 2005-12-16 2007-06-28 Matsushita Electric Ind Co Ltd Device and method for managing resource
CN101751289A (en) * 2008-12-19 2010-06-23 黄强 Mixed scheduling method of embedded real-time operating system
EP2400732A1 (en) * 2010-06-24 2011-12-28 LG Electronics Inc. Mobile terminal and method of controlling a group operation therein
CN102081366A (en) * 2011-01-20 2011-06-01 浙江吉利汽车研究院有限公司 Task scheduling method for complete vehicle controller of hybrid electric vehicle
CN102135906A (en) * 2011-03-18 2011-07-27 深圳市民德电子科技有限公司 Power consumption control method and system orienting to embedded real-time operating system

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282854B (en) * 2015-11-23 2018-11-16 重庆大学 Secure messaging methods between vehicle in cluster based on vehicle health state
CN105282854A (en) * 2015-11-23 2016-01-27 重庆大学 Safety information transmission method among vehicles in cluster on the basis of vehicle health state
WO2017113688A1 (en) * 2015-12-31 2017-07-06 乐视控股(北京)有限公司 Resource allocation method and device
CN107291557B (en) * 2017-08-02 2020-10-23 中国银行股份有限公司 Service processing method and device
CN107291557A (en) * 2017-08-02 2017-10-24 中国银行股份有限公司 A kind of method and device for business processing
CN108834157A (en) * 2018-04-27 2018-11-16 努比亚技术有限公司 Internet wide band distribution, mobile terminal and computer readable storage medium
CN108647900A (en) * 2018-05-18 2018-10-12 北京科技大学 A kind of region partitioning method applied to hydrological simulation field
CN108647900B (en) * 2018-05-18 2022-03-11 北京科技大学 Region division method applied to hydrological simulation field
CN109302333A (en) * 2018-11-13 2019-02-01 奇酷互联网络科技(深圳)有限公司 A kind of uplink resource allocating method, user equipment and the device with store function
CN109684090A (en) * 2018-12-19 2019-04-26 三星电子(中国)研发中心 A kind of resource allocation methods and device
CN109783236A (en) * 2019-01-16 2019-05-21 北京百度网讯科技有限公司 Method and apparatus for output information
CN109783236B (en) * 2019-01-16 2021-08-24 北京百度网讯科技有限公司 Method and apparatus for outputting information
CN109857561B (en) * 2019-02-12 2021-03-26 武汉深之度科技有限公司 Memory management method and computing device
CN109857561A (en) * 2019-02-12 2019-06-07 武汉深之度科技有限公司 A kind of EMS memory management process and calculate equipment
CN110311965A (en) * 2019-06-21 2019-10-08 长沙学院 Method for scheduling task and system under a kind of cloud computing environment
CN110166767A (en) * 2019-06-26 2019-08-23 湖北亿咖通科技有限公司 A kind of the picture quality adjusting method and device of the unused resource of combination vehicle device
CN110413417A (en) * 2019-08-02 2019-11-05 广州小鹏汽车科技有限公司 The running optimizatin methods, devices and systems of onboard system process
CN110471713A (en) * 2019-08-15 2019-11-19 深圳开立生物医疗科技股份有限公司 A kind of ultrasonic system method for managing resource and device
CN110764890A (en) * 2019-10-21 2020-02-07 深圳金蝶账无忧网络科技有限公司 Computing resource scheduling method, system and related equipment
CN114519480A (en) * 2020-11-20 2022-05-20 炬星科技(深圳)有限公司 Resource allocation method, equipment and storage medium for multi-robot navigation
CN117130773A (en) * 2023-04-28 2023-11-28 荣耀终端有限公司 Resource allocation method, device and equipment

Similar Documents

Publication Publication Date Title
CN103577267A (en) Resource distribution method and resource distribution device of vehicle-mounted device
CN101572918B (en) Method, device and system for allocating radio resources
CN108462656B (en) Container-based resource scheduling method and device for service convergence deployment
CN108123980B (en) Resource scheduling method and system
CN105592110B (en) Resource scheduling method and device
EP3016355A1 (en) Cloud virtual server scheduling method and device
CN101227416A (en) Method for distributing link bandwidth in communication network
CN103297499A (en) Scheduling method and system based on cloud platform
CN102521057A (en) Resource scheduling method and device
CN106095581B (en) Network storage virtualization scheduling method under private cloud condition
CN101489230A (en) Carrier distribution control method and system
CN106776025A (en) A kind of computer cluster job scheduling method and its device
CN112749002A (en) Method and device for dynamically managing cluster resources
WO2012009881A1 (en) Information presentation method, system and terminal device based on cloud computing
CN106161652A (en) Privately owned cloud platform based on Zstack request and dispatching method thereof
CN102355736B (en) Method and device of determining and packet scheduling of thresholds for invocation
WO2014000463A1 (en) Multimode baseband resource processing method and device
CN114138428A (en) SLO (Simultaneous task oriented) guaranteeing method, device, node and storage medium for multi-priority tasks
CN108738156B (en) Bluetooth service scheduling method, device, equipment and computer readable storage medium
CN202602834U (en) Unified frequency point resource scheduling system based on IPQAM modulation
CN105517172B (en) A kind of business scheduling method and device
CN105187483B (en) Distribute the method and device of cloud computing resources
CN111210286A (en) Tax control server-based efficient invoice issuing method and system
CN103136045A (en) Dispatching method and device of virtualization operating system
CN111294762A (en) Vehicle business processing method based on radio access network RAN slice cooperation

Legal Events

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

Application publication date: 20140212

RJ01 Rejection of invention patent application after publication