CN108427571A - A kind of dynamic link library update method and server - Google Patents

A kind of dynamic link library update method and server Download PDF

Info

Publication number
CN108427571A
CN108427571A CN201810123715.4A CN201810123715A CN108427571A CN 108427571 A CN108427571 A CN 108427571A CN 201810123715 A CN201810123715 A CN 201810123715A CN 108427571 A CN108427571 A CN 108427571A
Authority
CN
China
Prior art keywords
dynamic link
link library
library
program
dynamic
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
CN201810123715.4A
Other languages
Chinese (zh)
Inventor
叶路平
方方
李治春
陶健
付毅民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN YLINK COMPUTING SYSTEM CO Ltd
Original Assignee
SHENZHEN YLINK COMPUTING SYSTEM 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 SHENZHEN YLINK COMPUTING SYSTEM CO Ltd filed Critical SHENZHEN YLINK COMPUTING SYSTEM CO Ltd
Priority to CN201810123715.4A priority Critical patent/CN108427571A/en
Publication of CN108427571A publication Critical patent/CN108427571A/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/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The present invention is suitable for program update method field, provides a kind of newer method of dynamic link library and server, the method includes:In service routine operational process, the first dynamic link library is uploaded, first dynamic link library is new dynamic link library;After application program has executed current task, load first dynamic link library, the handle of the second dynamic link library is removed from the linear list of memory mapping, and the handle of first dynamic link library is updated in the linear list of memory mapping, second dynamic link library is existing dynamic link library;When executing task again, judge whether update succeeds according to implementing result.When can effectively solve software upgrading through the invention, service routine must stop this problem, eliminate all harmful effects for stopping service band, improve the availability of software, save the O&M cost of system, have stronger practicability and ease for use.

Description

