CN106155815A - Electric current distribution method in multiple kernels and system - Google Patents

Electric current distribution method in multiple kernels and system Download PDF

Info

Publication number
CN106155815A
CN106155815A CN201610578832.0A CN201610578832A CN106155815A CN 106155815 A CN106155815 A CN 106155815A CN 201610578832 A CN201610578832 A CN 201610578832A CN 106155815 A CN106155815 A CN 106155815A
Authority
CN
China
Prior art keywords
thread
kernel
electric current
distribution
execution time
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
CN201610578832.0A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201610578832.0A priority Critical patent/CN106155815A/en
Publication of CN106155815A publication Critical patent/CN106155815A/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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a kind of electric current distribution method in multiple kernels and system, described method comprises the steps: to obtain the quantity of the thread of each kernel distribution;Obtain the execution time of each thread;Quantity and execution time according to this thread are that each kernel distributes electric current.The technical scheme that the present invention provides has the advantage realizing current internal distribution.

Description

Electric current distribution method in multiple kernels and system
Technical field
The present invention relates to electronic applications, particularly relate to a kind of electric current distribution method in multiple kernels and system.
Background technology
Chip, English is Chip;Chipset is Chipset.Chip generally refers to the carrier of integrated circuit, is also integrated electricity Road result after designing, manufacture, encapsulate, testing, it is common that the independent entirety that can use immediately." chip " and " integrated circuit " the two word often mixes and uses, and such as in everybody usual discussion topic, IC design and chip set What meter was said is a meaning, and chip industry, integrated circuit industry, IC industry are the most also meanings.It practice, the two word It is related, also has any different.Integrated circuit entity because the integrated circuit of narrow sense, to be often to emphasize presented in chip Circuit itself is such as simple to only five phaseshift oscillators that element is joined together to form, when it also presents on drawing When, we can also be its integrated circuit, and when we to take this little integrated circuit apply when, it must be with One piece of independent material object, or be embedded in bigger integrated circuit, rely on chip to play his effect;Integrated circuit is more The weight design of circuit and placement-and-routing, chip more accentuator circuit integrated, produce and encapsulate.And the integrated circuit of broad sense, when relating to And during to industry (being different from other industry), it is also possible to comprise the various implications that chip is relevant.
Existing electronic chip all has multiple kernel, but existing electronic chip distributes not for the electric current of multiple kernels There is corresponding scheme.
Summary of the invention
Thering is provided a kind of electric current distribution method in multiple kernels, which solve prior art cannot realize electric current many The shortcoming of the distribution in individual kernel.
On the one hand, it is provided that a kind of electric current distribution method in multiple kernels, described method comprises the steps:
Obtain the quantity of the thread of each kernel distribution;
Obtain the execution time of each thread;
Quantity and execution time according to this thread are that each kernel distributes electric current.
Optionally, described method also includes:
Electric current such as this kernel reaches higher limit, then stop distributing thread to this kernel.
Optionally, described method also includes:
Dynamically update the Thread Count scale of each kernel.
Second aspect, it is provided that a kind of electric current distribution system in multiple kernels, described system includes:
Processing units, for obtaining the quantity of the thread of each kernel distribution;
Time quantum, for obtaining the execution time of each thread;
Allocation unit, is used for the quantity according to this thread and the execution time is that each kernel distributes electric current.
Optionally, described system also includes:
Stop element, reaches higher limit for the electric current such as this kernel, then stop distributing thread to this kernel.
Optionally, described system also includes:
Updating block, for dynamically updating the Thread Count scale of each kernel.
The technical scheme that the specific embodiment of the invention provides obtains the quantity of the thread of each kernel distribution, obtains each The execution time of thread, quantity and execution time according to this thread are that each kernel distributes electric current, so it has realization The advantage of electric current distribution in multiple kernels.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
The flow chart of a kind of electric current that Fig. 1 provides for present invention distribution method in multiple kernels;
The structure chart of a kind of electric current that Fig. 2 provides for present invention distribution system in multiple kernels.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise Embodiment, broadly falls into the scope of protection of the invention.
A kind of electric current provided for the present invention the first better embodiment refering to Fig. 1, Fig. 1 distribution side in multiple kernels The flow chart of method, the method is completed by electronic chip, and the method is as it is shown in figure 1, comprise the steps:
Step S101, obtain the quantity of thread of each kernel distribution;
Step S102, obtain execution time of each thread;
Step S103, it is that each kernel distributes electric current according to the quantity of this thread and execution time.
The technical scheme that the specific embodiment of the invention provides obtains the quantity of the thread of each kernel distribution, obtains each The execution time of thread, quantity and execution time according to this thread are that each kernel distributes electric current, so it has realization The advantage of electric current distribution in multiple kernels.
Optionally, said method can also include after step s 103:
Electric current such as this kernel reaches higher limit, then stop distributing thread to this kernel.
Optionally, said method can also include after step s 103:
Dynamically update the Thread Count scale of each kernel.
A kind of electric current provided for the present invention the second better embodiment refering to Fig. 2, Fig. 2 distribution system in multiple kernels System, this system includes:
Processing units 201, for obtaining the quantity of the thread of each kernel distribution;
Time quantum 202, for obtaining the execution time of each thread;
Allocation unit 203, is used for the quantity according to this thread and the execution time is that each kernel distributes electric current.
The technical scheme that the specific embodiment of the invention provides obtains the quantity of the thread of each kernel distribution, obtains each The execution time of thread, quantity and execution time according to this thread are that each kernel distributes electric current, so it has realization The advantage of electric current distribution in multiple kernels.
Optionally, said system can also include:
Stop element 204, reaches higher limit for the electric current such as this kernel, then stop distributing thread to this kernel.
Optionally, said system can also include:
Updating block 205, for dynamically updating the Thread Count scale of each kernel.
It should be noted that for aforesaid each method embodiment or embodiment, in order to be briefly described, therefore by its all table Stating as a series of combination of actions, but those skilled in the art should know, the present invention is not by described sequence of movement Restriction, because of according to the present invention, some step can use other orders or carry out simultaneously.Secondly, people in the art Member also should know, embodiment described in the specification or embodiment belong to preferred embodiment, involved action and list Necessary to the unit not necessarily present invention.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiments.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.This area The feature of the different embodiments described in this specification and different embodiment can be combined or combine by technical staff.
Through the above description of the embodiments, those skilled in the art it can be understood that to the present invention permissible Realize with hardware, or firmware realizes, or combinations thereof mode realizes.When implemented in software, can be by above-mentioned functions It is stored in computer-readable medium or is transmitted as the one or more instructions on computer-readable medium or code.Meter Calculation machine computer-readable recording medium includes computer-readable storage medium and communication media, and wherein communication media includes being easy to from a place to another The individual local any medium transmitting computer program.Storage medium can be any usable medium that computer can access.With As a example by this but be not limited to: computer-readable medium can include random access memory (Random Access Memory, RAM), read only memory (Read-Only Memory, ROM), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storage, magnetic disk storage medium or other magnetic storage apparatus or can be used in Carry or store and there is instruction or the desired program code of data structure form can be by any other of computer access Medium.In addition.Any connection can be suitable become computer-readable medium.Such as, if software is to use coaxial cable, light Fine optical cable, twisted-pair feeder, Digital Subscriber Line (Digital Subscriber Line, DSL) or such as infrared ray, radio and The wireless technology of microwave etc from website, server or other remote source, then coaxial cable, optical fiber cable, double The wireless technology of twisted wire, DSL or such as infrared ray, wireless and microwave etc be included in affiliated medium fixing in.Such as this Bright used, dish (Disk) and dish (disc) include compress laser disc (CD), laser dish, laser disc, Digital Versatile Disc (DVD), Floppy disk and Blu-ray Disc, the duplication data of the usual magnetic of its mid-game, dish then carrys out the duplication data of optics with laser.Group above Close within should also be as being included in the protection domain of computer-readable medium.
In a word, the foregoing is only the preferred embodiment of technical solution of the present invention, be not intended to limit the present invention's Protection domain.All within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included in Within protection scope of the present invention.

