CN103927226B - Setting method and electronic device are replied in electronic device dormancy - Google Patents

Setting method and electronic device are replied in electronic device dormancy Download PDF

Info

Publication number
CN103927226B
CN103927226B CN201310013872.7A CN201310013872A CN103927226B CN 103927226 B CN103927226 B CN 103927226B CN 201310013872 A CN201310013872 A CN 201310013872A CN 103927226 B CN103927226 B CN 103927226B
Authority
CN
China
Prior art keywords
electronic device
dormancy
priority
work
shelves
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.)
Expired - Fee Related
Application number
CN201310013872.7A
Other languages
Chinese (zh)
Other versions
CN103927226A (en
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.)
MStar Software R&D Shenzhen Ltd
MStar Semiconductor Inc Taiwan
Original Assignee
MStar Software R&D Shenzhen Ltd
MStar Semiconductor Inc Taiwan
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 MStar Software R&D Shenzhen Ltd, MStar Semiconductor Inc Taiwan filed Critical MStar Software R&D Shenzhen Ltd
Priority to CN201310013872.7A priority Critical patent/CN103927226B/en
Publication of CN103927226A publication Critical patent/CN103927226A/en
Application granted granted Critical
Publication of CN103927226B publication Critical patent/CN103927226B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Setting method is replied the present invention relates to a kind of electronic device dormancy and the electronic device of mechanism is replied with dormant state and dormancy, which replys setting method, is used on an electronic device, comprising:Before the electronic device enters a dormant state, give the electronic device multinomial work in execution different priority;Store multiple impression shelves of those work;And when the electronic device is replied from the dormant state, first read and be loaded into the impression shelves of the higher work of priority.

Description

