CN105808336A - Computing device, apparatus and method for operating application - Google Patents

Computing device, apparatus and method for operating application Download PDF

Info

Publication number
CN105808336A
CN105808336A CN201610130674.2A CN201610130674A CN105808336A CN 105808336 A CN105808336 A CN 105808336A CN 201610130674 A CN201610130674 A CN 201610130674A CN 105808336 A CN105808336 A CN 105808336A
Authority
CN
China
Prior art keywords
application program
time
speed change
applicative
response
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
CN201610130674.2A
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.)
Guangzhou I9Game Information Technology Co Ltd
Original Assignee
Guangzhou I9Game Information Technology 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 Guangzhou I9Game Information Technology Co Ltd filed Critical Guangzhou I9Game Information Technology Co Ltd
Priority to CN201610130674.2A priority Critical patent/CN105808336A/en
Publication of CN105808336A publication Critical patent/CN105808336A/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/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a computing device, apparatus and method for operating an application. According to the invention, system time is acquired from an operating system, a speed changing request aiming at the application is responded to, and an application time regulating operation is executed, so that application time which is associated to the system time and is different from the system time is provided to the application. Therefore, by providing the application time different from the system time to the application, an actual speed that the application plays/displays related contents is changed.

Description

Run the computing equipment of application program, apparatus and method
Technical field
The present invention relates to application program, particularly to running the computing equipment of application program, apparatus and method.
Background technology
Along with popularizing of the various computing equipments such as computer, smart mobile phone, PAD, on these computing equipments, the application program of installation and operation is also more and more abundanter, and the function achieved by application program is also more and more extensive.For example, it is possible to play audio or video by application programs such as various media players or the browsers that embedded in media player.It addition, in some game, some animations also can be inserted to set off atmosphere by contrast, strengthen enjoyment and the appreciative value of game.
But, also sometimes, user is not always interested for some contents inserted in application program.Such as, some animated shows etc. in the advertisement of the insertion in video content, game.But, due to the restriction of application program itself, so some contents undesirably seen can not be carried out the operations such as such as F.F. and process by user, often affect the impression of user.
Therefore, it is desirable to there is a kind of scheme that by the restriction of application program itself, the content wherein play/show can not be carried out speed change.
Summary of the invention
A technical problem to be solved by this invention is to provide a kind of runs the computing equipment of application program, apparatus and method, and it makes it possible to when not by the restriction of application program itself, to wherein playing/and the content of displaying carries out speed change.
According to an aspect of the invention, it is provided a kind of computing equipment for running application program.This computing equipment includes: system time generator, is used for producing system time;Processor, asks in response to the speed change for this application program, performs Applicative time adjustment operation, namely provides the Applicative time being associated and being different from system time with system time to application program.
So, by providing the Applicative time being different from system time to application program so that the speed of application program actual play/displaying related content is changed.
Preferably, this computing equipment can also include: memorizer, for storing nonsystematic level application mount message table, wherein, processor is in response to the system-level application program of application program right and wrong installed, the identification information of records application program in the nonsystematic level application mount message table stored on a memory, and processor is asked in response to the speed change for this application program, nonsystematic level application mount message table exists the identification information of application program, perform Applicative time adjustment operation.
So, by safeguarding nonsystematic level application mount message table, can be to ensure that and only nonsystematic level application is performed Applicative time adjustment operation, it is possible to avoid system-level application program to run and make mistakes.
According to another aspect of the present invention, it is provided that a kind of device running application program.This device includes: system time acquisition device, for obtaining system time from operating system;And Applicative time feeding means, ask in response to the speed change for this application program, perform Applicative time adjustment operation, namely the Applicative time being associated and being different from system time with system time is provided to application program.
So, by providing the Applicative time being different from system time to application program so that the speed of application program actual play/displaying related content is changed.
Preferably, Applicative time feeding means may include that the first feeding means, for providing based on the first Applicative time obtained from the first system time that operating system obtains at the first reference instant to application program, the first reference instant is receive the moment of last acquisition system time before speed change is asked or receive the moment of first time acquisition system time after speed change is asked;And second feeding means, for after the first reference instant from the function of difference between second system time and the first system time that operating system obtains and the first Applicative time sum as the second Applicative time, being supplied to application program, function is based on speed change request and arranges.
As such, it is possible to obtain being adapted to the Applicative time of speed change request from system time easily.On the other hand, it is also possible to ensure the seriality of Applicative time so that the operation of application program is without less desirable redirecting occurs while speed change as far as possible.
Preferably, this device can also include: the 3rd feeding means, stop condition is adjusted in response to reaching the time, with the Quaternary system system time and the difference between the 3rd system time that the second reference instant obtains from operating system obtained from operating system after the second reference instant, with the 3rd Applicative time sum obtained based on the 3rd system time, as the 4th Applicative time, it is supplied to application program, wherein the second reference instant be reach the time adjust the last moment obtaining system time or the time of reaching before stop condition adjust stop condition after first time obtain moment of system time.
So, when needs stop variable speed operation (Applicative time adjustment operation), it is possible to easily to application program offer and system time with the Applicative time at interval, such that it is able to make application recovery normal operating easily.On the other hand, it is also possible to when stopping variable speed operation, ensure the seriality of Applicative time so that the operation of application program is without less desirable redirecting occurs while speed change as far as possible.
Preferably, this device can also include: labelling apparatus, in response to the system-level application program of application program right and wrong installed, and the identification information of records application program in nonsystematic level application mount message table;Search device, in response to starting application program, nonsystematic level application mount message table is searched the identification information of application program, wherein, Applicative time feeding means finds the identification information of application program in response to searching device in nonsystematic level application mount message table, performs Applicative time adjustment operation.
So, by safeguarding nonsystematic level application mount message table, can be to ensure that and only nonsystematic level application is performed Applicative time adjustment operation, it is possible to avoid system-level application program to run and make mistakes.
Preferably, this device can also include: adjusts sequence device, operates in response to performing the Applicative time adjustment for this application program, forward the identification information of adjustment application program sorting position in nonsystematic level application mount message table.
So, make it possible to more quickly find in the table and frequently use speed changing function (Applicative time adjustment function) or just used the application program of speed changing function (Applicative time adjustment function) recently, make it possible to quick hit, thus improving performance.
Preferably, this device can also include: deletes device, in response to unloading application program, deletes the identification information of application program in nonsystematic level application mount message table.
As such, it is possible to removing garbage, reduce storage resource occupation, also in response to follow-up speed change request, the lookup speed of the information to the application program remained recorded in nonsystematic level application mount message table can be accelerated.
Preferably, this device can also include: function call injection device, in response to creating speed change task, injects the process end signal for discharging the system resource shared by speed change task and process function in the application process that application program is corresponding;Resource release device, in response to the process end signal from system kernel, triggers process end signal and processes function, to discharge the system resource shared by speed change task.
This way it is possible to avoid system resource is unnecessarily taken up for a long time.
According to another aspect of the present invention, it is provided that a kind of method running application program.The method includes: obtain system time from operating system;And ask in response to the speed change for this application program, perform Applicative time adjustment operation, namely the Applicative time being associated and being different from system time with system time is provided to application program.
So, by providing the Applicative time being different from system time to application program so that the speed of application program actual play/displaying related content is changed.
Preferably, Applicative time adjustment operates and may include that to application program offer based on the first Applicative time obtained from the first system time that operating system obtains at the first reference instant, and the first reference instant is receive the moment of last acquisition system time before speed change is asked or receive the moment of acquisition system time for the first time after speed change is asked;And using after the first reference instant from the function of the difference between second system time and the first system time that operating system obtains and the first Applicative time sum as the second Applicative time, it is provided that to application program, function is based on speed change request setting.
As such, it is possible to obtain being adapted to the Applicative time of speed change request from system time easily.On the other hand, it is also possible to ensure the seriality of Applicative time so that the operation of application program is without less desirable redirecting occurs while speed change as far as possible.
Preferably, the method can also include: adjusts stop condition in response to reaching the time, with the Quaternary system system time and the difference between the 3rd system time that the second reference instant obtains from operating system obtained from operating system after the second reference instant, with the 3rd Applicative time sum obtained based on the 3rd system time, as the 4th Applicative time, it is supplied to application program, wherein, second reference instant be reach the time adjust the last moment obtaining system time or the time of reaching before stop condition adjust stop condition after first time obtain moment of system time.
So, when needs stop variable speed operation (Applicative time adjustment operation), it is possible to easily to application program offer and system time with the Applicative time at interval, such that it is able to make application recovery normal operating easily.On the other hand, it is also possible to when stopping variable speed operation, ensure the seriality of Applicative time so that the operation of application program is without less desirable redirecting occurs while speed change as far as possible.
Preferably, the method can also include: in response to the system-level application program of application program right and wrong installed, the identification information of records application program in nonsystematic level application mount message table, wherein, ask in response to the speed change for this application program, nonsystematic level application mount message table exists the identification information of application program, perform Applicative time adjustment operation.
So, by safeguarding nonsystematic level application mount message table, can be to ensure that and only nonsystematic level application is performed Applicative time adjustment operation, it is possible to avoid system-level application program to run and make mistakes.
Preferably, the method can also include: operates in response to performing the Applicative time adjustment for this application program, forward the identification information of adjustment application program sorting position in nonsystematic level application mount message table.
So, make it possible to more quickly find in the table and frequently use speed changing function (Applicative time adjustment function) or just used the application program of speed changing function (Applicative time adjustment function) recently, make it possible to quick hit, thus improving performance.
On the other hand, it is preferable that the method can also include: in response to unloading application program, nonsystematic level application mount message table is deleted the identification information of application program.
As such, it is possible to removing garbage, reduce storage resource occupation, also in response to follow-up speed change request, the lookup speed of the information to the application program remained recorded in nonsystematic level application mount message table can be accelerated.
Preferably, the method can also include: in response to starting application program, searches the identification information of application program in nonsystematic level application mount message table;And in response to finding the identification information of application program in nonsystematic level application mount message table, create for processing the speed change task that the speed change for this application program is asked, wherein, speed change tasks carrying Applicative time adjustment operate.
So, by only when the system-level application program of the application program right and wrong started, just establishment processes the speed change task for this application program, it is possible to avoids system-level application program to run and makes mistakes.It addition, speed change task is as the bridge between operating time and application program, it is possible to easily the Applicative time being supplied to application program is adjusted.
Preferably, the method can also include: by speed change task creation speed change request interface, is used for monitoring speed change request;Ask in response to speed change, it is determined whether there is speed change request interface;And when determine there is speed change request interface, to speed change request interface transmit speed change request.
So, by by speed change task creation speed change request interface so that convenient be confirmed whether nonsystematic level application, thus being confirmed whether to perform variable speed operation.It addition, by creating speed change interface, easily facilitate reception/monitoring and ask for the speed change of this application program.
Preferably, the method can also include: in response to creating speed change task, injects the process end signal for discharging the system resource shared by speed change task and process function in the application process that application program is corresponding;In response to the process end signal of the kernel from operating system, trigger process end signal and process function, to discharge the system resource shared by speed change task.
This way it is possible to avoid system resource is unnecessarily taken up for a long time.
According to technical scheme, by asking in response to the speed change for application program, the Applicative time being different from system time is provided so that the speed of application program actual play/displaying related content can be changed, to meet the demand of client to application program.
Accompanying drawing explanation
In conjunction with the drawings disclosure illustrative embodiments is described in more detail, above-mentioned and other purpose, feature and the advantage of the disclosure will be apparent from, wherein, in disclosure illustrative embodiments, identical reference number typically represents same parts.
Fig. 1 schematically shows the critical piece that the computing equipment for running application program according to the present invention can have.
Fig. 2 schematically shows the device running application program according to the present invention.
Fig. 3 schematically shows the method running application program according to the present invention.
Fig. 4 schematically shows a kind of embodiment of Applicative time feeding means 200.
Fig. 5 schematically shows a kind of embodiment of Applicative time feeder operation S200.
Fig. 6 schematically shows and runs, according to the present invention, the device relevant with nonsystematic level application mount message table that the device of application program may further include.
Fig. 7 schematically shows and runs, according to the present invention, the step relevant with nonsystematic level application mount message table that the method for application program may further include.
Fig. 8 schematically shows and runs the device of application program according to the present invention and may further include and the establishment of speed change task and discharge relevant device.
Fig. 9 schematically shows and the establishment of speed change task and discharge relevant flow chart.
Figure 10 schematically shows the flow chart of the method monitoring speed change request.
Detailed description of the invention
It is more fully described the preferred implementation of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the preferred implementation of the disclosure, however, it is to be appreciated that may be realized in various forms the disclosure and should do not limited by embodiments set forth herein.On the contrary, it is provided that these embodiments are to make the disclosure more thorough and complete, and the scope of the present disclosure can intactly convey to those skilled in the art.
Fig. 1 schematically shows the critical piece that the computing equipment for running application program according to the present invention can have.
This computing equipment can be such as computer, smart mobile phone, PAD etc..
As it is shown in figure 1, this computing equipment includes system time generator 10 and processor 20.
System time generator 10 produces system time.
System time is general Tong Bus with natural time, is the basis of time that operates of some application programs execution on computing equipment.
Processor 20 asks to perform Applicative time adjustment operation in response to the speed change for application program.
" speed change for application program is asked " can be based on user's operation in the application and (such as click specific button, perform special operational etc.) and send, user's setting in application program or other auxiliary program (interlude between operating system and application program) (such as timing, or meet specified conditions) can also be based on and send.
On the other hand, this speed change request can send in real time according to user operation, it is also possible to be timing or send based on predetermined condition (predetermined state or the scheduled operation of application program such as being detected).
Processor 20, by providing the Applicative time being associated and being different from system time with system time to application program, performs above-mentioned Applicative time adjustment operation.
So, by providing the Applicative time being different from system time to application program so that the speed of application program actual play/displaying related content is changed.
The present invention does not need the method for operation of application programs itself and is changed, and simply provides it the altered Applicative time basis of time as its operation.When the Applicative time that application program receives changes, application program is in the process of normal running operation, and the result of operation will present speed changing effect.
As it is shown in figure 1, this computing equipment can also include memorizer 30.
In memorizer 30, storage has nonsystematic level application mount message table.
When set up applications, processor 20 can judge the whether system-level application program of this application program.According to the present invention it is possible to be set to only nonsystematic level application be performed variable speed operation.That is, only nonsystematic level application is performed Applicative time adjustment operation.System-level application program is not then performed to variable speed operation, in order to avoid system-level application program breaks down.
When Android (Android) operating system, nonsystematic level application generally refers to the application program being arranged on data or sdcard partition holding.
In response to the system-level application program of application program right and wrong installed, the identification information of records application program in the nonsystematic level application mount message table that processor 20 stores on memorizer 30.
Processor 20 is asked in response to the speed change for this application program, when there is the identification information of application program in nonsystematic level application mount message table, performs above-mentioned Applicative time adjustment operation.
So, by safeguarding nonsystematic level application mount message table, it can be ensured that only nonsystematic level application is performed Applicative time adjustment operation, it is possible to avoid system-level application program to run and make mistakes.
Below with reference to Fig. 2 and Fig. 3, in conjunction with describing the apparatus and method running application program according to the present invention.
Fig. 2 schematically shows the device running application program according to the present invention.
Fig. 3 schematically shows the method running application program according to the present invention.
As in figure 2 it is shown, this device can include system time acquisition device 100 and Applicative time feeding means 200.
As it is shown on figure 3, in step S100, for instance by processor 20, or by system time acquisition device 100, can obtain system time from operating system (such as Windows operating system or Android operation system).
In step S200, such as by processor 20, or by Applicative time feeding means 200, can ask in response to the speed change for this application program, perform Applicative time adjustment operation, namely the Applicative time being associated and being different from system time with system time is provided to application program.
So, by providing the Applicative time being different from system time to application program so that the speed of application program actual play/displaying related content is changed.
Applicative time feeding means 200 and a kind of embodiment of Applicative time feeder operation S200 are described below with reference to Fig. 4 and Fig. 5.
Fig. 4 schematically shows a kind of embodiment of Applicative time feeding means 200.
Fig. 5 schematically shows a kind of embodiment of Applicative time feeder operation S200.
As shown in Figure 4, Applicative time feeding means 200 can include the first feeding means 210 and the second feeding means 220.
As it is shown in figure 5, in step S210, for instance can by processor 20, or can by the first feeding means 210, to application program provide based at the first reference instant from the first system time t1 that operating system obtains the first Applicative time ft1 obtained.
First reference instant can be receive the last moment obtaining system time before speed change is asked, it is also possible to is receive the moment of first time acquisition system time after speed change is asked.Here " the first reference instant " and and " the second reference instant " hereafter refer to actual time.
In the previous case, after receiving speed change request, execution Applicative time adjustment operation is got started, so that the last Applicative time provided is as the first Applicative time before, as the benchmark being provided behind the second Applicative time.
And in the case of the latter, after receiving speed change request, first reoffer an Applicative time by original mode, as the first Applicative time.Then start to perform Applicative time adjustment operation again, using the first Applicative time as the benchmark being provided behind the second Applicative time.
Above-mentioned two situations for the first reference instant, it is possible to for concrete application scenarios, are configured as required or according to practical situation or select.
First Applicative time ft1 can be identical with the first system time t1, it may be assumed that
Ft1=t1.
Or, it is also possible to obtain based on the first system time t1 according to previous mapping mode.Such as, when once performing variable-speed processing before, Applicative time and system time differ, such first Applicative time can and the first system time t1 between there is time shift T, it may be assumed that
Ft1=t1+T.
The concrete calculation of the first Applicative time ft1 is not the place of the key of the present invention.Generally speaking, before the first reference instant, request without speed change, even when the Applicative time being supplied to application program is different from the system time from operating system, can also be synchronize change between the two, in other words, the interval between the system time of adjacent twice acquisition is identical with the interval between the Applicative time of adjacent twice offer (and corresponding system time is associated).Applicative time and system time are only possible to exists time shift.For the execution of nonsystematic level application, absolute time is not often extremely important, and the relative time in program operation process is only important.By changing the fltting speed of relative time, thus it is possible to vary the speed of corresponding operating in application program.
After receiving speed change request, the first Applicative time ft1 obtained based on the first system time t1 of the first reference instant acquisition is using as being provided behind to a change benchmark of the second Applicative time ft2 of application program.As such, it is possible to guarantee the seriality of Applicative time as far as possible, it is to avoid the operation of application program occurs unnecessarily to redirect.
In step S220, such as can by processor 20, or can by the second feeding means 220, using the function g (t2-t1) of the difference between the second system time t2 and the first system time t1 that obtain from operating system after the first reference instant and the first Applicative time ft1 sum as the second Applicative time ft2, being supplied to application program, function g can be based on speed change request and arrange.Now, the second Applicative time can be expressed as:
Ft2=ft1+g (t2-t1)
Here, function g can be proportionate relationship, it is also possible to be linear relationship, non-linear relation (such as index variation changes more fast or more slow more backward) etc..Concrete functional form can according to concrete application scenarios be actually needed or user setup and carry out selecting or changing.
Relatively simple function g can be simple proportionate relationship, and namely the difference of system time is multiplied by coefficient of variation in speed, and so, the second Applicative time can be expressed as:
Ft2=ft1+k* (t2-t1).
Wherein k is coefficient of variation in speed (multiplying power).
Coefficient of variation in speed (multiplying power) can extract from acceleration request.When generating speed change request, it is possible to determine the desired speed change multiplying power k of user according to the operation of the setting of user or user, it is attached in speed change request.
Coefficient of variation in speed (multiplying power) can also pre-set.When receiving speed change request, carry out Applicative time adjustment operation according to the speed change multiplying power k pre-set.
When speed change request is for acceleration request, coefficient of variation in speed k is more than 1.
When speed change request is for deceleration request, coefficient of variation in speed k is more than 0 and less than 1.
As such, it is possible to obtain being adapted to the Applicative time of speed change request from system time easily.On the other hand, it is also possible to ensure the seriality of Applicative time so that the operation of application program is without less desirable redirecting occurs while speed change as far as possible.
When speed change request terminates, in other words, when being no longer necessary to perform variable speed operation, it is necessary to recover the fltting speed of Applicative time, no longer accelerate or slow down.
As shown in Figure 4, this Applicative time feeding means 200 can also include the 3rd feeding means 230.
As shown in Figure 5, in step S230, such as can by processor 20, or can by the 3rd feeding means 230, stop condition is adjusted, with the 4th Applicative time ft4 obtained from operating system after the second reference instant and difference between the 3rd Applicative time ft3 that the second reference instant obtains from operating system, with the 3rd Applicative time ft3 sum obtained based on the 3rd Applicative time ft3 in response to reaching the time, as the 4th Applicative time ft4, it is provided that to application program.
Variable speed operation (Applicative time adjustment operation) such as can the request of speed change, the stopping (end of swiping or click/drag operation) of speed change request, speed change request reach predetermined persistent period after sending, the predetermined variation of Application Status, time such as arrange in advance adjust stop condition and stops based on stopping.
Second reference instant can be reach the time to adjust the last moment obtaining system time before stop condition, it is also possible to be reach the time adjust stop condition after first time obtain moment of system time.
In the previous case, after the time that reaches adjusts stop condition, execution Applicative time adjustment operation is got started, so that the last Applicative time provided is as the 3rd Applicative time before, as the benchmark being provided behind the 4th Applicative time.
And in the case of the latter, after receiving speed change request, first adjust mode by the original time and reoffer the Applicative time after once adjusting, as the 3rd Applicative time.Then Applicative time adjustment operation is stopped again, using the 3rd Applicative time as the benchmark being provided behind the 4th Applicative time.
Above-mentioned two situations for the second reference instant, it is possible to for concrete application scenarios, are configured as required or according to practical situation or select.
3rd Applicative time ft3 can be last the adjusted Applicative time obtained according to previously described time Adjustable calculation mode.Representation can be identical with above-mentioned second Applicative time ft2, for instance may is that
Ft3=ft1+g (t3-t1)
Wherein, t3 is the system time that the second reference instant obtains, and function g can be the same with what function is described above.
As mentioned above, after variable speed operation (Applicative time adjustment operation) terminates, in order to ensure the seriality that application program operates, the 3rd Applicative time ft3 being supplied to application program is also not necessarily equal to the 3rd real-time system time t3, as long as the time difference of adjacent two Applicative times is identical with the time difference of corresponding system time.If ft3=t3, it is based on, owing to being previously provided to Applicative time, the time that system time has adjusted, then when providing ft3, it is provided that (when previous speed-down, ft3 is significantly increased by redirecting to the Applicative time of application program;When first preacceleration, there is rollback in ft3).So it is likely to affect the smooth operation of application program.
After this, it is possible to the 3rd Applicative time ft3 for benchmark, it is provided that the 4th Applicative time ft4.4th Applicative time ft4 such as can be expressed as:
Ft4=ft3+ (t4-t3)
Wherein t4 is the Quaternary system system time obtained after the second reference instant.
Although the 4th Applicative time ft4 is also not equal to Quaternary system system time t4, but the difference being available between Applicative time ft4 and the ft3 of application program can keep identical with from the difference between system time t4 and the t3 of operating system.Namely the normal fltting speed of relative time has been recovered.
So, when needs stop variable speed operation (Applicative time adjustment operation), it is possible to easily to application program offer and system time with the Applicative time at interval, such that it is able to make application recovery normal operating easily.
On the other hand, it is also possible to when stopping variable speed operation, ensure the seriality of Applicative time so that the operation of application program is without less desirable redirecting occurs while speed change as far as possible.
Properly functioning in order to avoid influential system level application, it is desirable to avoid the time to being supplied to system-level application program to be adjusted.
By the device shown in Fig. 6 and the method step shown in Fig. 7, it is possible to avoid the time to being supplied to system-level application program to be adjusted.
Fig. 6 schematically shows and runs, according to the present invention, the device relevant with nonsystematic level application mount message table that the device of application program may further include.
Fig. 7 schematically shows and runs, according to the present invention, the step relevant with nonsystematic level application mount message table that the method for application program may further include.
As shown in Figure 6, this device can also include: labelling apparatus 310, lookup device 320, tune sequence device 330 and deletion device 340.
As shown in Figure 7, in step S10, for instance can by processor 20, or can by labelling apparatus 310, in response to the system-level application program of application program right and wrong installed, the identification information of records application program in the nonsystematic level application mount message table on such as memorizer 30.
Processor 20, or above-mentioned Applicative time feeding means 200, ask in response to the speed change for this application program, it is possible to when there is the identification information of application program in nonsystematic level application mount message table, performs Applicative time adjustment operation.
Such as, processor 20, or search device 320, it is possible in response to starting application program, nonsystematic level application mount message table is searched the identification information of application program.Processor 20 or Applicative time feeding means 200 can find the identification information of application program in response to processor 20 or lookup device 320 in nonsystematic level application mount message table, perform above-mentioned Applicative time adjustment operation.
So, by safeguarding nonsystematic level application mount message table, can be to ensure that and only nonsystematic level application is performed Applicative time adjustment operation, it is possible to avoid system-level application program to run and make mistakes.
Further, as shown in Figure 7, can in step S12, such as can by processor 20, or can by adjusting sequence device 330, operate in response to performing the Applicative time adjustment for this application program, forward the identification information of adjustment application program sorting position in nonsystematic level application mount message table.
Here, for instance LRU (recent minimum use) algorithm can be adopted.For example, it is possible to the information of the application program performing variable speed operation recently to be inserted into the foremost of nonsystematic level application mount message table.Or, it is possibility to have multiple other adjusts forward the mode of sorting position, for instance, often perform a variable speed operation, adjust forward some positions etc..
So, make it possible to more quickly find in the table and frequently use speed changing function (Applicative time adjustment function) or just used the application program of speed changing function (Applicative time adjustment function) recently, make it possible to quick hit, thus improving performance.
Further, as shown in Figure 7, it is possible in step S14, for instance by processor 20, or by deleting device 340, in response to unloading application program, nonsystematic level application mount message table can be deleted the identification information of the application program unloaded.
As such, it is possible to removing garbage, reduce storage resource occupation, also allow for, in response to follow-up speed change request, accelerating the lookup speed of the information to the application program remained recorded in nonsystematic level application mount message table.
The device relevant with nonsystematic level application mount message table and step is described above with reference to Fig. 6 and Fig. 7.
Below with reference to Fig. 8 to 10, the apparatus and method relevant with the speed change task performing Applicative time adjustment operation are described.
Fig. 8 schematically shows and runs the device of application program according to the present invention and may further include and the establishment of speed change task and discharge relevant device.
Fig. 9 schematically shows and the establishment of speed change task and discharge relevant flow chart.
As shown in Figure 8, run the device of application program according to the present invention and can also include task creation device 410.
As it is shown in figure 9, in step S20, for instance by processor 20, or by above-mentioned lookup device 320, in response to starting application program, nonsystematic level application mount message table can be searched the identification information of application program.
In step S30, it is possible to by processor 20, or by task creation device 410, in response to the identification information finding application program in nonsystematic level application mount message table, can create for processing the speed change task that the speed change for this application program is asked.Speed change task is used for performing above-mentioned Applicative time adjustment operation.
So, by only when the system-level application program of the application program right and wrong started, just establishment processes the speed change task for this application program, it is possible to avoids system-level application program to run and makes mistakes.It addition, speed change task is as the bridge between operating time and application program, it is possible to easily the Applicative time being supplied to application program is adjusted.
The method that can be used to monitor speed change request is described herein with reference to Figure 10.
Figure 10 schematically shows the flow chart of the method monitoring speed change request.
As shown in Figure 10, in step S60, for instance can, in processor 20, by speed change task creation speed change request interface, be used for monitoring speed change request.
In step S70, for instance by processor 20, can ask in response to speed change, it is determined whether there is speed change request interface.
In step S80, when determine there is speed change request interface, for instance can by processor 20, to speed change request interface transmit speed change request.
So, by by speed change task creation speed change request interface so that convenient be confirmed whether nonsystematic level application, thus being confirmed whether to perform variable speed operation.It addition, by creating speed change interface, easily facilitate reception/monitoring and ask for the speed change of this application program.
Referring back to Fig. 8 and Fig. 9, the apparatus and method that can discharge the resource that speed change task takies when application program exits further are described.
As shown in Figure 8, run the device of application program according to the present invention and can also include function call injection device 420, resource release device 430.
As shown in Figure 9, in step S40, for instance can by processor 20, or can by function call injection device 420, in response to creating speed change task, the application process that application program is corresponding is injected the process end signal for discharging the system resource shared by speed change task and processes function.
In step S50, for instance by processor 20, or can be discharged device 430 by resource, in response to the process end signal from system kernel, trigger process end signal and process function, to discharge the system resource shared by speed change task.
Work as application program launching, for hatching the process of program process, i.e. the parent process of program process, function can be processed by the process end signal injected in the process that application program is corresponding for discharging the system resource shared by this application process.When this application process terminates, this process end signal can be triggered and process function, to discharge the system resource shared by this application process.But, this function can't discharge the process beyond application process or the system resource shared by task.
Here, in step S40, in response to creating the speed change task for this application program, inject in corresponding application process and process function for the process end signal discharging the system resource shared by speed change task.
In step S50, when whether because application program normally exits or abnormal ending and when receiving the process end signal from system kernel, this process end signal not only can trigger the process end signal for discharging the system resource shared by this application process and process function, also triggers the process end signal for discharging the system resource shared by speed change task and processes function.Thus, the system resource that application process itself takies can not only be discharged, moreover it is possible to release system resource shared by the speed change task of this application process.
This way it is possible to avoid do not had the speed change task (corresponding application process terminates) of service object to unnecessarily take up system resource for a long time.
According to technical scheme, by asking in response to the speed change for application program, the Applicative time being different from system time is provided so that the speed of application program actual play/displaying related content can be changed, to meet the demand of client to application program.
The application example of the present invention is exemplified below.
Present invention could apply to such as computer, smart phone, pad etc..
A kind of useful application scenarios is to simulate the operating system of smart phone on computers, for instance android system.Then application program of mobile phone is installed in the smart phone operating system of simulation, in order to user uses.Simulated operating system can as the bridge between the operating system of computer itself and application program.
Similarly, the present invention can also directly apply to smart phone.Software module can be set on smart phone, as the bridge between operating system and application program, send the system time of operating system to application program.In transmission process, it is possible to as required Applicative time is adjusted.
Present invention could apply to the video or the audio frequency broadcasting that carry out in the application, or be used for skipping or F.F. ad content.
The present invention can also be applied to put soon in game application or some animated show contents of slow play.
Below, to put soon in the upper game application installed of android system (or simulation android system) or the application scenarios of some animated show contents of slow play, simply illustrate.
Application labelling:
When game application is arranged in Android operation system, obtains its bag name, and carry out persistence.Meanwhile, persistence information is stored as application mount message table.It is storage tableau format example as follows:
ID Application bag name
ID is the unique identifier distributing to this application program.Application bag name is then for the bag title of application installation kit.
On Android machine, the bag name of application program is also the process name of application program, can uniquely confirm application program by the bag name of application program.
When unloading application program, it is possible to corresponding persistence entry is deleted.Namely the information in application mount message table is deleted according to the bag name of unloading application program.
Application variable-speed processing:
The first step
When game application runs, first after application process hatches out, in Native layer initial method, the process name of current application program can be detected.Then, so that this process search key by name retrieves whether there is corresponding information in the nonsystematic application mount message table of generation in application mark module.
As being absent from, then do not do any operation.Otherwise, then second step is entered.
Second step
Application process can create the speed change task task of special disposal user's speed change request, and this speed change task can create a message sink service end (speed change request interface), and is in listening state.
3rd step
The speed change solicited message of user setup front stage operation games is packaged into speed change message (speed change request) and is sent to the message sink end that previous step creates.Before transmitting this message, need whether detection foreground process has establishment corresponding message to receive service end, as being absent from, then do not send.Otherwise, then the 4th step is entered.
4th step
Message is asked and analyzed to message sink service end response message, and the speed change multiplying power mp that generating current process needs (adopts proportional functional relationship, speed change multiplying power mp to be equivalent to coefficient of variation in speed k) above here.Generate, according to speed change multiplying power, a kind of example forging system time (Applicative time) algorithm can be such that
It is applied in after multiplying power is arranged and obtains system time for the first time:
Obtain current actual time t1, initialize forgery time ft1, ft1=t1, return forgery time (Applicative time) ft1.
The mode of follow-up acquisition system time such as can be such that
1, current actual time t2 is obtained
2, current actual time t2, deducts last actual time t1, obtains difference t21.
3, difference t21 takes absolute value
4, difference t21 is multiplied by multiplying power mp, and (mp illustrates: 0 < mp < 1, represents and slows down to obtain revised difference dt21;Mp=1, represents true velocity;Mp > 1, represents and accelerates)
5, calculate forgery time ft2, ft2=ft1+dt21, return forgery time ft2.
By above-mentioned algorithm it can be seen that first time acquisition system actual time is equal to the forgery time after arranging speed change, the follow-up system time that obtains again carries out multiplying power conversion according to above-mentioned algorithm, to reach the effect of game speed change.
Here, also adopting lru algorithm to safeguard nonsystematic application mount message table, namely the game application message after nearest speed change is inserted into the foremost of information table, the application frequently using speed change with minimizing can quickly be hit in the first step, improving performance.
Resource reclaim
Owing to the present invention can create a new task when application process of playing starts and initializes, it is therefore desirable to actively remove speed change task taking system resource at suitable time point.
1, when process creation, after Android plays application process hatching, can inject and process function for the system signal (process end signal) discharging the system resource shared by speed change task, in order to call when process exits.
2, application process of no matter playing normally or extremely exits all can be sent signal by linux kernel, triggers the signal process function created in previous step, and when process exits, signal process function can create the system resource shared by speed change task before actively discharging.
By above-mentioned exemplary scenario, it is achieved that the shifting needs of game class application.This function can significant increase game experience.By the shift strategy of this exemplary scenario, it is possible to a large amount of times saving user.The present invention also implements good resource reclaim strategy simultaneously, solves the performance issue being likely encountered.
This exemplary scenario is a kind of efficient game speed change solution, and speed change algorithm is milder, systematic function is had no adverse effect, does not destroy the memory management structure of application process, it is possible to greatly promote user's game experiencing.
It addition, game application provider cannot detect that the time is controlled in real time, there is good anti-envelope characteristic.
Above describe the operation computing equipment of application program, the apparatus and method according to the present invention in detail by reference to accompanying drawing.
Additionally, the method according to the invention is also implemented as a kind of computer program, this computer program includes the computer program code instruction of the above steps limited in the said method for performing the present invention.Or, the method according to the invention is also implemented as a kind of computer program, this computer program includes computer-readable medium, and storage has the computer program of the above-mentioned functions limited in the said method for performing the present invention on the computer-readable medium.Those skilled in the art will also understand is that, may be implemented as electronic hardware, computer software or both combinations in conjunction with the various illustrative logical blocks described by disclosure herein, module, circuit and algorithm steps.
Flow chart and block diagram in accompanying drawing show the architectural framework in the cards of system and method for the multiple embodiments according to the present invention, function and operation.In this, flow chart or each square frame in block diagram can represent a part for a module, program segment or code, and a part for described module, program segment or code comprises the executable instruction of one or more logic function for realizing regulation.It should also be noted that at some as in the realization replaced, in square frame, the function of institute's labelling can also occur with the order being different from accompanying drawing institute's labelling.Such as, two continuous print square frames can essentially perform substantially in parallel, and they can also perform sometimes in the opposite order, and this determines according to involved function.It will also be noted that, the combination of the square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart, can realize by the special hardware based system of the function or operation that perform regulation, or can realize with the combination of specialized hardware Yu computer instruction.
Being described above various embodiments of the present invention, described above is illustrative of, and non-exclusive, and it is also not necessarily limited to disclosed each embodiment.When not necessarily departing from the scope and spirit of illustrated each embodiment, many modifications and changes will be apparent from for those skilled in the art.The selection of term used herein, it is intended to explain the principle of each embodiment, practical application or the improvement to the technology in market best, or make other those of ordinary skill of the art be understood that each embodiment disclosed herein.