A kind of dynamic link library update method and server
Technical field
The invention belongs to program update method field more particularly to a kind of dynamic link library update method and servers.
Background technology
Currently, computer technology has incorporated the every aspect of people's life.In financial industry, people are handled by computer Various the deposit or the withdrawal;In the communications industry, people are linked up each other by computer.Computer operating system is as computer and people Between the bridge linked up, based on being considered to performance, safety, availability, mainly use Linux, AIX in enterprise applies Etc. classes UNIX operating system.
On operating system various types of services are provided by disposing types of applications software.The service of offer is richer Richness, corresponding software is also more complicated, shared by memory space it is also bigger.The memory space of one large-scale application software can be with Reach hundreds of million or even several G bytes.When being every time updated software, need first to stop service on corresponding machine, Then it is replaced, the time of the bigger replacement of file is longer, needs the network bandwidth occupied, memory space also more, that is, makes At economic loss, and improve implementation cost.
In order to solve this problem, dynamic link library (Dynamic-link library) technology would generally be used at present, Application software is divided into multiple dynamic link libraries according to certain rule, when each service brings into operation, operating system by these Dynamic link library is combined, and forms a complete service.More new function is only needed to change when update dynamic State library, reduces the consumption of time, and software availability is obviously improved;It, can be with if multiple softwares have similar function These functions are stored in the same dynamic link library, is shared between multiple softwares, saves memory space.
But although having used dynamic link library, during software upgrading, it is desired nonetheless to first stop service, for that It needs for non-stop-machine enterprise's application in 7*24 hours, still results in significant impact, such as:The payment system of bank, door The background system etc. of family website.Since modern enterprise application service is not usually independent, but it is all linked with one another, wherein one A service stopping work, other services are similarly subjected to influence.
Although by multiple mutually redundant modes of service, the influence shut down and brought can be eliminated, but improves fortune Cost is tieed up, is not a kind of very rational method.
Invention content
In view of this, an embodiment of the present invention provides a kind of update method of dynamic link library and server, it is existing to solve Have in technology during software upgrading, the problem of service routine must stop.
The first aspect of the embodiment of the present invention provides a kind of newer method of dynamic link library, including:
In service routine operational process, the first dynamic link library is uploaded, first dynamic link library is new dynamic chain Connect library;
After application program has executed current task, first dynamic link library is loaded, from the linear of memory mapping The handle of the second dynamic link library is removed in table, and the handle of first dynamic link library is updated to the linear of memory mapping In table, second dynamic link library is existing dynamic link library;
When executing task again, judge whether update succeeds according to implementing result.
The second aspect of the embodiment of the present invention provides a kind of newer device of dynamic link library, including:
Program uploading unit, in service routine operational process, uploading the first dynamic link library, first dynamic Chained library is new dynamic link library;
Program loading unit, for after application program has executed current task, loading first dynamic link library, The handle of the second dynamic link library is removed from the linear list of memory mapping, and the handle of first dynamic link library is updated Into the linear list of memory mapping, second dynamic link library is existing dynamic link library;
Program execution unit when for executing task again, judges whether update succeeds according to implementing result.
The third aspect of the embodiment of the present invention provides a kind of server, including:Memory, processor and it is stored in institute The computer program that can be run in memory and on the processor is stated, the processor executes real when the computer program The either step of the update method of existing dynamic link library.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and appointing for the update method of dynamic link library is realized when the computer program is executed by processor One step.
Existing advantageous effect is the embodiment of the present invention compared with prior art:The embodiment of the present invention is run in service routine In the process, new dynamic link library is uploaded and loaded, the dynamic link library handle in memory impression linear list is updated, executes again When task, judge whether update succeeds according to implementing result, and can realize the automatic of dynamic link library according to implementing result It retracts, the update of program can be realized in service routine operation, the interruption of service routine is not necessarily to, eliminates and stop service band A series of harmful effects the availability of software is raised in theory to highest while saving O&M cost.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram of the update method of dynamic link library provided in an embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram provided in an embodiment of the present invention for uploading the first dynamic link library method;
Fig. 3 is the update method implementation process schematic diagram for the dynamic link library that another embodiment of the present invention provides;
Fig. 4 is the block schematic illustration of terminal device provided in an embodiment of the present invention;
Fig. 5 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, the instruction of term " comprising " is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
It is the implementation process schematic diagram of the update method of dynamic link library provided in an embodiment of the present invention, the party referring to Fig. 1 Method is applied to general server, can support updating or automatically update manually for software service program, this method as shown in the figure It may comprise steps of:
Step S101 in service routine operational process, uploads the first dynamic link library, first dynamic link library is new Dynamic link library.
In embodiments of the present invention, the service routine operational process refers to that user is using corresponding software service Process, the operational process include but not limited to front stage operation and running background process;The service routine is mainly used in The classes UNIX operating system such as Linux, AIX.
The APP for a certain type that the service routine, which includes user, to be installed in the mobile terminal or APP with certain functions, example Such as video software, browser, QQ.User can select front stage operation to use software or running background as needed.
The dynamic link library is the basis that software program realizes its function, and the dynamic link library is program mould Block, including multiple programs code used at the same time, data or resource;Dynamic link library can generate after compiling finishes, and Compiling, which finishes, to be called.When software needs update, pre-set update dynamic link library command is executed, starts to upload new Dynamic link library, the new dynamic link library version be higher than currently existing dynamic link library version.
It should be noted that in order to realize that dynamic link library loads in program operation, in programming procedure, program The entity class method provided in main frame and dynamic base only realizes loose coupling by abstract class or interface, for the language of static types Speech, not go out specific object using the method construct in dynamic link library in the compilation phase, but start and load in program Dynamic link library and then by obtaining the method in dynamic link library, constructs specific object.
Further include before uploading new dynamic link library further:
A1, service routine start;
A2 loads second dynamic link library, and the handle of second dynamic link library is stored in memory mapping Linear list in.
In embodiments of the present invention, service routine includes the journey for the various services that software used by a user can be realized Sequence, second dynamic link library refer to the corresponding dynamic link library of current service routine, and service routine is upon actuation It begins to load current dynamic link library;The memory mapping refers to that kernel stores executable program file in memory Region, load current dynamic link library and save the handle in the linear list of memory mapping.
Preferably, the implementation process of upload provided in an embodiment of the present invention first dynamic link library method as shown in Figure 2 The step of schematic diagram, the first dynamic link library of the upload includes:
Whether step S201, the second dynamic link library of inquiry have the third dynamic link library of backup;
Step S202 backs up second dynamic link library if so, then deleting the third dynamic link library;If no, Then directly back up second dynamic link library.
In embodiments of the present invention, second dynamic link library is currently existing dynamic link library, and the third is dynamic The dynamic link library that state chained library backs up before being the second dynamic link library;Before updating dynamic link library, service routine is adjusted It is the second dynamic link library, i.e., currently existing dynamic link library;When updating dynamic link library, it is also necessary to check whether Whether the third dynamic link library for having backup, i.e., have backup before the second dynamic link library;If so, such as software service program Update is had been subjected to before, in order to avoid the excessive occupancy of memory space, needs the dynamic that will be backed up before the second dynamic link library Chained library is deleted, that is, deletes third dynamic link library, the second dynamic link library is backed up;If not backing up, such as software Service routine is first generation application, does not pass through newer process, then directly backs up the second dynamic link library, i.e., will work as Preceding existing dynamic link library is backed up.
It should be noted that update hidden danger that may be present in order to prevent, such as that there are functions is different for new dynamic link library Often, it so having had to back up original dynamic link library, can also be automatically performed by program standby by manually being backed up Part work.
Preferably, as shown in Fig. 2, the step of the first dynamic link of the upload further includes:
Step S203 covers second dynamic link library by first dynamic link library.
In embodiments of the present invention, first dynamic link library is new dynamic link library, the described second dynamic Chained library is currently existing dynamic link library;Existing dynamic link library is covered with new dynamic link library, it is former without deleting The dynamic link library come reloads new dynamic link library, directly replaces existing dynamic link library with new dynamic link library, It can be completed with moment, then automatic advising process dynamic base has been updated over after the completion of covering, and program can start to execute more newer command.
In addition, being conducive to the modularization of program using dynamic link library, the modification of application program is simplified, it is general only to need Covering is replaced in requisition for newer dynamic link library, and without changing entire application program,
Step S102 loads first dynamic link library, is reflected from memory after application program has executed current task The handle of the second dynamic link library is removed in the linear list of picture, and the handle of first dynamic link library is updated to memory and is reflected In the linear list of picture, second dynamic link library is existing dynamic link library.
In embodiments of the present invention, first dynamic link library is new dynamic link library, the described second dynamic Chained library is currently existing dynamic link library;Since each single item task is all corresponding with one section of program, executed in application program New dynamic link library is reloaded after current task, ensure that program do not interrupt and integrality;The handle is used for quoting Example in dynamic link library, when dynamic link library is called, corresponding dynamic link library handle also just generates, and is stored in interior In the linear list for depositing image, the memory mapping is for preserving executable file, and memory mapping is dynamic, and data are Change with operational process.
In addition, before the new dynamic link library of load, all can there are one specified dynamic link library entrance point functions, wherein The handle for just including dynamic link library calls correlation function according to dynamic link library handle, and dynamic link library can also be according to need To carry out initialization data structure using entrance point function or destroy data structure, when updating dynamic link library, current is moved State chained library handle removes, and new dynamic link library handle is updated in the linear list of memory mapping, so as to according to update Handle call new dynamic link library.
It should be noted that needing to ensure that atomicity, i.e. program must be completed to work as during update dynamic link library It is updated after preceding task, ensures that the dynamic library version used in per subtask is consistent.
Step S103 when executing task again, judges whether update succeeds according to implementing result.
In embodiments of the present invention, first dynamic link library is new dynamic link library;Calling new dynamic Corresponding first dynamic link library handle is generated while chained library;When operating system executes task again, i.e., enable again When application software service, the method that the first dynamic link library provides is obtained, and the can be judged according to the implementing result of task Whether one dynamic link library is updated successfully, and the first dynamic link library whether there is dysfunction when calling.
Through the embodiment of the present invention, it in the case of so that service routine is maintained at operation, updates the dynamic that it is used and connects Library is connect, a series of undesirable influences for stopping service band being eliminated, improves the availability of software, and in practical application level Any other problem will not be brought because of update, saves O&M cost, and there is stronger practicability and ease for use.
Preferably, the realization stream of the update method for the dynamic link library that another embodiment of the present invention as shown in Figure 3 provides Journey schematic diagram, as shown, when again execute task when, according to implementing result judge update whether include successfully:
Step S304, if implementing result fails, the first dynamic link library dysfunction then unloads first dynamic Chained library reloads the second dynamic link library of backup.
In embodiments of the present invention, if the implementing result failure of task, illustrates that there are work(for the first dynamic link library obtained Can be abnormal, then it needs to unload the first dynamic link library and deletes corresponding handle, restore the dynamic link library of backup, and add again Carry the dynamic link library of backup.
Through the embodiment of the present invention, it in the case of so that service routine is maintained at operation, updates the dynamic that it is used and connects Library is connect, a series of undesirable influences for stopping service band being eliminated, improves the availability of software, and in practical application level Any other problem will not be brought because of update, and there is stronger practicability and ease for use.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Fig. 4 is the schematic block diagram of the newer device of dynamic link library provided in an embodiment of the present invention, for convenience of description, only It shows and the relevant part of the embodiment of the present invention.
The dynamic link library updating device can be the software unit for being built in server, hardware cell or soft or hard combination Unit, can also be used as independent pendant and be integrated into the server of class UNIX operating system.
The newer device of the dynamic link library 4 includes:
Program uploading unit 40, in service routine operational process, uploading the first dynamic link library, described first is dynamic State chained library is new dynamic link library;
Program loading unit 41, for after application program has executed current task, loading first dynamic link Library, removes the handle of the second dynamic link library from the linear list of memory mapping, and by the handle of first dynamic link library It is updated in the linear list of memory mapping, second dynamic link library is existing dynamic link library;
Program execution unit 42 when for executing task again, judges whether update succeeds according to implementing result.
Optionally, the newer device 3 of the dynamic link library further includes:
Program start unit 43 starts for service routine;
Memory mapping linear list 44, the handle for storing loaded dynamic link library.
Optionally, the newer device 3 of the dynamic link library further includes:
Unloading unit 45 when the first dynamic link library dysfunction, unloads if for executing task result failure again It carries first dynamic link library and deletes the handle of first dynamic link library, reload the second dynamic link of backup Library simultaneously loads.
Optionally, the program uploading unit 40 includes:
Enquiry module 401, for inquiring whether the second dynamic link library of inquiry has the third dynamic link library of backup;
Backup module 402, for backing up current dynamic link library.
The embodiment of the present invention can update software application service routine in the case where service routine remains operational non-stop state Dynamic link library;When solving software upgrading, this problem that service routine must stop;Save the O&M of system at This, has stronger practicability and ease for use.
Fig. 5 is a kind of schematic diagram for server that one embodiment of the invention provides.For convenience of description, it only shows and this hair The bright relevant part of embodiment.As shown in figure 5, the server 5 of the embodiment includes:Processor 50, memory 51 and storage In the memory 51 and the computer program 52 that can be run on the processor 50, such as software inquiry program, software More new procedures or software Uninstaller etc..The processor 50 realizes above-mentioned each dynamic chain when executing the computer program 52 Connect the step in the newer embodiment of the method in library, such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 50 executes Realize the function of each module/unit in above-mentioned each device embodiment when the computer program 52, for example, module 40 shown in Fig. 4 to 45 function.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 52 in the server 5 is described.For example, the computer program 52 can be divided At uploading module, update module, Unload module, calling module (module in virtual bench).
The server 5 can be the server and cloud server for being applied to the classes UNIX operating systems such as Linux, AIX Equal computing devices.The server 5 may include, but be not limited only to, processor 50, memory 51.Those skilled in the art can be with Understand, Fig. 5 is only the example of server 5, does not constitute the restriction to server 5, may include more more or less than illustrating Component, either combine certain components or different components, for example, the server 5 can also include input-output equipment, Network access equipment, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 51 can be the internal storage unit of the server 5, such as the hard disk or memory of server 5. The memory 51 can also be that the plug-in type that is equipped on the External memory equipment of the server, such as the server 5 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 51 can also both include the internal storage unit of the server 5 or wrap Include External memory equipment.The memory 51 is used to store other journeys needed for the computer program and the server 5 Sequence and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over 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 present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one 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 module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of newer method of dynamic link library, which is characterized in that including:
In service routine operational process, the first dynamic link library is uploaded, first dynamic link library is new dynamic link library;
After application program has executed current task, first dynamic link library is loaded, from the linear list of memory mapping The handle of the second dynamic link library is removed, and the handle of first dynamic link library is updated to the linear list of memory mapping In, second dynamic link library is existing dynamic link library;
When executing task again, judge whether update succeeds according to implementing result.
2. the newer method of dynamic link library as described in claim 1, which is characterized in that described to upload new dynamic link library Further include before:
Service routine starts;
Second dynamic link library is loaded, and the handle of second dynamic link library is stored in the linear list of memory mapping In.
3. the newer method of dynamic link library as described in claim 1, which is characterized in that the first dynamic link library of the upload The step of include:
Inquire whether the second dynamic link library has the third dynamic link library of backup;
If so, then deleting the third dynamic link library, second dynamic link library is backed up;
If no, directly backing up second dynamic link library.
4. the newer method of dynamic link library as claimed in claim 3, which is characterized in that the first dynamic link library of the upload The step of further include:
Second dynamic link library is covered by first dynamic link library.
5. the newer method of dynamic link library as claimed in claim 3, which is characterized in that when the task of execution again, root According to implementing result judge update whether include successfully:
If implementing result fails, the first dynamic link library dysfunction then unloads first dynamic link library, adds again Carry the second dynamic link library of backup.
6. a kind of newer device of dynamic link library, which is characterized in that including:
Program uploading unit, in service routine operational process, uploading the first dynamic link library, first dynamic link Library is new dynamic link library;
Program loading unit, for when application program has executed current task after, load first dynamic link library, from interior Deposit the handle that the second dynamic link library is removed in the linear list of image, and in the handle of first dynamic link library is updated to In the linear list for depositing image, second dynamic link library is existing dynamic link library;
Program execution unit when for executing task again, judges whether update succeeds according to implementing result.
7. the newer device of dynamic link library as claimed in claim 6, which is characterized in that described device further includes:
Program start unit starts for service routine;
Memory mapping linear list, the handle for storing loaded dynamic link library.
8. the newer device of dynamic link library as claimed in claim 6, which is characterized in that described device further includes:
Unloading unit, if for executing task result failure again, when the first dynamic link library dysfunction, described in unloading First dynamic link library reloads the second dynamic link library of backup.
9. a kind of server, including memory, processor and it is stored in the memory and can transports on the processor Capable computer program, which is characterized in that the processor realizes such as claim 1 to 5 times when executing the computer program The step of one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201810123715.4A 2018-02-07 2018-02-07 A kind of dynamic link library update method and server Pending CN108427571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810123715.4A CN108427571A (en) 2018-02-07 2018-02-07 A kind of dynamic link library update method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810123715.4A CN108427571A (en) 2018-02-07 2018-02-07 A kind of dynamic link library update method and server

Publications (1)

Publication Number Publication Date
CN108427571A true CN108427571A (en) 2018-08-21

Family

ID=63156804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810123715.4A Pending CN108427571A (en) 2018-02-07 2018-02-07 A kind of dynamic link library update method and server

Country Status (1)

Country Link
CN (1) CN108427571A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189501A (en) * 2018-09-17 2019-01-11 郑州云海信息技术有限公司 A kind of BMC firmware operation method, restorative procedure, device, equipment and medium
CN109542871A (en) * 2018-10-23 2019-03-29 高新兴科技集团股份有限公司 Multi-source data management method, system and data management apparatus
CN109766141A (en) * 2018-12-26 2019-05-17 北京思源互联科技有限公司 A kind of data dynamic updating method and its device based on dynamic link library
CN110275722A (en) * 2019-06-21 2019-09-24 北京百度网讯科技有限公司 Method, apparatus, equipment and storage medium for upgrade application
CN110489140A (en) * 2019-07-11 2019-11-22 平安科技(深圳)有限公司 Method for upgrading software, device, computer equipment and computer storage medium
CN111240765A (en) * 2020-01-15 2020-06-05 深圳英飞拓智能技术有限公司 LINUX compression application program loading method
CN111666096A (en) * 2020-07-02 2020-09-15 腾讯科技(深圳)有限公司 Hot updating method and device for target application, storage medium and electronic equipment
CN111736883A (en) * 2020-05-11 2020-10-02 山东浪潮通软信息科技有限公司 Computer management system hot upgrading method and device based on data delay upgrading
CN112559067A (en) * 2020-12-08 2021-03-26 浪潮商用机器有限公司 Dynamic library loading method and related device
CN114416133A (en) * 2021-12-30 2022-04-29 武汉卓目科技有限公司 Embedded file data updating method and system
CN115904548A (en) * 2023-01-09 2023-04-04 北京六方云信息技术有限公司 Dynamic loading method, device and system for application recognition algorithm model
US11675593B2 (en) 2021-08-31 2023-06-13 International Business Machines Corporation Dynamically updating a dynamic library

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002024037A (en) * 2000-07-03 2002-01-25 Nec Microsystems Ltd Method for updating dynamic link library file
CN1924805A (en) * 2005-09-02 2007-03-07 腾讯科技(深圳)有限公司 Method for realizing dynamic clinkbase in wireless binary running environment platform
CN1979418A (en) * 2005-12-07 2007-06-13 英业达股份有限公司 Dynamic updating programe method
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
CN105677415A (en) * 2016-01-06 2016-06-15 网易(杭州)网络有限公司 Hot updating method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002024037A (en) * 2000-07-03 2002-01-25 Nec Microsystems Ltd Method for updating dynamic link library file
CN1924805A (en) * 2005-09-02 2007-03-07 腾讯科技(深圳)有限公司 Method for realizing dynamic clinkbase in wireless binary running environment platform
CN1979418A (en) * 2005-12-07 2007-06-13 英业达股份有限公司 Dynamic updating programe method
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
CN105677415A (en) * 2016-01-06 2016-06-15 网易(杭州)网络有限公司 Hot updating method and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189501A (en) * 2018-09-17 2019-01-11 郑州云海信息技术有限公司 A kind of BMC firmware operation method, restorative procedure, device, equipment and medium
CN109542871A (en) * 2018-10-23 2019-03-29 高新兴科技集团股份有限公司 Multi-source data management method, system and data management apparatus
CN109766141A (en) * 2018-12-26 2019-05-17 北京思源互联科技有限公司 A kind of data dynamic updating method and its device based on dynamic link library
CN110275722B (en) * 2019-06-21 2023-08-08 北京百度网讯科技有限公司 Method, apparatus, device and storage medium for upgrading application
CN110275722A (en) * 2019-06-21 2019-09-24 北京百度网讯科技有限公司 Method, apparatus, equipment and storage medium for upgrade application
CN110489140A (en) * 2019-07-11 2019-11-22 平安科技(深圳)有限公司 Method for upgrading software, device, computer equipment and computer storage medium
CN111240765A (en) * 2020-01-15 2020-06-05 深圳英飞拓智能技术有限公司 LINUX compression application program loading method
CN111736883A (en) * 2020-05-11 2020-10-02 山东浪潮通软信息科技有限公司 Computer management system hot upgrading method and device based on data delay upgrading
CN111666096A (en) * 2020-07-02 2020-09-15 腾讯科技(深圳)有限公司 Hot updating method and device for target application, storage medium and electronic equipment
CN112559067A (en) * 2020-12-08 2021-03-26 浪潮商用机器有限公司 Dynamic library loading method and related device
US11675593B2 (en) 2021-08-31 2023-06-13 International Business Machines Corporation Dynamically updating a dynamic library
CN114416133A (en) * 2021-12-30 2022-04-29 武汉卓目科技有限公司 Embedded file data updating method and system
CN115904548A (en) * 2023-01-09 2023-04-04 北京六方云信息技术有限公司 Dynamic loading method, device and system for application recognition algorithm model

Similar Documents

Publication Publication Date Title
CN108427571A (en) A kind of dynamic link library update method and server
US9928059B1 (en) Automated deployment of a multi-version application in a network-based computing environment
CN110162345B (en) Application program access method and device and storage medium
US20030135660A1 (en) Online upgrade of container-based software components
CN104750528B (en) A kind of assembly management method and apparatus in Android program
CN106104468B (en) Dynamically determining a mode of a data processing application
US9542173B2 (en) Dependency handling for software extensions
CN104679532A (en) Method and device for loading kernel module
CN110162344B (en) Isolation current limiting method and device, computer equipment and readable storage medium
CN107239313A (en) The upgrade method and storage medium of Spring application services
US20220326927A1 (en) Abort installation of firmware bundles
CN116302708A (en) Data backup method, device, equipment and storage medium based on load balancing
CN111666088A (en) Pod replacement method and device, electronic equipment and computer-readable storage medium
CN103309696B (en) Method and device for updating Java card extended library, and Java card
US10684895B1 (en) Systems and methods for managing containerized applications in a flexible appliance platform
CN114327484A (en) Multi-architecture supporting K8S integration and deployment method, system and storage medium
CN107391303A (en) Data processing method, device, system, server and computer-readable storage medium
CN110633098A (en) Realization mode of modularized service
US9760364B2 (en) Checks for software extensions
CN114153858A (en) Method and device for automatically updating tenant in MySQL table space
CN115113887A (en) Multi-security-software compatible configuration method, device, equipment and storage medium
CN112764729A (en) Application software development method and device, computer equipment and readable storage medium
CN114037496A (en) State machine-based order state management method, device, equipment and medium
CN112650598A (en) Multi-application access method for workflow system
US8887125B1 (en) Systems and methods for dynamic artefact substitution

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

Application publication date: 20180821