Setting method and electronic device are replied in electronic device dormancy
Technical field
The present invention is related to electronic device dormancy and replys setting method answering method and with dormant state and dormancy The electronic device of reply mechanism, particularly with regard to different operating (task) is set different priority and according to this priority come The electronic device dormancy for reading impression shelves replys setting method and the electronics dress of mechanism is replied with dormant state and dormancy It puts.
Background technology
Electronic device is in addition to normal switching on and shutting down program now, it will usually have a dormancy mechanism, to make electronic device Into a dormant state (Suspend to disk).Under dormant state, all elements of electronic device, which can all close, to be entered Before dormant state, electronic device work in execution can be noted down and generate and store a dormancy impression shelves.It is replied from dormant state When, it can read and be loaded into this dormancy impression shelves, then be reverted back to electronic device into dormant state according to this dormancy impression shelves Preceding state.
Since there is storable dormancy impression shelves certain size to limit, some prior arts penetrate default algorithm The partial memory page in dormancy impression shelves is moved to storage in the Substitution Spaces (swap space) of hard disk, until dormant state Reply after the completion of, then with the usual page fault of virtual memory (page fault) process flow be loaded into, to solve to deposit The problem of reservoir is insufficient.Though this prior art can effectively solve the problems, such as that memory is insufficient, through page fault (page Fault) locked memory pages that process flow is loaded into hard disk inevitably will cause some to delay during normal perform (lag).Moreover, some dormant technologies are since the design of its mechanism by the data of substantial amounts of locked memory pages, it is necessary to be put into displacement In space, such way may also cause more delay.For example, in known dormant technology Software Suppend Algorithm in, it is necessary to the locked memory pages for having total quantity at least 1/2 are placed into Substitution Spaces.
Some known dormant technologies, such as TuxOnIce, can reduce the locked memory pages that must be placed into Substitution Spaces Quantity (be less than 1/2), but still have to read and be completely loaded the dormancy impression shelves corresponding to all working, electronics dress together It puts and may exit dormant state and start to perform all work.Therefore, the reply of dormant state must expend longer time.When When work in execution is more, this situation can become apparent from.The dormancy reply that electronic device can thus be allowed is quite inefficent, Because its importance of all work differs, but more important work must still wait all work that could be transported after all replying and perform Make.
The content of the invention
Therefore, one object of the present invention replys setting method to provide a kind of quick dormancy of electronic device.
Another object of the present invention is that provide can be from the electronic device of dormant state Quick-return.
One embodiment of the invention discloses a kind of electronic device dormancy and replys setting method, is used in an electronic device On, comprising:In the electronic device into before a dormant state, giving the electronic device multinomial work in execution different preferential Power;Store multiple impression shelves of those work;And it when the electronic device is replied from the dormant state, first reads and is loaded into excellent First weigh the impression shelves of the higher work.
Another embodiment of the present invention discloses a kind of electronic device that mechanism is replied with dormant state and dormancy, bag Contain:One storage device;An and control unit;If wherein the control unit receives a dormancy instruction, which can make The electronic device enters a dormant state, which gives electronics dress before the electronic device enters the dormant state The different priority of multinomial work in execution is put, and the control unit can store multiple impression shelves of those work to the storage Cryopreservation device, and when the electronic device is replied from the dormant state, first read and be loaded into the print of the higher work of priority As shelves.
According to foregoing embodiment, electronic device dormancy provided by the present invention replys setting method because the print that will be worked Different priority is distinguished into as shelves and is first read the impression shelves of the higher work of priority when replying and is replied, without etc. It treats other less important work, the dormancy turnaround time of the higher work of priority can be reduced.It is held when into dormant state Effectiveness is more notable when the quantity that works in row is more.
Description of the drawings
Fig. 1 depicts the block diagram of electronic device according to an embodiment of the invention.
Fig. 2 depicts the flow chart of electronic device shown in FIG. 1.
Fig. 3 depicts the flow chart that setting method is replied in electronic device dormancy according to an embodiment of the invention.
Fig. 4 depicts the electronic device that setting method and known technology are replied in electronic device dormancy provided by the present invention The efficiency schematic diagram of setting method is replied in dormancy.
Main element symbol description
100 electronic devices
101 storage devices
103 control units
201-217,301-305 step
Specific embodiment
The embodiment of the present invention is will be detailed below, is with known dormant technology below in an example Based on Tuxonice, but restriction can only not use this dormant technology.Fig. 1 depicts electronics according to an embodiment of the invention The block diagram of device 100, electronic device 100 can be a computer apparatus or be only capable of performing the electronic device such as electricity of specific function Depending on data processing equipment or video-audio playing device.Wherein TV data processing unit refers to the processing unit such as TV box etc, It can receive and process TV data, make a display broadcasting channel data, and can show a list of television programmes over the display It is single.And video-audio playing device refers to the device of DVD player or music player etc, to play various video/audio archives.Such as Shown in Fig. 1, electronic device 100 contains a storage device 101 and a control unit 103.If control unit 103 receives one Dormancy instruction SC, control unit 103 can make electronic device 100 enter a dormant state.In one embodiment, this dormancy instruction is It is inputted, but is not limited through user's interface (such as keyboard or slide-mouse) by a user.Control unit 103 is also possible to Electronic device 100 is made to enter a dormant state in the case of not receiving dormancy instruction, such as when electronic device 100 is idle too long. Control unit 103, can stopping 100 work in execution (task) of electronic device before electronic device 100 enters dormant state Dormancy impression shelves are stored to storage device 101, and control unit 103 can define and the priority for these work of classifying, and dormancy is printed Multiple impression shelves regions are divided into region as stored by shelves, and different impression shelves region storages are corresponding to the work of different priority Make.When electronic device 100 is replied from the dormant state, first read and be loaded into the impression shelves region of the higher work of priority. Through this classification process, the turnaround time of the high work of priority can be done sth. in advance.In an embodiment, control unit 103 is in classification It is more supported outside flow and preloads (prefetch) function, the work for making the execution priority after the completion of loading of electronic device 100 high is same When, preload the relatively low work of priority, and can be during the reply of the high work of priority be effectively shortened while, take into account entirety During needed for recovery process.In another embodiment, by input/output (I/O) bandwidth made full use of during replying, control Unit 103 processed is preloaded into the locked memory pages for the Substitution Spaces for being stored in hard disk during reply so that reduction dormancy impression While shelves, additionally do not cause to delay during normal perform.
Fig. 2 depicts the flow chart of electronic device shown in FIG. 1.In this embodiment, Fig. 2 contains the following steps:
Step 201
103 electronic device 100 to be made of control unit enters a dormant state.
Step 203
Control unit 103 suspends the processing routine of all working.
Step 205
Control unit 103 sets priority to all working.Please note that same priority may correspond to more than one Work.In one embodiment, it is that work is divided into high, medium and low three kinds of grades, but does not limit.
There are many kind methods for the judgement of pro-jobs power.In one embodiment, (recently can be used according to nearest Used information) judges priority.If that is, the time point that a job is processed receives closer to control unit 103 The time point of 100 dormant state to be entered of dormancy instruction or electronic device, then control unit 103 give this work higher preferential Power.
In another embodiment, if a job is higher with default specific function degree of correlation, control unit 103 gives this The higher priority of work.For example, if electronic device 100 is previously described TV data processing unit, can define The higher work with the functional dependency of one TV list of display, priority is set to higher.For another example, if electronic device 100 be previously described video-audio playing device, then can define the priority with playing the higher work of audio-visual functional dependency It is set to higher.
Step 207
Generating and corresponding to storage record has the dormancy impression shelves of those work and corresponding priority.As previously mentioned, Yu Yishi It applies in example, work is divided into high, medium and low three kinds of grades, therefore work is also divided into three groups and corresponds respectively to three storage page groups It closes (page set).For the angle of memory storage, the region stored by dormancy impression shelves is divided into multiple impression shelves Region, different impression shelves region storages are corresponding to the work of different priority.Each storage page combination is to correspond to different impression The information for the memory page (memory page) that shelves region is included.That is, dormancy impression shelves contain in itself it is each work with And its corresponding storage page combination, and each work is deposited in its storage page being classified and combines corresponding impression respectively Shelves region.In one embodiment, this step also includes the Substitution Spaces that the partial memory page is write to hard disk, to reduce not Dormancy impression shelves.
Step 209
It decides whether into dormant state.If then entering step 211, if otherwise entering step 213.
Step 211
Closing system simultaneously closes all elements to enter dormant state.It so please notes that, the present invention is not limited to use The dormancy method that all elements is allowed all to close also may be used at and an at least element is allowed to be not related in the dormancy method closed.
As previously mentioned, in an embodiment, when electronic device, which enters dormancy, then to be replied from dormancy, control unit can be first It reads impression shelves region of the priority compared with high workload, and (that is, corresponding work is allowed when being loaded into and having read this impression shelves region When 213 restoring function of following step), the impression shelves region of the work with next priority can be also read simultaneously.With foregoing Example for, when be loaded into complete priority be high impression shelves region when, the impression shelves region during priority is can be read, with The impression shelves region for completing reply period preloads.
Step 213
Into reducing program (Thaw process), the work read from different impression shelves regions is reduced.
Step 215
Remove impression shelves information.
Step 217
Return back to normal operating conditions.
According to foregoing embodiment, it can realize that setting method is replied in a dormancy, it comprises steps shown in Fig. 3:
Step 301
Before the electronic device enters a dormant state, the priority for defining electronic device work in execution is (foregoing Step 203,205).
Step 303
Generating and corresponding to storage record has the dormancy impression shelves (abovementioned steps 207) of those work and corresponding priority.
Step 305
When electronic device is replied from dormant state, first read and be loaded into the impression shelves region of the higher work of priority.
Other detailed steps can be pushed away by previous embodiment, therefore details are not described herein.
Fig. 4 depicts the electronic device dormancy reply that setting method and known technology are replied in dormancy provided by the present invention In setting method, the schematic diagram of the dormancy turnaround time of high priority work.It is held when wherein transverse axis is represented into dormant state Work number in row, and the longitudinal axis represents the dormancy turnaround time of high priority work.As shown in figure 4, the Gao You of known technology First weighing the dormancy turnaround time of work can be significantly increased with the quantity to work into being performed during dormant state.But using this The dormancy method of invention makes it be replied from dormant state because more important work can preferentially be read, therefore high priority works Dormancy turnaround time may remain in the value of a stabilization without with the quantity to work into being performed during dormant state and Increase.
According to foregoing embodiment, setting method is replied in electronic device dormancy provided by the present invention can reduce high priority The dormancy turnaround time of work, effectiveness is more notable when the quantity that works in being performed when into dormant state is more.
The foregoing is merely presently preferred embodiments of the present invention, all equivalent changes done according to scope of the present invention patent with Modification should all belong to the covering scope of the present invention.