Claims (16)

1. for running a computing equipment for application program, including:
System time generator, is used for producing system time;
Processor, asks in response to the speed change for described application program, performs Applicative time adjustment operation, namely provides the Applicative time being associated and being different from described system time with described system time to described application program.
2. computing equipment according to claim 1, also includes:
Memorizer, is used for storing nonsystematic level application mount message table,
Wherein, described processor, in response to the system-level application program of application program right and wrong installed, records the identification information of described application program on described memorizer in the nonsystematic level application mount message table of storage, and
Described processor is asked in response to the described speed change for described application program, when there is the identification information of described application program in described nonsystematic level application mount message table, performs described Applicative time adjustment operation.
3. running a device for application program, this device includes:
System time acquisition device, for obtaining system time from operating system;And
Applicative time feeding means, asks in response to the speed change for described application program, performs Applicative time adjustment operation, namely provides the Applicative time being associated and being different from described system time with described system time to described application program.
4. device according to claim 3, described Applicative time feeding means includes:
First feeding means, for providing based on the first Applicative time obtained from the first system time that described operating system obtains at the first reference instant to described application program, described first reference instant is receive the moment of last acquisition system time before described speed change is asked or receive the moment of first time acquisition system time after described speed change is asked;And
Second feeding means, for after described first reference instant from the function of the difference between the second system time that described operating system obtains and described the first system time and described first Applicative time sum as the second Applicative time, being supplied to described application program, described function is based on the request of described speed change and arranges.
5. device according to claim 4, also includes:
3rd feeding means, stop condition is adjusted in response to reaching the time, with the Quaternary system system time obtained from described operating system after described second reference instant and the difference between the 3rd system time that described second reference instant obtains from described operating system, with the 3rd Applicative time sum obtained based on described 3rd system time, as the 4th Applicative time, it is supplied to described application program
Wherein said second reference instant be reach the described time adjust last moment obtaining system time before stop condition or reach the described time adjust stop condition after first time obtain moment of system time.
6. the device in any of the one of claim 3-5, also includes:
Labelling apparatus, in response to the system-level application program of application program right and wrong installed, records the identification information of described application program in nonsystematic level application mount message table;
Search device, in response to starting described application program, described nonsystematic level application mount message table searched the identification information of described application program,
Wherein, described Applicative time feeding means finds the identification information of described application program in response to described lookup device in described nonsystematic level application mount message table, performs described Applicative time adjustment operation.
7. device according to claim 6, also includes:
Adjust sequence device, operate in response to performing the Applicative time adjustment for described application program, adjust forward the identification information of the described application program sorting position in described nonsystematic level application mount message table;And/or
Delete device, in response to unloading described application program, described nonsystematic level application mount message table is deleted the identification information of described application program.
8. device according to claim 6, also includes:
Function call injection device, in response to creating described speed change task, injects the process end signal for discharging the system resource shared by described speed change task in the application process that described application program is corresponding and processes function;
Resource release device, in response to the process end signal from system kernel, triggers described process end signal and processes function, to discharge the system resource shared by described speed change task.
9. the method running application program, the method includes:
System time is obtained from operating system;And
Ask in response to the speed change for described application program, perform Applicative time adjustment operation, namely the Applicative time being associated and being different from described system time with described system time is provided to described application program.
10. method according to claim 9, described Applicative time adjustment operation includes:
Thering is provided based on the first Applicative time obtained from the first system time that described operating system obtains at the first reference instant to described application program, described first reference instant is receive the moment of last acquisition system time before described speed change is asked or receive the moment of first time acquisition system time after described speed change is asked;And
Using after described first reference instant from the function of the difference between the second system time that described operating system obtains and described the first system time and described first Applicative time sum as the second Applicative time, being supplied to described application program, described function is based on the request of described speed change and arranges.
11. method according to claim 10, also include:
Stop condition is adjusted in response to reaching the time, with the Quaternary system system time obtained from described operating system after described second reference instant and the difference between the 3rd system time that described second reference instant obtains from described operating system, with the 3rd Applicative time sum obtained based on described 3rd system time, as the 4th Applicative time, it is supplied to described application program
Wherein, described second reference instant be reach the described time adjust last moment obtaining system time before stop condition or reach the described time adjust stop condition after first time obtain moment of system time.
12. the method in any of the one of claim 9-11, also include:
In response to the system-level application program of application program right and wrong installed, nonsystematic level application mount message table records the identification information of described application program,
Wherein, ask in response to the described speed change for described application program, described nonsystematic level application mount message table exists the identification information of described application program, perform described Applicative time adjustment operation.
13. method according to claim 12, also include:
Operate in response to performing the Applicative time adjustment for described application program, adjust forward the identification information of the described application program sorting position in described nonsystematic level application mount message table;And/or
In response to unloading described application program, described nonsystematic level application mount message table is deleted the identification information of described application program.
14. method according to claim 12, also include:
In response to starting described application program, described nonsystematic level application mount message table is searched the identification information of described application program;And
In response to the identification information finding described application program in described nonsystematic level application mount message table, create for processing the speed change task that the speed change for described application program is asked,
Wherein, Applicative time adjustment described in described speed change tasks carrying operates.
15. method according to claim 14, also include:
By described speed change task creation speed change request interface, it is used for monitoring the request of described speed change;
Ask in response to described speed change, it is determined whether there is described speed change request interface;And
When determine there is described speed change request interface, to described speed change request interface transmit described speed change request.
16. method according to claim 13, also include:
In response to creating described speed change task, the application process that described application program is corresponding is injected the process end signal for discharging the system resource shared by described speed change task and processes function;
In response to the process end signal of the kernel from operating system, trigger described process end signal and process function, to discharge the system resource shared by described speed change task.
CN201610130674.2A 2016-03-08 2016-03-08 Computing device, apparatus and method for operating application Pending CN105808336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610130674.2A CN105808336A (en) 2016-03-08 2016-03-08 Computing device, apparatus and method for operating application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610130674.2A CN105808336A (en) 2016-03-08 2016-03-08 Computing device, apparatus and method for operating application