Claims (6)

1. the electric current distribution method in multiple kernels, it is characterised in that described method comprises the steps:
Obtain the quantity of the thread of each kernel distribution;
Obtain the execution time of each thread;
Quantity and execution time according to this thread are that each kernel distributes electric current.
Method the most according to claim 1, it is characterised in that described method also includes:
Electric current such as this kernel reaches higher limit, then stop distributing thread to this kernel.
Method the most according to claim 1, it is characterised in that described method also includes:
Dynamically update the Thread Count scale of each kernel.
4. the electric current distribution system in multiple kernels, it is characterised in that described system includes:
Processing units, for obtaining the quantity of the thread of each kernel distribution;
Time quantum, for obtaining the execution time of each thread;
Allocation unit, is used for the quantity according to this thread and the execution time is that each kernel distributes electric current.
System the most according to claim 4, it is characterised in that described system also includes:
Stop element, reaches higher limit for the electric current such as this kernel, then stop distributing thread to this kernel.
System the most according to claim 4, it is characterised in that described system also includes:
Updating block, for dynamically updating the Thread Count scale of each kernel.
CN201610578832.0A 2016-07-21 2016-07-21 Electric current distribution method in multiple kernels and system Pending CN106155815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610578832.0A CN106155815A (en) 2016-07-21 2016-07-21 Electric current distribution method in multiple kernels and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610578832.0A CN106155815A (en) 2016-07-21 2016-07-21 Electric current distribution method in multiple kernels and system