Claims (16)

1. setting method is replied in a kind of electronic device dormancy, comprising:
Before the electronic device enters a dormant state, multinomial operation setup multiple priority in execution to the electronic device;
It generates and stores a dormancy impression shelves, which includes the multinomial work and the plurality of priority;And
When the electronic device is replied from the dormant state, being loaded into and reducing has a highest priority institute in the plurality of priority A part for the relevant dormancy impression shelves;
Wherein, the region stored by the dormancy impression shelves is divided into multiple impression shelves regions, different impression shelves region storages pair It should be in the work of different priority.
2. setting method is replied in dormancy as described in claim 1, which is characterized in that is also included:
When reducing the part of the dormancy impression shelves, while it is loaded into a correspondence of the multinomial work with time priority A part for the dormancy impression shelves.
3. setting method is replied in dormancy as described in claim 1, which is characterized in that is also included:
Detect this it is multinomial work in into the dormant state before multiple time points for being processed;And
The plurality of priority of the multinomial work is set according to the plurality of time point.
4. setting method is replied in dormancy as claimed in claim 3, which is characterized in that is also included:
If the one of the multinomial work enters a time point of the dormant state the processed time point closer to the electronic device, Then the plurality of priority of the multinomial work is set to higher.
5. setting method is replied in dormancy as described in claim 1, which is characterized in that if the function of the multinomial work and one specific The correlation of function is higher, then the plurality of priority settings of the multinomial work are higher.
6. setting method is replied in dormancy as described in claim 1, which is characterized in that wherein the electronic device is a TV data Processing unit, and with showing that the plurality of priority of the higher multinomial work of the functional dependency of a TV list is set to It is higher.
7. setting method is replied in dormancy as described in claim 1, which is characterized in that the electronic device fills for a sound processing Put, and the plurality of priority of the higher multinomial work of functional dependency with playing video-audio data be set to it is higher.
8. setting method is replied in dormancy as described in claim 1, which is characterized in that when the electronic device is returned from the dormant state When multiple, start to be loaded into the multiple locked memory pages for the Substitution Spaces for being stored in a hard disk before the multinomial work is all reduced.
9. a kind of electronic device that mechanism is replied with dormant state and dormancy, comprising:
One storage device;And
One control unit;
Wherein, the control unit multinomial several work in execution to the electronic device before the electronic device enters the dormant state Multiple priority are set, generate and store a dormancy impression shelves, which includes the multinomial work and the plurality of preferential It weighs and when the electronic device is replied from the dormant state, be first loaded into and reduce and is excellent with a highest in the plurality of priority First power the relevant dormancy impression shelves a part;
Wherein, the region stored by the dormancy impression shelves is divided into multiple impression shelves regions, different impression shelves region storages pair It should be in the work of different priority.
10. electronic device as claimed in claim 9, which is characterized in that when the control unit reduces being somebody's turn to do for the dormancy impression shelves During part, while it is loaded into one of the multinomial work in the storage device with time priority and corresponds to the dormancy impression shelves A part.
11. electronic device as claimed in claim 9, which is characterized in that the control unit detects multinomial work in and enters this The multiple time points being processed before dormant state, and set according to the plurality of time point the plurality of priority of the multinomial work.
12. electronic device as claimed in claim 11, which is characterized in that if the time point that the work is processed is closer to this Electronic device enters the time point of the dormant state, then the priority of the work is defined as higher by the control unit.
13. electronic device as claimed in claim 9, which is characterized in that if the function of the multinomial work and a specific function Correlation is higher, then the plurality of priority settings of the multinomial work are higher by the control unit.
14. electronic device as claimed in claim 9, which is characterized in that the electronic device is a TV data processing unit, and The control unit will be set with the plurality of priority of the higher multinomial work of the functional dependency of one TV list of display To be higher.
15. electronic device as claimed in claim 9, which is characterized in that the electronic device is an image and sound processing unit, and the control Unit processed will be higher with the plurality of priority settings of the higher multinomial work of the functional dependency of broadcasting video-audio data.
16. electronic device as claimed in claim 9, which is characterized in that, should when the electronic device is replied from the dormant state Control unit starts to be loaded into the multiple locked memory pages for the Substitution Spaces for being stored in a hard disk before the multinomial work is all reduced.
CN201310013872.7A 2013-01-15 2013-01-15 Setting method and electronic device are replied in electronic device dormancy Expired - Fee Related CN103927226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310013872.7A CN103927226B (en) 2013-01-15 2013-01-15 Setting method and electronic device are replied in electronic device dormancy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310013872.7A CN103927226B (en) 2013-01-15 2013-01-15 Setting method and electronic device are replied in electronic device dormancy