Publications (1)

Publication Number Publication Date
CN105808336A true CN105808336A (en) 2016-07-27

Family

ID=56467905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610130674.2A Pending CN105808336A (en) 2016-03-08 2016-03-08 Computing device, apparatus and method for operating application

Country Status (1)

Country Link
CN (1) CN105808336A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1396742A (en) * 2002-08-02 2003-02-12 清华大学 Speed-variable playing method based on stream medium technique for player
CN101819596A (en) * 2010-04-28 2010-09-01 烽火通信科技股份有限公司 Memory-based XML script buffer
CN102541560A (en) * 2011-12-29 2012-07-04 奇智软件(北京)有限公司 Implementation method for speed change software and device
CN104239089A (en) * 2014-06-26 2014-12-24 北京奇虎科技有限公司 Game speed change implementing method and game speed change implementing device
US20150109529A1 (en) * 2012-06-08 2015-04-23 Tencent Technology (Shenzhen) Company Limited Method and system of playing real time online video at variable speed
CN105354079A (en) * 2015-09-29 2016-02-24 上海斐讯数据通信技术有限公司 Method for improving utilization rate of system memory

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1396742A (en) * 2002-08-02 2003-02-12 清华大学 Speed-variable playing method based on stream medium technique for player
CN101819596A (en) * 2010-04-28 2010-09-01 烽火通信科技股份有限公司 Memory-based XML script buffer
CN102541560A (en) * 2011-12-29 2012-07-04 奇智软件(北京)有限公司 Implementation method for speed change software and device
US20150109529A1 (en) * 2012-06-08 2015-04-23 Tencent Technology (Shenzhen) Company Limited Method and system of playing real time online video at variable speed
CN104239089A (en) * 2014-06-26 2014-12-24 北京奇虎科技有限公司 Game speed change implementing method and game speed change implementing device
CN105354079A (en) * 2015-09-29 2016-02-24 上海斐讯数据通信技术有限公司 Method for improving utilization rate of system memory