Publications (1)

Publication Number Publication Date
CN106155815A true CN106155815A (en) 2016-11-23

Family

ID=58059362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610578832.0A Pending CN106155815A (en) 2016-07-21 2016-07-21 Electric current distribution method in multiple kernels and system

Country Status (1)

Country Link
CN (1) CN106155815A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014299A1 (en) * 2016-07-21 2018-01-25 张升泽 Method and system for distributing current in a plurality of cores

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076770A (en) * 2004-09-28 2007-11-21 英特尔公司 Method and apparatus for varying energy per instruction according to the amount of available parallelism
CN101727172A (en) * 2008-10-27 2010-06-09 联想(北京)有限公司 Method and device for measuring process consumption of computer, and computer system
US20120287831A1 (en) * 2011-05-11 2012-11-15 Qualcomm Incorporated Reducing power consumption in multi-threaded processor mobile devices
CN103502946A (en) * 2011-04-05 2014-01-08 高通股份有限公司 Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
CN105492993A (en) * 2013-08-08 2016-04-13 高通股份有限公司 Intelligent multicore control for optimal performance per watt

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076770A (en) * 2004-09-28 2007-11-21 英特尔公司 Method and apparatus for varying energy per instruction according to the amount of available parallelism
CN101727172A (en) * 2008-10-27 2010-06-09 联想(北京)有限公司 Method and device for measuring process consumption of computer, and computer system
CN103502946A (en) * 2011-04-05 2014-01-08 高通股份有限公司 Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
US20120287831A1 (en) * 2011-05-11 2012-11-15 Qualcomm Incorporated Reducing power consumption in multi-threaded processor mobile devices
CN105492993A (en) * 2013-08-08 2016-04-13 高通股份有限公司 Intelligent multicore control for optimal performance per watt

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014299A1 (en) * 2016-07-21 2018-01-25 张升泽 Method and system for distributing current in a plurality of cores

Similar Documents

Publication Publication Date Title
CN106227606A (en) The method and system of many interval distribution electronic chip voltages
CN106203927A (en) Air Logistics flight selection method and system
CN106250238A (en) Load balancing application process in multi core chip and system
CN106201725A (en) The power realization method and system of multi core chip
CN106292976A (en) Electronic chip builtin voltage distribution method and system
CN106056837A (en) Noise alarm method and system of electronic chip
CN106155815A (en) Electric current distribution method in multiple kernels and system
CN106292950A (en) Many interval temperature values are in the application process of multi core chip and system
CN106250235A (en) Multi-task scheduling methods based on many core chip and system
CN106200740A (en) The voltage modulated method and system of electronic chip
CN106202773A (en) The noise modulated method and system of electronic chip
CN106201726A (en) Many core chip thread distribution method and system
CN106227603A (en) The power calculation algorithms of multiple core chip and system
CN106199149A (en) The electric current alarm method of electronic chip and system
CN106294063A (en) Temperature-controlled process based on chip and system
CN106293935A (en) Electric current is in the how interval distribution method within multi core chip and system
CN106093522A (en) The electric current method for drafting of electronic chip and system
CN106201728A (en) Power distribution methods based on many interval distribution and system
CN106018933A (en) Electronic chip voltage alarming method and system
CN106292996A (en) Voltage based on multi core chip reduces method and system
CN106292995A (en) Application process that electric current is limited in multi core chip and system
CN106227604A (en) In chip, temperature reduces method and system
CN106227312A (en) The how interval ventilation control method of electronic chip and system
CN106199134A (en) The information of voltage sending method of electronic chip and system
CN106095343A (en) The power storage method and system of electronic chip

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

RJ01 Rejection of invention patent application after publication