Publications (2)

Publication Number Publication Date
CN103927226A CN103927226A (en) 2014-07-16
CN103927226B true CN103927226B (en) 2018-05-25

Family

ID=51145454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310013872.7A Expired - Fee Related CN103927226B (en) 2013-01-15 2013-01-15 Setting method and electronic device are replied in electronic device dormancy

Country Status (1)

Country Link
CN (1) CN103927226B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808339A (en) * 2005-01-21 2006-07-26 宏碁股份有限公司 Sleep method and apparatus therefor
CN101005551A (en) * 2006-01-19 2007-07-25 佳能株式会社 Image processing apparatus and method of starting image processing apparatus
CN101866301A (en) * 2009-04-14 2010-10-20 佳能株式会社 The control method of signal conditioning package and signal conditioning package

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100375034C (en) * 2005-01-05 2008-03-12 联想(新加坡)私人有限公司 Method and system for implementing thread sleep in computer system
US9274807B2 (en) * 2006-04-20 2016-03-01 Qualcomm Incorporated Selective hibernation of activities in an electronic device
US8499174B2 (en) * 2008-09-08 2013-07-30 Via Technologies, Inc. Method and controller for power management
CN102779072B (en) * 2012-06-18 2014-06-25 中国科学院上海微系统与信息技术研究所 Embedded system and dormancy and wake-up method of application process thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808339A (en) * 2005-01-21 2006-07-26 宏碁股份有限公司 Sleep method and apparatus therefor
CN101005551A (en) * 2006-01-19 2007-07-25 佳能株式会社 Image processing apparatus and method of starting image processing apparatus
CN101866301A (en) * 2009-04-14 2010-10-20 佳能株式会社 The control method of signal conditioning package and signal conditioning package