Similar Documents

Publication Publication Date Title
CN105808447B (en) A kind of method for recovering internal storage and device of terminal device
US10466998B2 (en) Model based upgrade campaign generation
CN103760966A (en) Picture buffering implementation method
CN112153470B (en) Video playing method and device, computer equipment and storage medium
KR102541051B1 (en) Video processing method, device, electronic equipment and storage medium
CN107040576A (en) Information-pushing method and device, communication system
CN109698965B (en) Video synchronous playing method, device, equipment and computer storage medium
CN105786539B (en) File downloading method and device
US20230073381A1 (en) Method and apparatus for processing data
CN111901619A (en) Message pushing method and device
CN104104645A (en) Cross-platform resource management method and system
CN104793981A (en) Online snapshot managing method and device for virtual machine cluster
CN108153794B (en) Page cache data refreshing method, device and system
CN103092745B (en) The control method of system journal record and device
CN105760377A (en) Information processing method and device
CN106293792A (en) Software start-up method and device
CN104794179A (en) Video quick indexing method and device based on knowledge tree
CN105808336A (en) Computing device, apparatus and method for operating application
CN104837030A (en) Method and system for realizing fast-forward/fast-backward playing via HTTP streaming media
CN107479982B (en) data synchronization method and terminal
CN102647622A (en) Play progress management method for streaming media clip and play progress management system for streaming media clip
CN104837061A (en) Method and device for modifying and managing video playlist
CN112801705B (en) Information delivery method, device, storage medium and processor
CN112153478B (en) Video processing method and video playing method
CN108829824B (en) Resource processing method and device in internet operation activity

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160727