CN108196852A - A kind of software running method, update method and relevant apparatus - Google Patents

A kind of software running method, update method and relevant apparatus Download PDF

Info

Publication number
CN108196852A
CN108196852A CN201711434398.XA CN201711434398A CN108196852A CN 108196852 A CN108196852 A CN 108196852A CN 201711434398 A CN201711434398 A CN 201711434398A CN 108196852 A CN108196852 A CN 108196852A
Authority
CN
China
Prior art keywords
function
software
object function
client device
slice
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
CN201711434398.XA
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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies 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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201711434398.XA priority Critical patent/CN108196852A/en
Publication of CN108196852A publication Critical patent/CN108196852A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Abstract

The embodiment of the present application discloses a kind of operation method of software, update method and relevant apparatus.The embodiment of the present application method causes client device when needing to carry out installation software, can only obtain the software executable program and be capable of providing start the software needed for most basic function can be completed install the software, without obtaining whole function slices needed for the software, so as to save the time to wait for downloads.Due to not downloading whole function slices needed for the software when installing the software, therefore when the software needs calling to be not held in local object function during running the software, the call request for corresponding object function slice can be sent to server device, to obtain the handling result for performing the object function and obtaining, so as to ensure that the software can realize function.

Description

A kind of software running method, update method and relevant apparatus
Technical field
This application involves data processing field, more particularly to a kind of software running method, update method and relevant apparatus.
Background technology
Terminal can realize various functions by running all kinds of softwares disposed in operating system.As software provides work( It can become increasingly complex, the software memory space to be occupied is also increasing, and the space that large software occupies several G is very common The phenomenon that.
If desired in one software of a terminal operating, for example whole executable programs of all the elements for downloading software are needed With in dynamic base to the terminal after could realize installation, operation.
For large software, the stand-by period of download is very long, especially when needing multiple sections in a distributed system The situation of large software is all run on point, having a large amount of time spends in the stage for waiting for downloads, installing.
Invention content
The embodiment of the present application provides a kind of software running method, update method and relevant apparatus, not only ensures software energy Enough realize function, the required time to wait for downloads when also saving installation software.
In a first aspect, the embodiment of the present application provides a kind of operation method of software, the method includes:
Client device obtains the executable program of software and basic function slice, and the basic function slice includes being used for The corresponding function slice of principal function needed for the software is installed;
The client device installs the software according to the executable program and basic function slice;
If running the software during the software needs invocation target function, the client device judges the mesh Whether the corresponding object function slice of scalar functions is stored in local;
If being not held in local, the server device of the client device to the correspondence object function slice sends needle Call request to object function slice;
The client device, which obtains, performs the handling result that the object function obtains.
In the first possible realization method of first aspect, the client device, which obtains, performs the object function Obtained handling result, including:
The client device obtains the object function slice from the server device;
The client device performs the object function and obtains the handling result.
Object function can be sliced deposit locally by this realization method, when needing to call the object function again, visitor Family end equipment only needs directly to call the object function from local, without again to the server device request call object function, Reduce the interaction of client device and server device so that the calling of object function is more convenient, quick.
In second of possible realization method of first aspect, the client device, which obtains, performs the object function Obtained handling result, including:
The client device obtains the handling result from the server device, and the handling result is the service End equipment performs the handling result that the object function obtains.
This realization method, by server device performance objective function call to processing as a result, client device only needs to obtain The handling result avoids object function being sliced deposit locally, and the function for reducing the software occupies in client device Memory space, weaken the requirement to local client devices, be conducive to improve client device the speed of service.
In the third possible realization method of first aspect, the object function is upgraded by upgrading from first version To the second edition, the method further includes:
If running the software during the software needs invocation target function, the client device detects the clothes The version of object function described in end equipment of being engaged in;
The client device obtains the object function slice to carry out to the target letter from the server device Several updates, the version of the object function in object function slice are the more new strategies according to the client device Determining.
This realization method, by function be sliced as unit of function is updated, in this manner it is achieved that only to being needed in software The corresponding function slice of newer function is wanted to be replaced, without carrying out full dose replacement to all the elements in software, so as to save The waiting newer time is saved.
The third possible realization method with reference to first aspect, in the 4th kind of possible realization method, the target Function is stored in local, alternatively, the object function is not held in local.
The 4th kind of possible realization method with reference to first aspect, in the 5th kind of possible realization method, if the mesh Scalar functions are stored in local and are the first version, and the client device obtains the target letter from the server device Number slice, including:
The corresponding object function of object function that the client device obtains the second edition from the server device is cut Piece.
This realization method, when needing to be updated the object function for being stored in local first version, client Equipment need to only be updated the object function of first version from the object function for the second edition that server device is got, and keep away Exempt to carry out full dose replacement to all the elements of the software.
The 4th kind of possible realization method with reference to first aspect, in the 6th kind of possible realization method, if the mesh Scalar functions are stored in local and are the second edition, and the client device obtains the target letter from the server device Number slice, including:
The corresponding object function of object function that the client device obtains first version from the server device is cut Piece.
This realization method, when needing to be updated the object function for being stored in the local second edition, client Equipment need to only be updated the object function of the second edition from the object function for the first version that server device is got, and keep away Exempt to carry out full dose replacement to all the elements of the software.
In the 7th kind of possible realization method of first aspect, the client device according to the executable program and After the basic function slice installs the software, the method further includes:
Judge whether the software lacks the function needed for starting;
If lacking, the client device obtains supplement function slice, the supplement function to the server device Slice includes starting the corresponding function slice of function lacking in the software.
This realization method can realize that the function needed for the startup lacked to the software supplements, and ensure that the software can Normally to start.
In the 8th kind of possible realization method of first aspect, the method further includes:
The client device obtains real-time function slice, and the real-time function slice includes running the software Frequency is called to be more than the corresponding function slice of function of first threshold in the process.
This realization method obtains real-time function by client device and is sliced, so as to avoid real-time function is being called The problem of client device is continually interacted with server device during slice improves the calling efficiency of real-time function slice, The resource of server-side is saved.
In the 9th kind of possible realization method of first aspect, the method further includes:
In the software running process, if first function is not called upon within digestion period, the client device from It is local to delete the corresponding function slice of the first function.
This realization method is stored in first function in local digestion period by deleting, can be to avoid for a long time not The corresponding function slice of called function occupies the memory space of client device, saves the resource of client device. In tenth kind of possible realization method of one side, the method further includes:
The client device uploads the corresponding function of second function to the server device and is sliced.
This realization method is sliced by uploading function, it is ensured that in a distributed system, each in processing business Node directly can call the corresponding function slice of general purpose function from server device, without carrying out stand-alone development, realize distribution General purpose function is shared in formula system.
Second aspect, the embodiment of the present application provide a kind of update method, and object function is by upgrading from first version liter Grade arrives the second edition, the method includes:
Client device is during runs software, if the software need to call the object function, the client The version of object function described in equipment detection service end equipment;
The client device obtains object function slice to carry out to the object function from the server device It updates, the version of the object function in the object function slice is determined according to the more new strategy of the client device 's.
In the first possible realization method of second aspect, the object function is stored in local, alternatively, the mesh Scalar functions are not held in local.
With reference to the first possible realization method of second aspect, in second of possible realization method, if the mesh Scalar functions are stored in local and are the first version, and the client device obtains the target letter from the server device Number slice, including:
The corresponding object function of object function that the client device obtains the second edition from the server device is cut Piece.
With reference to the first possible realization method of second aspect, in the third possible realization method, if the mesh Scalar functions are stored in local and are the second edition, and the client device obtains the target letter from the server device Number slice, including:
The corresponding object function of object function that the client device obtains first version from the server device is cut Piece.
The advantageous effect of various possible realization methods is referring to realization method corresponding in first aspect in second aspect Advantageous effect.
The third aspect, the embodiment of the present application provide a kind of running gear of software, and described device includes first and obtains list Member, installation unit, the first judging unit, transmitting element and second acquisition unit:
The first acquisition unit obtains the executable program of software and basic function slice, institute for client device Basic function slice is stated to include the corresponding function slice of principal function needed for the software is installed;
The installation unit, for the client device according to the executable program and basic function slice peace Fill the software;
First judging unit, if the software needs invocation target function, institute during for running the software It states client device and judges whether the corresponding object function slice of the object function is stored in local;
The transmitting element, if for being not held in local, the client device is sliced to the correspondence object function Server device send for the object function slice call request;
The second acquisition unit obtains the processing knot for performing the object function and obtaining for the client device Fruit.
In the first possible realization method of the third aspect, it is single to obtain son including first for the second acquisition unit Member and execution subelement:
Described first obtains subelement, and the object function is obtained from the server device for the client device Slice;
The execution subelement performs the object function for the client device and obtains the handling result.
In second of possible realization method of the third aspect, it is single to obtain son including second for the second acquisition unit Member:
Described second obtains subelement, and the processing knot is obtained from the server device for the client device Fruit, the handling result that the handling result is obtained for the server device execution object function.
In the third possible realization method of the third aspect, the object function is upgraded by upgrading from first version To the second edition, described device further includes detection unit and third acquiring unit:
The detection unit, if the software needs invocation target function, the visitor during for running the software Family end equipment detects the version of object function described in the server device;
The third acquiring unit obtains the object function from the server device for the client device and cuts For piece to carry out the update to the object function, the version of the object function in the object function slice is according to What the more new strategy of client device determined.
With reference to the third possible realization method of the third aspect, in the 4th kind of possible realization method, the target Function is stored in local, alternatively, the object function is not held in local.
With reference to the 4th kind of possible realization method of the third aspect, in the 5th kind of possible realization method, if the mesh Scalar functions are stored in local and are the first version, and the third acquiring unit obtains subelement including third:
The third obtains subelement, obtains the mesh of the second edition from the server device for the client device The corresponding object function slice of scalar functions.
With reference to the 4th kind of possible realization method of the third aspect, in the 6th kind of possible realization method, if the mesh Scalar functions are stored in local and are the second edition, and the third acquiring unit obtains subelement including the 4th:
Described 4th obtains subelement, obtains the mesh of first version from the server device for the client device The corresponding object function slice of scalar functions.
In the 7th kind of possible realization method of the third aspect, described device further includes second judgment unit and the 4th and obtains Take unit:
The second judgment unit, for judging whether the software lacks the function needed for starting;
4th acquiring unit, if for lacking, the client device is obtained to the server device and is supplemented Function is sliced, and the supplement function slice includes starting the corresponding function slice of function lacking in the software.
In the 8th kind of possible realization method of the third aspect, described device further includes the 5th acquiring unit:
5th acquiring unit obtains real-time function slice, the real-time function slice for the client device The corresponding function slice of function including being used to that frequency to be called to be more than first threshold during running the software.
In the 9th kind of possible realization method of the third aspect, described device further includes deletion unit:
The deletion unit, in the software running process, if first function is not called upon within digestion period, The client device deletes the corresponding function slice of the first function from local.
In the tenth kind of possible realization method of the third aspect, described device further includes uploading unit:
The uploading unit uploads the corresponding function of second function for the client device to the server device Slice.
The advantageous effect of various possible realization methods is referring to realization method corresponding in first aspect in the third aspect Advantageous effect.
Fourth aspect, the embodiment of the present application provide a kind of updating device, and object function is by upgrading from first version liter Grade arrives the second edition, and described device includes detection unit and acquiring unit:
The detection unit, for client device during runs software, if the software need to call the mesh Scalar functions, the version of object function described in the client device detection service end equipment;
The acquiring unit obtains object function slice to carry out for the client device from the server device Update to the object function, the version of the object function in object function slice is set according to the client What standby more new strategy determined.
In the first possible realization method of fourth aspect, the object function is stored in local, alternatively, the mesh Scalar functions are not held in local.
With reference to the first possible realization method of fourth aspect, in second of possible realization method, if the mesh Scalar functions are stored in local and are the first version, and the acquiring unit obtains subelement including first:
Described first obtains subelement, obtains the mesh of the second edition from the server device for the client device The corresponding object function slice of scalar functions.
With reference to the first possible realization method of fourth aspect, in the third possible realization method, if the mesh Scalar functions are stored in local and are the second edition, and the acquiring unit obtains subelement including second:
Described second obtains subelement, obtains the mesh of first version from the server device for the client device The corresponding object function slice of scalar functions.
The advantageous effect of various possible realization methods is referring to realization method corresponding in first aspect in fourth aspect Advantageous effect.
5th aspect, the embodiment of the present application provide a kind of client device for running software, include memory, And one either more than one program one of them or more than one program be stored in memory, and be configured to The one or more programs are performed by one or more than one processor and include the finger for being operated below It enables:
The executable program of software and basic function slice are obtained, the basic function slice includes described soft for installing The corresponding function slice of principal function needed for part;
The software is installed according to the executable program and basic function slice;
If running the software during the software needs invocation target function, the corresponding mesh of the object function is judged Whether scalar functions slice is stored in local;
If being not held in local, sent to the server device of the correspondence object function slice for the object function The call request of slice;
It obtains and performs the handling result that the object function obtains.
In the first possible realization method of the 5th aspect, it is configured to be held by one or more than one processor Row the one or more programs include the instruction for being operated below:
The object function slice is obtained from the server device;
It performs the object function and obtains the handling result.
In second of possible realization method of the 5th aspect, it is configured to be held by one or more than one processor Row the one or more programs include the instruction for being operated below:
The handling result is obtained from the server device, the handling result is described in server device execution The handling result that object function obtains.
In the third possible realization method of the 5th aspect, it is configured to be held by one or more than one processor Row the one or more programs include the instruction for being operated below:
If running the software during the software needs invocation target function, detect described in the server device The version of object function;
The object function slice is obtained from the server device to carry out the update to the object function, the mesh The version of the object function in scalar functions slice is determined according to the more new strategy of the client device.
With reference to the third possible realization method of the 5th aspect, in the 4th kind of possible realization method, the target Function is stored in local, alternatively, the object function is not held in local.
With reference to the 4th kind of possible realization method of the 5th aspect, in the 5th kind of possible realization method, if the mesh Scalar functions are stored in local and are the first version, are configured to be performed by one or more than one processor one Or more than one program includes the instruction for being operated below:
The corresponding object function slice of object function of the second edition is obtained from the server device.
With reference to the 4th kind of possible realization method of the 5th aspect, in the 6th kind of possible realization method, if the mesh Scalar functions are stored in local and are the second edition, are configured to be performed by one or more than one processor one Or more than one program includes the instruction for being operated below:
The corresponding object function slice of object function of first version is obtained from the server device.
In the 7th kind of possible realization method of the 5th aspect, it is configured to be held by one or more than one processor Row the one or more programs include the instruction for being operated below:
Judge whether the software lacks the function needed for starting;
If lacking, supplement function slice is obtained to the server device, the supplement function slice includes opening Move the corresponding function slice of function lacking in the software.
In the 8th kind of possible realization method of the 5th aspect, it is configured to be held by one or more than one processor Row the one or more programs include the instruction for being operated below:
Real-time function slice is obtained, the real-time function slice includes calling frequency during for running the software Function slice corresponding more than the function of first threshold.
In the 9th kind of possible realization method of the 5th aspect, it is configured to be held by one or more than one processor Row the one or more programs include the instruction for being operated below:
In the software running process, if first function is not called upon within digestion period, described the is deleted from local The corresponding function slice of one function.
In the tenth kind of possible realization method of the 5th aspect, it is configured to be held by one or more than one processor Row the one or more programs include the instruction for being operated below:
The corresponding function slice of second function is uploaded to the server device.
The advantageous effect of various possible realization methods is referring to realization method corresponding in first aspect in 5th aspect Advantageous effect.
6th aspect, the embodiment of the present application provide it is a kind of for newer client device, include memory and One either more than one program one of them or more than one program be stored in memory, and be configured to by one A or more than one processor performs the one or more programs and includes the instruction for being operated below:
During runs software, if the software need to call the object function, described in detection service end equipment The version of object function;
Object function slice is obtained from the server device to carry out the update to the object function, the target letter The version of the object function in number slice is determined according to the more new strategy of the client device.
In the first possible realization method of the 6th aspect, the object function is stored in local, alternatively, the mesh Scalar functions are not held in local.
With reference to the first possible realization method of the 6th aspect, in second of possible realization method, if the mesh Scalar functions are stored in local and are the first version, are configured to be performed by one or more than one processor one Or more than one program includes the instruction for being operated below:
The corresponding object function slice of object function of the second edition is obtained from the server device.
With reference to the first possible realization method of the 6th aspect, in the third possible realization method, if the mesh Scalar functions are stored in local and are the second edition, are configured to be performed by one or more than one processor one Or more than one program includes the instruction for being operated below:
The corresponding object function slice of object function of first version is obtained from the server device.
The advantageous effect of various possible realization methods is referring to realization method corresponding in first aspect in 6th aspect Advantageous effect.
7th aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage Instruction is stored in medium, when run on a computer so that computer performs the method described in above-mentioned various aspects.
As can be seen from the above technical solutions, the embodiment of the present application has the following advantages:
Client device can only obtain the executable program of the software and be capable of providing when needing to carry out installation software Start the most basic function needed for the software and can be completed and the software is installed, cut without obtaining needed for the software whole functions Piece, so as to save the time to wait for downloads.Due to not downloading whole function slices needed for the software when installing the software, It, can be to server device therefore when the software needs calling to be not held in local object function during running the software The call request for corresponding object function slice is sent, to obtain the handling result for performing the object function and obtaining, from And ensure that the software can realize function.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of hardware Sample Scenario figure of operation method of software provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the operation method of software provided in an embodiment of the present invention;
Fig. 3 is a kind of signaling interaction diagram of software running method provided in an embodiment of the present invention;
Fig. 4 is a kind of Application Scenarios-Example figure of the operation method of software provided in an embodiment of the present invention;
Fig. 5 is a kind of flow chart of update method provided in an embodiment of the present invention;
Fig. 6 is a kind of Application Scenarios-Example figure of update method provided in an embodiment of the present invention;
Fig. 7 is a kind of structure diagram of the running gear of software provided in an embodiment of the present invention;
Fig. 8 is a kind of structure diagram of updating device provided in an embodiment of the present invention;
Fig. 9 is a kind of hardware architecture diagram of client device for running software provided in an embodiment of the present invention;
Figure 10 is a kind of hardware architecture diagram for newer client device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings, embodiments herein is described.
Terminal can realize various functions by running all kinds of softwares disposed in operating system.As software provides work( It can become increasingly complex, the software memory space to be occupied is also increasing, and the space that large software occupies several G is very common The phenomenon that.
Such as Games Software, Games Software can be provided for player replace personage, replace personage clothes, weapon, technical ability and Special efficacy etc. function, these functions, which need to provide the contents such as corresponding plug-in unit, file in software, can just realize that these all can Increase the occupied memory space of Games Software, with player increasing to the function of Games Software demand, institute in Games Software Increased content is also more and more, and the occupied memory space of Games Software can reach several G.
Traditional mode in one software of a terminal operating, all the elements of the software usually for example all may be used After execution program and dynamic base are locally downloading, installation, the operation of the software could be realized.But since software to be occupied Memory space it is increasing, especially large software, downloading all the elements of the software will take a long time, if After all the elements of the software are downloaded to local, then the installation of software, operation are carried out, in the stage for waiting for downloads, installing Time be very long.
When needing all to run large software on multiple nodes in a distributed system, since each node runs the software It is required for downloading all the elements of the software, it will take a significant amount of time in the stage for waiting for downloads, installing.A for example, section The stand-by period that point runs the software is 30min, if all run the software on 100 nodes in distributed system, if should Node in distributed system is to run the software successively, the distributed system spent in stage for waiting for downloads, installing when Between can reach 30 × 100=3000min, even if the node in the distributed system runs the software simultaneously, due in system The limitation of network speed, the time which spends in the stage for waiting for downloads, installing also will be a large amount of.
For this purpose, an embodiment of the present invention provides a kind of operation method of software, not only ensure that software can realize function, also The required time to wait for downloads when saving installation software.
Shown in Figure 1, Fig. 1 shows a kind of hardware Sample Scenario figure of operation method of software.The embodiment of the present invention When needing runs software, no longer using installation, the fortune that all the elements of the software are carried out to the software again after locally downloading Capable mode, but only obtain the executable program of the software and be capable of providing the most basic function started needed for the software It completes that the software is installed, so as to save the time to wait for downloads.Due to not downloaded needed for the software when installing the software Whole function slices, therefore when the software needs calling to be not held in local object function during running the software, it can To send the call request for corresponding object function slice to server device, obtained to obtain the execution object function Handling result, so as to ensure that the software can realize function.
From figure 1 it appears that in embodiments of the present invention, the function for downloading to client device is sliced, it can be with It saves it in dynamic base different in client device, it, can when needing using the function being stored in client device The corresponding function slice of the function is called with dynamic base corresponding from client device.For being stored in server device Function is sliced, and can be saved it in dynamic base different in server device, and server device is stored in when needing use In function when, corresponding dynamic base can call the function corresponding function slice from server device.
It is understood that different dynamic bases can be according to the function preserved in dynamic base in embodiments of the present invention Function distinguish, by function it is identical function slice be stored in same dynamic base.It is for example, relevant with reading and writing of files The corresponding function slice of function can be stored in a dynamic base, and function slice corresponding with the relevant function of network communication can To be stored in another dynamic base.
It should be noted that the executable program (executable program, the letter that are previously mentioned in embodiments of the present invention Claim EXE File) refer to a kind of program that can be independently executed in operating system space, pass through different executable journeys Sequence can make client device realize different functions.Under normal circumstances, in different operating system executable program text The preservation type of part can be different, and the file of different types of executable program can be identified with different file extensions. For in WINDOWS operating systems, the extension name of the file of executable program can be exe, this can in acquisition by user After performing program, by double-clicking the executable program with regard to the executable program can be run.
In the present embodiment, executable program can be lightweight executable program, and lightweight can be than executable journey The normal capacity of sequence is small, for example, the normal capacity of executable program is to include all executable programs of software and dynamic base, In, dynamic base (Dynamic Link Library, abbreviation DLL) can refer to required function during comprising executable program operation Library, function declaration can also be included in dynamic base, and the function declaration can for example state the function that can include in dynamic base Quantity.So, if having lacked part in software section executable program or partial dynamic library or dynamic base in executable program Function, such executable program are properly termed as lightweight executable program.Wherein, function can be by several program code groups Into so as to one function of independent realization.
Correspondingly, dynamic base can be lightweight dynamic base, lightweight can be it is smaller than dynamic base normal capacity, it is similar , for example, the function declaration in dynamic base, which states dynamic base, can include 1000 functions, but reality is only taken in dynamic base With partial function or without carrying function, such dynamic base is properly termed as lightweight dynamic base.
Function slice can be the carrier of function, and a function can correspond to a function slice.Function is in dynamic base It can be preserved in the form of function is sliced.Client device, can be with the shape of function slice when running executable program Formula is called function needed for executable program, downloads.That is, function slice can be the behaviour in client device Make the minimum atomic unit operated in system, the operation can be the operations such as preservation, calling, download and update.
Basic function slice can be for installing the corresponding function slice of principal function needed for software, being generally appreciated that To start the corresponding function slice of function needed for the software.
Object function can refer to the function for needing to call during runs software, correspondingly, with object function pair The function slice answered can be used as object function to be sliced.
Embodiment one
Next, the operation method of a kind of software that the embodiment of the present invention is provided is discussed in detail.Fig. 2 is implemented for the present invention A kind of flow chart of the operation method for software that example provides, this method include:
201st, client device obtains the executable program of software and basic function slice.
In embodiments of the present invention, some software is if desired run on a client device, it can be by way of download The executable program of the software and basic function slice are only obtained, wherein, basic function slice includes described soft for installing The corresponding function slice of principal function needed for part, so as to ensure that the software can be normally carried out installing, start.This way it is not necessary to Download the software it is all perform program and function slice, reduce run the software before wait for downloads and install the software when Between.After executable program and basic function slice are obtained in this step, basic function is sliced the preservation situation in client device It can be with as shown in Figure 1, details are not described herein again in the preservation situation of server device with function slice.
In embodiments of the present invention, in order to be further reduced run the software before wait for downloads and install the software when Between, executable program can be lightweight executable program, for example, lightweight executable program can refer to include to start this it is soft Executable program necessary to part.
In some cases, although some functions are not to install function necessary to the software, starting, running During software, these functions may continually be called, if the corresponding function slice of these functions is not downloaded To local, and it is stored in server device, then, when needing to call these functions, it may be necessary to client device frequency It is interacted numerously with server device, the efficiency of the function call may be influenced, waste server device resource.
For example, it may need to call some function 1000 times during runs software, in 1 second, if the function pair The function slice answered is stored in server device, in this way, when calling the function, client device may need and server-side Equipment carries out 1000 interactions, client device and server device interact and can spend for 1000 times it is time taking, in this way, It may influence the efficiency of the function call.
In this case, client device may be used also other than the executable program and basic function that obtain software are sliced To obtain real-time function slice, real-time function slice can be function pair frequently called during the software is run The function slice answered, for example, the corresponding function of function for frequency being called to be more than first threshold during the software is run is cut Piece.Wherein, first threshold can rule of thumb be set, such as first threshold can take 100, then, it should in operation Call frequency function slice corresponding more than 100 function that can be cut as frequently called real-time function during software Piece.
In embodiments of the present invention, it obtains real-time function by client device to be sliced, so as to avoid calling in real time The problem of client device is continually interacted with server device when function is sliced improves the calling effect of real-time function slice Rate has saved the resource of server-side.
202nd, the client device installs the software according to the executable program and basic function slice.
In embodiments of the present invention, by obtain basic function slice come reduce install the software before needed for download to client The quantity of function slice in end equipment, so as to reduce the time to wait for downloads.But it is likely to occur and downloads to client device Function slice it is very few so that when starting software, some have been lacked in client device and has started function pair needed for the software Answer function slice, executable program can not be obtained from client start the software needed for function, so as to cause the software without Method starts.
In this case, in order to avoid the software can not start, after 202 operation completion, it can be determined that client Whether the function that starts the software needed for is lacked in end equipment, if lacking, client device can be obtained to server device Function slice is supplemented, supplement function slice includes starting the corresponding function slice of function lacking in the software.So as to It realizes that the function needed for the startup lacked to the software supplements, ensures that the software can normally start.
In order to image describe after software installation is completed, executable program, client device and server device it Between interactive relation, the embodiment of the present invention additionally provides a kind of signaling interaction diagram of software running method, as shown in Figure 3.From Fig. 3 In as can be seen that 301 show executable program to client device call start the software needed for function the step of, 302 Show that client device obtains the step of supplement function is sliced to server device.
If the 203, running the software during the software needs invocation target function, the client device judges institute State whether the corresponding object function slice of object function is stored in local.
If the 204, being not held in local, the server device of the client device to the correspondence object function slice is sent out Send the call request for object function slice.
In embodiments of the present invention, call function can refer to need that some is called to apply journey in the software process is run Sequence programming interface (ApplicationProgramming Interface, abbreviation API), may for the action for calling the API It needs to call some functions.
In embodiments of the present invention, partial function needed for the running software may be only included by being stored in local function, Its cofunction needed for the running software may be maintained in server device, during the software is run, according to required tune Different object function method of calling may be used in the difference of the save location of object function.
Therefore, when the software needs invocation target function, it can first judge that the corresponding object function of the object function is cut Whether piece is stored in local.If object function slice is stored in local, can directly be called from local dynamic base should Object function is sliced, and handling result is obtained to perform the object function;If object function slice is not held in local, should Object function slice can be stored in server device, then, object function slice can be sent to the server device Call request, to obtain the handling result for performing the object function and obtaining.
From figure 3, it can be seen that 203 is corresponding in Fig. 3 303, when object function slice is stored in local, directly from this The step of object function is called to be sliced in the dynamic base on ground is corresponding in Fig. 3 304, and 204 is corresponding in Fig. 3 305.
205th, the client device, which obtains, performs the handling result that the object function obtains.
In present example, 205 realization method can there are many, the embodiment of the present invention to obtain perform the target letter The handling result realization method that number obtains does not limit.
As a kind of example, it can be visitor to obtain and perform a kind of realization method of handling result that the object function obtains Family end equipment obtains object function slice from server device, which is sliced deposit locally, is set by the client The standby object function that performs obtains handling result.
Object function can be sliced deposit locally by this realization method, when needing to call the object function again, visitor Family end equipment only needs directly to call the object function from local, without again to the server device request call object function, Reduce the interaction of client device and server device so that the calling of object function is more convenient, quick.
As a kind of example, acquisition, which performs another realization method of handling result that the object function obtains, to be, After the call request for receiving client device transmission, server device performs the object function and is handled server device As a result, and by the handling result return client device, so that client device obtains the handling result.
This realization method, by server device performance objective function call to processing as a result, client device only needs to obtain The handling result avoids object function being sliced deposit locally, and the function for reducing the software occupies in client device Memory space, weaken the requirement to local client devices, be conducive to improve client device the speed of service.
It should be noted that in embodiments of the present invention, above two, which obtains, performs the processing knot that the object function obtains The realization method of fruit can select one of which to perform, and can also be performed simultaneously, it is not limited in the embodiment of the present invention.
From figure 3, it can be seen that 205 is corresponding with 306 in Fig. 3, wherein, above-mentioned acquisition performs the object function and obtains Handling result two kinds of realization methods it is corresponding with the mode 1 in Fig. 3 and mode 2 respectively.
The software running method of the embodiment of the present invention provides a kind of very fast pattern for runs software, in the very fast pattern Under, since function slice can be obtained from server device, so extremely limited in client device capabilities deficiency or resource In the case of, the very fast pattern may be used, the corresponding function slice of function necessary to only installing the software is stored in local, Its cofunction slice can be stored in server device, and client device can be when needing call function from server device The handling result handled according to the function is obtained, so as to reduce the requirement to local client devices.
As can be seen from the above technical solutions, it is soft can only to obtain this when needing to carry out installation software for client device The executable program of part and be capable of providing start the software needed for most basic function can be completed install the software, without Whole function slices needed for the software are obtained, so as to save the time to wait for downloads.Under when installing the software not Whole functions slice needed for the software is carried, therefore the software needs calling to be not held in local mesh during the software is run During scalar functions, the call request for corresponding object function slice can be sent to server device, to obtain described in execution The handling result that object function obtains, so as to ensure that the software can realize function.
In embodiments of the present invention, due to different function be sliced the function achieved by corresponding function can not Together, there may be the function that interval is no longer called for a long time in the function slice preserved in client device, for example, only existing Start the function being called during the software.Wherein, interval function no longer called for a long time can be used as aging function, make The allocating time interval that function becomes corresponding to aging function can be used as digestion period.If the corresponding function of these functions is cut Piece is remained stored in client device, it will is occupied the memory space of client device for a long time, may be influenced other letters Several calling.
For this purpose, in embodiments of the present invention, by taking first function as an example, in software running process, if in digestion period Interior first function is not called upon, then client device can delete the corresponding function slice of first function from local.When the first letter When number needs to be called again, client device can obtain the corresponding function slice of first function from server device.It is logical This method is crossed, it can be empty to avoid the storage that the corresponding function slice of called function does not occupy client device for a long time Between.
For example, first function is only called once when starting the software, in software running process, will not call again The first function, then, it, can in order to avoid the corresponding function slice of first function occupies the memory space of client device always First the corresponding function slice of first function to be deleted from client device.When the operation for terminating the software, if being again started up The software needs to call the first function, then client device can obtain the corresponding function of first function from server device Slice.
The method that the embodiment of the present invention is provided, can be applied in distributed system, can include in distributed system Multiple nodes, multiple node can be used for different business, when being handled for different business, required for each business Function may be general purpose function for handling multiple and different business, it is also possible to including handling the required peculiar letter of the business Number.It in this case, can be only to required for handling the business in order to improve the whole efficiency of distributed system processing business Peculiar function carry out stand-alone development, and then can be direct from server device for handling the required general purpose function of the business It is called, without carrying out stand-alone development.Therefore, in embodiments of the present invention, by taking the second function that general purpose function includes as an example, Client device can upload the corresponding function of second function to server device and be sliced, so as to other nodes in distributed system During processing business, if desired using second function, then directly the corresponding function of second function can be called to cut from server device Piece.
Referring to Fig. 4, Fig. 4 shows a kind of Application Scenarios-Example figure of the present embodiment.It can be seen from the figure that for first industry Business, the process flow function needed includes general purpose function A, general purpose function B, general purpose function C and peculiar function E, for second Business, the process flow function needed include general purpose function B, general purpose function C, general purpose function D and peculiar function E '.Due to General purpose function A, general purpose function B, general purpose function C and general purpose function D can be uploaded to server device, are stored in server-side and set In standby dynamic base, therefore, when using general purpose function A, general purpose function B, general purpose function C and general purpose function D, directly from service It is called in end equipment, without carrying out stand-alone development.
Embodiment two
One software is in initial development, since the function that software designer consideration is not likely to occur software is endless comprehensively It is apt to or there are loophole, after software publishing, may modifies to the program of software, the function that perfect or addition is new, with Just software is updated.When being updated to software, although actually may be that certain functions of software are updated, So that software is updated, remaining possible content of software remains on constant.But even if some letter for software Several or certain functions update, traditional update method usually require to carry out all the elements of software full dose replaces just can be with Realize update purpose.Since the occupied memory space of software is increasing, even up to several G, using by the software institute There is content to carry out the method for full dose replacement to realize that newer purpose can consume a large amount of time.
For this purpose, the embodiment of the present invention provides a kind of update method, which can realize as unit of function is sliced Software is updated.A kind of update method provided in an embodiment of the present invention can be carried out based on previous embodiment one, can also It individually carries out, it is not limited in the embodiment of the present invention.
Referring to Fig. 5, Fig. 5 shows a kind of flow chart of update method, and this method includes:
If the 501, running the software during the software needs invocation target function, the client device detects institute State the version of object function described in server device.
It should be noted that update method provided in an embodiment of the present invention is the update of function slice level, for software In some function when being updated, it is only necessary to the function is updated, do not need to all the elements included by software into Row full dose is replaced.After being updated to the function, the version of the software can change, can also be constant.
In present example, when some function is upgraded, server device can rise the function Grade, can preserve the corresponding function slice of the function after upgrading in server device and the corresponding function of original function is cut Piece.
Referring to Fig. 5, it is assumed that the version of A functions is 1.0 versions, when A functions are needed from 1.0 edition upgradings to 2.0 version, The A functions of 2.0 versions can be stored in server device, it is similar, when A functions are needed from 2.0 edition upgradings to 3.0 editions The A functions of 3.0 versions can be stored in server device by this when.In this way, 1.0 versions can be included in server device A functions, 2.0 version A functions and 3.0 versions A functions, determined so as to the more new strategy according to client device by A Which version function is updated to.The server device that step 0 in Fig. 5 corresponds to the embodiment of the present invention carries out more the function Newly.
The embodiment of the present invention can also set the more new strategy of client device, so that server device can root Software is updated according to the more new strategy of client device.Wherein, the more new strategy of the client device can be by servicing End equipment setting or set by client device according to own situation.
It is understood that the more new strategy of the client device of server device setting can be set for client The standby function that server device is provided and includes highest version.The more new strategy of client device setting can be set according to client Standby self performance obtains the version with self performance to matched function from server device.If server device and client End equipment is all for some function sets more new strategy, under normal circumstances, is subject to the more new strategy of client device.Due to Function in server device may constantly be upgraded so that the function in server device may include multiple versions This, during runs software, when client device obtains the function of different editions, the version of software can be with function Version is changed, it is of course also possible to remain unchanged.In order to which client device is allow to know institute during runs software at any time For the object function that need to be called in the version situation of server device, client device can be with the target letter in detection service end equipment Several versions, server device can inform the version situation of client device object function.
Continue by taking Fig. 5 as an example, wherein A functions can be used as object function, A letters in client device detection service end equipment Several versions, wherein, the version of A functions includes 1.0 versions, 2.0 versions and 3.0 versions in server device.Due to server-side The more new strategy of client device is set in equipment, server device receives the version of client device detection object function Information after, server device can check the more new strategy of the client device, so as to according to client device more New strategy determines the object function which version be updated to, which can be set in server device, also may be used To be that client device is sent to server device.
In embodiments of the present invention, which can be stored in local, alternatively, the object function can be not held in It is local.It, can be first to the slice management core of client device if the software needs invocation target function during runs software Whether local is stored in the object function corresponding function slice.Wherein, which needs invocation target function to correspond in Fig. 6 Step 1, to the slice management core of client device whether is stored in the object function corresponding function slice local correspond to Step 2 in Fig. 6.
When the object function is stored in local, although can the object function directly be called from client device, Since the version of the object function in client device may need to be updated, this just needs client device to be set to server-side The version of the object function in standby verification server device, so as to determine it is directly from visitor according to the more new strategy of client device The object function is called still to call the target letter different from version in client device from server device in the end equipment of family Number, to be updated to the object function in client device.
When the object function is not held in local, the invocation target function from server device is needed, but due to clothes Object function in end equipment of being engaged in may include multiple versions, this just needs client device to check server-side to server device The version of the object function in equipment, so as to which which version called from server device according to the more new strategy of client device Object function.
Wherein, version from client device to the server device verification server device object function the step of correspond to Step 3 in Fig. 6.
502nd, the client device obtains the object function slice to carry out to the mesh from the server device The update of scalar functions, the version of the object function in object function slice are the updates according to the client device What strategy determined.
In embodiments of the present invention, update can be that the function of script is changed to new function.Correspondingly, more new strategy It can include updating to highest version, update to lowest version from highest version and repairing the function of original version from lowest version, this Inventive embodiments do not limit this.It describes in detail below for different update status.
For the situation from lowest version update to highest version:
In some cases, it can be possible to which the version due to function is too low, cause certain functions no or not perfect, at this moment, It can be by the way that during runs software, a pair function corresponding with the function upgrades, so as to obtain the soft of perfect in shape and function Part.
If the corresponding function of the function is object function, if the object function is stored in local and is first version, work as fortune When needing to call the object function in row software process, if detecting, the object function that server device includes has second Version, since its more new strategy is to be updated from lowest version to highest version, then server device can be by the target letter of the second edition The corresponding function slice of number is sent to client device, and client device utilizes the second edition got from server device Object function is updated the object function of first version, so as to fulfill the upgrading of the object function.
Continue by taking Fig. 6 as an example, if the first version of object function is 2.0 versions, the second edition is 3.0 versions, then services The object function of 3.0 versions corresponding function slice can be sent to client device by end equipment, client device utilize from The object function of 3.0 versions that server device is got is updated the object function of 2.0 versions, so as to fulfill the software In the update of client device.The update step of the object function corresponds to step 4 in Fig. 6.
For the situation from highest version update to lowest version:
In some cases, it can be possible to since function version is excessively high, client device limited capacity may cause software transporting The phenomenon that speed of service is excessively slow during row, stability is poor or even crashes.At this moment, the mistake in runs software can be passed through Cheng Zhong is updated the function to obtain a function compared with lowest version, so as to which the software be made to be adapted to client device Performance is run glibly.
For the object function of highest version is preserved in client device, if needing the target called in the process of running Function, which is stored in local and is the second edition, when needing to call the object function during runs software, if Detect that server device includes the object function of the first version, since its more new strategy is from highest version update to low version This, then the corresponding function slice of the object function of first version can be sent to client device, client by server device The object function for the first version that equipment utilization is got from server device is updated the object function of the second edition, from And realize the degradation of the object function.
Situation about being repaired for the function of original version:
It in some cases, may be due to the letter although saving the function of a certain version in client device Number has carried out violation operation or has accidentally deleted and the function of the version is caused to damage.In this way, it needs to adjust during runs software During with the function of the version, since the function for being stored in the local version damages, cause software that can not run, need from service End equipment obtains the function of the version and is updated come the function to the damaged version, so as to fulfill the function to original version Reparation.
By taking the object function of the first version preserved in client device as an example, if the object function damage of the first version It is bad, and the object function called is needed in the process of running, then, it needs to call the object function during runs software When, if detecting, server device includes the object function of the first version, since its more new strategy is to the function of original version It is repaired, then the corresponding function slice of the object function of first version can be sent to client device by server device, Client device utilize from the object function of first version that server device is got to be stored in client device the The object function of one version is updated, so as to fulfill repairing for the object function to the first version being stored in client device It is multiple.
It can be seen from the above technical proposal that in the embodiment of the present invention, the function in server device to needing to upgrade Upgraded to obtain the function of different editions, when during runs software, client device is for the mesh needed for runs software Scalar functions, during the version of the object function in detection service end equipment, server device can be according to the client device more The corresponding function of object function that new strategy sends respective version to client device is sliced, so as to fulfill to object function more Newly, wherein, the more new strategy of client device can be that server device is set or by client device according to certainly Body situation is set.By the update method that the embodiment of the present invention is provided by function be sliced as unit of carry out, this Sample can be realized only to the corresponding function slice of newer function is needed to be replaced in software, without to all in software Content carries out full dose replacement, and the newer time is waited for so as to save.
Embodiment three
Operation method based on a kind of software that previous embodiment one provides, the embodiment of the present invention provide a kind of fortune of software Luggage is put.Fig. 7 be a kind of structure diagram of the running gear of software provided in an embodiment of the present invention, the running gear of the software 700 include first acquisition unit 701, installation unit 702, the first judging unit 703, transmitting element 704 and second acquisition unit 705:
The first acquisition unit 701 obtains the executable program of software and basic function slice for client device, The basic function slice includes installing the corresponding function slice of principal function needed for the software;
The installation unit 702, cuts for the client device according to the executable program and the basic function Piece installs the software;
First judging unit 703, if the software needs invocation target function during for running the software, The client device judges whether the corresponding object function slice of the object function is stored in local;
The transmitting element 704, if for being not held in local, the client device is cut to the correspondence object function The server device of piece sends the call request for object function slice;
The second acquisition unit 705 obtains the processing for performing the object function and obtaining for the client device As a result.
Optionally, the second acquisition unit obtains subelement including first and performs subelement:
Described first obtains subelement, and the object function is obtained from the server device for the client device Slice;
The execution subelement performs the object function for the client device and obtains the handling result.
Optionally, the second acquisition unit obtains subelement including second:
Described second obtains subelement, and the processing knot is obtained from the server device for the client device Fruit, the handling result that the handling result is obtained for the server device execution object function.
Optionally, the object function is upgraded to the second edition by upgrading from first version, and described device further includes inspection Survey unit and third acquiring unit:
The detection unit, if the software needs invocation target function, the visitor during for running the software Family end equipment detects the version of object function described in the server device;
The third acquiring unit obtains the object function from the server device for the client device and cuts For piece to carry out the update to the object function, the version of the object function in the object function slice is according to What the more new strategy of client device determined.
Optionally, the object function is stored in local, alternatively, the object function is not held in local.
Optionally, if the object function is stored in local and for the first version, the third acquiring unit, including Third obtains subelement:
The third obtains subelement, obtains the mesh of the second edition from the server device for the client device The corresponding object function slice of scalar functions.
Optionally, if the object function is stored in local and for the second edition, the third acquiring unit, including 4th obtains subelement:
Described 4th obtains subelement, obtains the mesh of first version from the server device for the client device The corresponding object function slice of scalar functions.
Optionally, described device further includes second judgment unit and the 4th acquiring unit:
The second judgment unit, for judging whether the software lacks the function needed for starting;
4th acquiring unit, if for lacking, the client device is obtained to the server device and is supplemented Function is sliced, and the supplement function slice includes starting the corresponding function slice of function lacking in the software.
Optionally, described device further includes the 5th acquiring unit:
5th acquiring unit obtains real-time function slice, the real-time function slice for the client device The corresponding function slice of function including being used to that frequency to be called to be more than first threshold during running the software.
Optionally, described device further includes deletion unit:
The deletion unit, in the software running process, if first function is not called upon within digestion period, The client device deletes the corresponding function slice of the first function from local.
Optionally, described device further includes uploading unit:
The uploading unit uploads the corresponding function of second function for the client device to the server device Slice.
As can be seen from the above technical solutions, it is soft can only to obtain this when needing to carry out installation software for client device The executable program of part and be capable of providing start the software needed for most basic function can be completed install the software, without Whole function slices needed for the software are obtained, so as to save the time to wait for downloads.Under when installing the software not Whole functions slice needed for the software is carried, therefore the software needs calling to be not held in local mesh during the software is run During scalar functions, the call request for corresponding object function slice can be sent to server device, to obtain described in execution The handling result that object function obtains, so as to ensure that the software can realize function.
Example IV
Based on a kind of update method that previous embodiment two provides, the embodiment of the present invention provides a kind of updating device, target Function is upgraded to the second edition by upgrading from first version, and the updating device 800 includes detection unit 801 and acquiring unit 802:
The detection unit 801, for client device during runs software, if the software need to call it is described Object function, the version of object function described in the client device detection service end equipment;
The acquiring unit 802, for the client device from the server device obtain object function slice with Carry out the update to the object function, the version of the object function in the object function slice is according to the client What the more new strategy of end equipment determined.
Optionally, the object function is stored in local, alternatively, the object function is not held in local.
Optionally, if the object function be stored in it is local and for the first version, the acquiring unit, including first Obtain subelement:
Described first obtains subelement, obtains the mesh of the second edition from the server device for the client device The corresponding object function slice of scalar functions.
Optionally, if the object function be stored in it is local and for the second edition, the acquiring unit, including second Obtain subelement:
Described second obtains subelement, obtains the mesh of first version from the server device for the client device The corresponding object function slice of scalar functions.
It can be seen from the above technical proposal that in the embodiment of the present invention, the function in server device to needing to upgrade Upgraded to obtain the function of different editions, when during runs software, client device is for the mesh needed for runs software Scalar functions, during the version of the object function in detection service end equipment, server device can be according to the client device more The corresponding function of object function that new strategy sends respective version to client device is sliced, so as to fulfill to object function more Newly, wherein, the more new strategy of client device can be that server device is set or by client device according to certainly Body situation is set.By the update method that the embodiment of the present invention is provided by function be sliced as unit of carry out, this Sample can be realized only to the corresponding function slice of newer function is needed to be replaced in software, without to all in software Content carries out full dose replacement, and the newer time is waited for so as to save.
Embodiment five
Refering to Fig. 9, Fig. 9 is a kind of hardware configuration of client device for running software provided by the embodiments of the present application Schematic diagram, the client device 900 include memory 901, receiver 902 and transmitter 903 and respectively with the storage The processor 904 that device 901, the receiver 902 and the transmitter 903 connect, the memory 901 is for one group of journey of storage Sequence instructs, and the processor 904 is used for the program instruction that the memory 901 is called to store and performs following operation:
It triggers the receiver 902 and obtains the executable program of software and basic function slice, the basic function slice Including the corresponding function slice of principal function for being used to install needed for the software;
The software is installed according to the executable program and basic function slice;
If running the software during the software needs invocation target function, the corresponding mesh of the object function is judged Whether scalar functions slice is stored in local;
If being not held in local, the server device for triggering the transmitter 903 to the correspondence object function slice is sent out Send the call request for object function slice;
It triggers the receiver 902 and obtains the handling result that the execution object function obtains.
Optionally, the processor 904 can be central processing unit (Central Processing Unit, CPU), institute State the internal storage that memory 901 can be random access memory (Random Access Memory, RAM) type, institute General Physics interface can be included by stating receiver 902 and the transmitter 903, and the physical interface can be ether (Ethernet) interface or asynchronous transfer mode (Asynchronous Transfer Mode, ATM) interface.The processor 904th, transmitter 903, receiver 902 and memory 901 can be integrated into one or more independent circuits or hardware, such as:Specially With integrated circuit (Application Specific Integrated Circuit, ASIC).
Embodiment six
Refering to Figure 10, Figure 10 shows for a kind of hardware configuration for newer client device provided by the embodiments of the present application It is intended to, the client device 1000 includes memory 1001, receiver 1002 and transmitter 1003 and deposited respectively with described The processor 1004 that reservoir 1001, the receiver 1002 and the transmitter 1003 connect, the memory 1001 are used to deposit Batch processing instruction is stored up, the processor 1004 is used for the program instruction that the memory 1001 is called to store and performs following behaviour Make:
During runs software, if the software need to call the object function, described in detection service end equipment The version of object function;
It triggers the receiver 1002 and obtains object function slice from the server device to carry out to the target letter Several updates, the version of the object function in object function slice are the more new strategies according to the client device Determining.
Optionally, the processor 1004 can be CPU, and the memory 1001 can be the storage inside of RAM type Device, the receiver 1002 and the transmitter 1003 can include General Physics interface, and the physical interface can be ether (Ethernet) interface or atm interface.The processor 1004, transmitter 1003, receiver 1002 and memory 1001 can be with One or more independent circuits or hardware are integrated into, such as:ASIC.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and perform on computers the meter During calculation machine program instruction, entirely or partly generate according to the flow or function described in the embodiment of the present invention.The computer can To be all-purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited Storage is in a computer-readable storage medium or from a computer readable storage medium to another computer readable storage medium Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center Such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website Website, computer, server or data center are transmitted.The computer readable storage medium can be that computer can be deposited The data storages such as server, the data center that any usable medium of storage is either integrated comprising one or more usable mediums are set It is standby.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or partly lead Body medium (such as solid state disk Solid State Disk (SSD)) etc.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function can have other dividing mode, such as multiple units or component in actual implementation It may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical solution of the application is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the application Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, above example are only to illustrate the technical solution of the application, rather than its limitations;Although with reference to before Embodiment is stated the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding The technical solution recorded in each embodiment is stated to modify or carry out equivalent replacement to which part technical characteristic;And these Modification is replaced, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (20)

1. a kind of operation method of software, which is characterized in that the method includes:
Client device obtains the executable program of software and basic function slice, and the basic function slice includes installing The corresponding function slice of principal function needed for the software;
The client device installs the software according to the executable program and basic function slice;
If running the software during the software needs invocation target function, the client device judges the target letter Whether the corresponding object function slice of number is stored in local;
If being not held in local, the server device of the client device to the correspondence object function slice is sent for institute State the call request of object function slice;
The client device, which obtains, performs the handling result that the object function obtains.
2. according to the method described in claim 1, it is characterized in that, the client device acquisition execution object function obtains The handling result arrived, including:
The client device obtains the object function slice from the server device;
The client device performs the object function and obtains the handling result.
3. according to the method described in claim 1, it is characterized in that, the client device acquisition execution object function obtains The handling result arrived, including:
The client device obtains the handling result from the server device, and the handling result is set for the server-side The standby handling result for performing the object function and obtaining.
4. according to the method described in claim 1, it is characterized in that, the object function is upgraded to by upgrading from first version The second edition, the method further include:
If running the software during the software needs invocation target function, the client device detects the server-side The version of object function described in equipment;
The client device obtains the object function slice to carry out to the object function from the server device It updates, the version of the object function in the object function slice is determined according to the more new strategy of the client device 's.
5. according to the method described in claim 4, it is characterized in that, the object function is stored in local, alternatively, the target Function is not held in local.
6. if according to the method described in claim 5, it is characterized in that, the object function is stored in local and is described first Version, the client device obtain the object function slice from the server device, including:
The client device obtains the corresponding object function slice of object function of the second edition from the server device.
7. if according to the method described in claim 5, it is characterized in that, the object function is stored in local and is described second Version, the client device obtain the object function slice from the server device, including:
The client device obtains the corresponding object function slice of object function of first version from the server device.
8. according to the method described in claim 1, it is characterized in that, the client device is according to the executable program and institute After stating the basic function slice installation software, the method further includes:
Judge whether the software lacks the function needed for starting;
If lacking, the client device obtains supplement function slice, the supplement function slice to the server device Including being used to start the corresponding function slice of function lacking in the software.
9. according to the method described in claim 1, it is characterized in that, the method further includes:
The client device obtains real-time function slice, and the real-time function slice includes the process for running the software It is middle to call frequency function slice corresponding more than the function of first threshold.
10. according to the method described in claim 1, it is characterized in that, the method further includes:
In the software running process, if first function is not called upon within digestion period, the client device is from local Delete the corresponding function slice of the first function.
11. according to the method described in claim 1, it is characterized in that, the method further includes:
The client device uploads the corresponding function of second function to the server device and is sliced.
12. a kind of update method, which is characterized in that object function is upgraded to the second edition by upgrading from first version, described Method includes:
Client device is during runs software, if the software need to call the object function, the client device The version of object function described in detection service end equipment;
The client device obtains object function slice to carry out the update to the object function from the server device, The version of the object function in the object function slice is determined according to the more new strategy of the client device.
13. according to the method for claim 12, which is characterized in that the object function is stored in local, alternatively, the mesh Scalar functions are not held in local.
14. according to the method for claim 13, which is characterized in that if the object function is stored in local and is described the One version, the client device obtain the object function slice from the server device, including:
The client device obtains the corresponding object function slice of object function of the second edition from the server device.
15. according to the method for claim 13, which is characterized in that if the object function is stored in local and is described the Two versions, the client device obtain the object function slice from the server device, including:
The client device obtains the corresponding object function slice of object function of first version from the server device.
16. a kind of running gear of software, which is characterized in that described device is sentenced including first acquisition unit, installation unit, first Disconnected unit, transmitting element and second acquisition unit:
The first acquisition unit obtains the executable program of software and basic function slice, the base for client device This function slice includes installing the corresponding function slice of principal function needed for the software;
The installation unit, for the client device according to the executable program and basic function slice installation institute State software;
First judging unit, if the software needs invocation target function, the visitor during for running the software Family end equipment judges whether the corresponding object function slice of the object function is stored in local;
The transmitting element, if for being not held in local, the clothes that the client device is sliced to the correspondence object function End equipment of being engaged in sends the call request for object function slice;
The second acquisition unit obtains the handling result for performing the object function and obtaining for the client device.
17. a kind of updating device, which is characterized in that object function is upgraded to the second edition by upgrading from first version, described Device includes detection unit and acquiring unit:
The detection unit, for client device during runs software, if the software need to call the target letter Number, the version of object function described in the client device detection service end equipment;
The acquiring unit obtains object function slice to carry out to institute for the client device from the server device State the update of object function, the version of the object function in the object function slice is according to the client device More new strategy determines.
18. a kind of client device for running software, which is characterized in that include memory and one or one Above program, one of them either more than one program be stored in memory and be configured to by one or one with Upper processor performs the one or more programs and includes the instruction for being operated below:
The executable program of software and basic function slice are obtained, the basic function slice includes installing the software institute The corresponding function slice of principal function needed;
The software is installed according to the executable program and basic function slice;
If running the software during the software needs invocation target function, the corresponding target letter of the object function is judged Whether number slice is stored in local;
If being not held in local, send to the server device of the correspondence object function slice and be sliced for the object function Call request;
It obtains and performs the handling result that the object function obtains.
19. one kind is used for newer client device, which is characterized in that include memory and one or more than one Program, one of them either more than one program be stored in memory and be configured to by one or more than one Reason device performs the one or more programs and includes the instruction for being operated below:
During runs software, if the software need to call the object function, target described in detection service end equipment The version of function;
Object function slice is obtained to carry out the update to the object function from the server device, and the object function is cut The version of the object function in piece is determined according to the more new strategy of the client device.
20. a kind of computer readable storage medium, including instructing, when run on a computer so that computer performs such as Method described in claim 1-11 any one;Alternatively,
So that computer performs the method as described in claim 12-15 any one.
CN201711434398.XA 2017-12-26 2017-12-26 A kind of software running method, update method and relevant apparatus Pending CN108196852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711434398.XA CN108196852A (en) 2017-12-26 2017-12-26 A kind of software running method, update method and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711434398.XA CN108196852A (en) 2017-12-26 2017-12-26 A kind of software running method, update method and relevant apparatus

Publications (1)

Publication Number Publication Date
CN108196852A true CN108196852A (en) 2018-06-22

Family

ID=62584296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711434398.XA Pending CN108196852A (en) 2017-12-26 2017-12-26 A kind of software running method, update method and relevant apparatus

Country Status (1)

Country Link
CN (1) CN108196852A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933410A (en) * 2019-03-22 2019-06-25 北京智游网安科技有限公司 A kind of fictitious order delivery method and system based on virtualization technology

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2093928B1 (en) * 1999-10-22 2011-04-13 Nomadix, Inc. System and method for providing dynamic network authorization, authentication and accounting
US8656380B1 (en) * 2012-05-10 2014-02-18 Google Inc. Profiling an executable
CN104133695A (en) * 2014-07-15 2014-11-05 珠海金山网络游戏科技有限公司 Manufacture and application method of software client side
CN104156225A (en) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 Downloading method, system and server for installation package
CN105426216A (en) * 2015-12-11 2016-03-23 中南大学 Intelligent terminal software updating method based on transparent computing
CN105975261A (en) * 2016-04-28 2016-09-28 南开大学 Uniform interface calling oriented runtime system and running method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2093928B1 (en) * 1999-10-22 2011-04-13 Nomadix, Inc. System and method for providing dynamic network authorization, authentication and accounting
US8656380B1 (en) * 2012-05-10 2014-02-18 Google Inc. Profiling an executable
CN104156225A (en) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 Downloading method, system and server for installation package
CN104133695A (en) * 2014-07-15 2014-11-05 珠海金山网络游戏科技有限公司 Manufacture and application method of software client side
CN105426216A (en) * 2015-12-11 2016-03-23 中南大学 Intelligent terminal software updating method based on transparent computing
CN105975261A (en) * 2016-04-28 2016-09-28 南开大学 Uniform interface calling oriented runtime system and running method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈权: "《Android终端玩大型电脑游戏的一种实现方法》", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933410A (en) * 2019-03-22 2019-06-25 北京智游网安科技有限公司 A kind of fictitious order delivery method and system based on virtualization technology
CN109933410B (en) * 2019-03-22 2021-06-01 北京智游网安科技有限公司 Virtual instruction issuing method and system based on virtualization technology

Similar Documents

Publication Publication Date Title
US10585691B2 (en) Distribution system, computer, and arrangement method for virtual machine
CN102622241B (en) A kind of method for upgrading software and device
US9223564B2 (en) Update systems responsive to ongoing processing at a storage system
CN108055264A (en) Dispatching device, method and the computer readable storage medium of stream pushing server
CN109120678A (en) The method and apparatus of service tray for distributed memory system
CN102834806B (en) System architecture management equipment, system architecture management method and program
CN100403263C (en) Method for loading equipment software according to allocation
CN112398673A (en) Upgrading method, communication equipment and computer readable storage medium
CN104899049A (en) File deletion method and device
CN107911741A (en) Free memory method for improving, smart television and computer-readable recording medium
CN108540509A (en) A kind of processing method of terminal browser, device and server, intelligent terminal
CN108804121A (en) Method for edition management, device, medium in distributed system and electronic equipment
CN110535776B (en) Gateway current limiting method, device, gateway, system and storage medium
US8539048B2 (en) Electronic device and method for loading configuration files using the same
CN103078805B (en) Make the system and method reading the expansion of performance support level of Zookeeper
CN108196852A (en) A kind of software running method, update method and relevant apparatus
CN110007946B (en) Method, device, equipment and medium for updating algorithm model
CN107402761A (en) Using restorative procedure and device
CN110502238A (en) A kind of method and device of front and back end joint debugging
CN113934437B (en) Method and system for installing application on cloud mobile phone and client cloud mobile phone
CN111176652A (en) Application program management method, device, equipment and medium
CN111427603B (en) Application program upgrading method and device
CN115080231A (en) Task processing method and device
CN113703967A (en) Data processing method, data processing apparatus, storage medium, and electronic apparatus
US10482007B2 (en) Memory allocation on non-volatile storage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180622

WD01 Invention patent application deemed withdrawn after publication