Also Published As

Publication number Publication date
CN103927226A (en) 2014-07-16

Similar Documents

Publication Publication Date Title
CN102707966B (en) Method and device for acceleratively starting operating system, and method, device and terminal for generating prefetched information
US8843502B2 (en) Sorting a dataset of incrementally received data
CN102708064B (en) From dormancy, the multistage recovers
CN102301345A (en) Hybrid memory device
CN101131671A (en) Controlling access to non-volatile memory
US9274809B2 (en) Electronic apparatus hibernation recovery setting method and electronic apparatus having hibernation state and hibernation recovery mechanism
CN102770841A (en) Method and apparatus for generating minimum boot image
US20120144094A1 (en) Data storage apparatus and method for controlling flash memory
US11625187B2 (en) Method and system for intercepting a discarded page for a memory swap
CN107391544A (en) Processing method, device, equipment and the computer storage media of column data storage
CN103927226B (en) Setting method and electronic device are replied in electronic device dormancy
US11344818B2 (en) Computer system, game loading method thereof and computer readable storage medium
US20100153633A1 (en) PC architecture using fast NV RAM in main memory
CN103210389B (en) A kind for the treatment of method and apparatus of metadata
EP2458513A1 (en) Note management methods and systems
US10241686B2 (en) Storage device, information processing device, data access method and program
US8095784B2 (en) Computer system and method for activating basic program therein
CN105760317A (en) Data Writing System And Data Writing Method For Core Processor
CN102947805B (en) Data administrator and data managing method
JP2010176512A (en) Storage device, storage device control method, and storage device control program
US20090307479A1 (en) Computer execution system for starting program quickly and method thereof
CN108089998A (en) A kind of Linux pagings replacement method and system
KR101024305B1 (en) System and method for status synchronization
KR102053069B1 (en) Presentation document editing apparatus capable of efficiently updating thumbnail images and operating method thereof
US10303588B2 (en) Systems and methods for test booting a device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180525

Termination date: 20210115