CN108572846B - Software management method and device - Google Patents
Software management method and device Download PDFInfo
- Publication number
- CN108572846B CN108572846B CN201810374468.5A CN201810374468A CN108572846B CN 108572846 B CN108572846 B CN 108572846B CN 201810374468 A CN201810374468 A CN 201810374468A CN 108572846 B CN108572846 B CN 108572846B
- Authority
- CN
- China
- Prior art keywords
- client
- information
- abnormal
- preset
- matching result
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to the technical field of software management, in particular to a software management method and a software management device, which are applied to terminal equipment associated with a server, and the method comprises the following steps: after the terminal equipment is started, starting protection service and client software, creating a thread corresponding to the client software, inquiring the number of channels between the terminal equipment and a server, creating channels connected with the server according to the number of created threads, wherein each thread corresponds to one channel, controlling the protection service to monitor whether the channel corresponding to each process is disconnected so as to judge whether the process is interrupted, when the threads are monitored to be interrupted, re-creating the threads, and controlling the protection service to create the connection between the channel corresponding to the threads and the server. By the method, the situation that the client software in the terminal equipment cannot be recovered in time when interrupted is effectively avoided.
Description
Technical Field
The invention relates to the technical field of software management, in particular to a software management method and device.
Background
The existing desktop computer, notebook computer, smart phone, tablet computer, etc. need to be booted before running programs, and allow a user to start various programs in a normal way after booting, such as multimedia playing programs, QQ or wechat, etc.
However, as the demand increases, programs become more complex and more numerous, when a program is to be started and executed, a processor acquires a program file from a non-volatile memory such as a hard disk, and then opens up a running space in a fast memory such as a Dynamic Random Access Memory (DRAM), the program is loaded in the fast memory, when the program is closed, the system recovers the occupied random memory space, and when the program is started again, the above steps need to be repeatedly executed, and since the process of acquiring the program file from the non-volatile memory such as the hard disk by the processor is generally slow, the program is started and the efficiency is low. Therefore, it is an urgent technical problem to provide a method capable of rapidly recovering software operation.
Disclosure of Invention
In view of the above, the present invention provides a software management method and apparatus, which effectively alleviate the above technical problems.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
a software management method is applied to a terminal device associated with a server, and comprises the following steps:
after the terminal equipment is started, starting protection service and starting client software;
creating a thread corresponding to the client software, and inquiring the number of channels between the terminal equipment and the server;
creating channels connected with the server according to the number of created threads, wherein each thread corresponds to one channel;
controlling the protection service to monitor whether channels corresponding to the threads are disconnected or not so as to judge whether the threads are interrupted or not;
and when the thread is interrupted, controlling the protection service to store the information of the thread so as to create the thread again according to the thread information, and controlling the protection service to create the connection between the corresponding channel of the thread and the server.
Optionally, in the software management method, the server stores a plurality of kinds of preset file information, where the preset file information includes a preset file name, and after the step of creating a channel connected to the server according to the number of created threads is performed, the method further includes:
controlling the protection service to acquire client file information corresponding to the client software and sending the client file information to a server through a corresponding channel;
acquiring a corresponding preset file name which is searched by the server based on the client file name included in the client file information, and matching preset file information corresponding to the preset file name with the client file information to obtain a matching result, wherein the matching result is the same or abnormal;
and when the matching result is abnormal, marking the client file name with the abnormal matching result, and controlling a display interface of the terminal equipment to display the client file name and the corresponding mark.
Optionally, in the software management method, the client file information includes file version information and file content information, the preset file information includes preset version information and preset content information, and the step of obtaining a corresponding preset file name that is found by the server based on the client file name included in the client file information, and matching the preset file information corresponding to the preset file name with the client file information to obtain a matching result includes:
acquiring a corresponding preset file name which is searched by the server based on the client file name included in the client file information, and respectively matching preset version information and preset content information corresponding to the preset file name with the file version information and the file content information to obtain a matching result, wherein the matching result is identical, abnormal in version or abnormal in content;
when the matching result is abnormal, the step of marking the client file name with the abnormal matching result comprises the following steps:
when the matching result is abnormal, performing version abnormity marking on the client file name with the matching result of abnormal version; or
And when the matching result is the content abnormity, marking the content abnormity of the client file name with the abnormal content matching result.
Optionally, in the software management method, after performing the steps of marking the client file name with the abnormal matching result and controlling a display interface of the terminal device to display the client file name and the corresponding mark when the matching result is abnormal, the method further includes:
when receiving a control command of a user on a display interface for controlling the area where the mark is located, determining a control command corresponding to the area where the controlled mark is located, wherein the control command is an update control command;
and acquiring corresponding preset file information from a channel corresponding to the thread to which the abnormal client file belongs according to the update control command, and updating the abnormal client file based on the preset file information.
Optionally, in the software management method, after the step of creating a channel connected to the server according to the number of created threads is performed, the method further includes:
and receiving an adjusting instruction input by a user based on the client software, and modifying the client software according to the adjusting instruction.
The invention also provides a software management device, which is applied to terminal equipment associated with a server, and comprises the following components:
the starting module is used for starting the protection service and starting the client software after the terminal equipment is started;
the first establishing module is used for establishing a thread corresponding to the client software and inquiring the number of channels between the terminal equipment and the server;
the second establishing module is used for establishing channels connected with the server according to the number of the established threads, and each thread corresponds to one channel;
the monitoring module is used for controlling the protection service to monitor whether channels corresponding to the threads are disconnected so as to judge whether the threads are interrupted;
and the recovery module is used for controlling the protection service to store the information of the thread when the thread is interrupted, so as to recreate the thread according to the information of the thread and control the protection service to recreate the connection between the channel corresponding to the thread and the server.
Optionally, in the software management apparatus, the server stores a plurality of preset file information, where the preset file information includes a preset file name, and the apparatus further includes:
the acquisition module is used for controlling the protection service to acquire client file information corresponding to the client software and send the client file information to a server through a corresponding channel;
the matching module is used for acquiring a corresponding preset file name which is found by the server based on the client file name included in the client file information, and matching the preset file information corresponding to the preset file name with the client file information to obtain a matching result, wherein the matching result is identical or abnormal;
and the marking module is used for marking the client file name with the abnormal matching result when the matching result is abnormal, and controlling a display interface of the terminal device to display the client file name and the corresponding mark.
Optionally, in the software management apparatus, the client file information includes file version information and file content information, the preset file information includes preset version information and preset content information, the matching module is further configured to obtain a corresponding preset file name found by the server based on the client file name included in the client file information, and match the preset version information and the preset content information corresponding to the preset file name with the file version information and the file content information respectively to obtain a matching result, where the matching result is identical, abnormal in version or abnormal in content;
the marking module is also used for marking the version abnormity of the client file name with the abnormal version matching result when the version is abnormal; or
And when the matching result is the content abnormity, marking the content abnormity of the client file name with the abnormal content matching result.
Optionally, in the software management apparatus, the apparatus further includes:
the command obtaining module is used for determining a control command corresponding to the area where the manipulated mark is located when the user manipulates the area where the mark is located on the display interface, wherein the control command is an update control command;
and the updating module is used for acquiring corresponding preset file information from a channel corresponding to the thread to which the abnormal client file belongs according to the updating control command, and updating the abnormal client file based on the preset file information.
Optionally, in the software management apparatus, the apparatus further includes:
and the adjusting module is used for receiving an adjusting instruction input by a user based on the client software and modifying the client software according to the adjusting instruction.
The invention provides a software management method and a device, which are characterized in that after a terminal device is started, a protection service is started, client software is started, threads corresponding to the client software are created, the number of channels between the terminal device and a server is inquired, channels connected with the server are created according to the number of created threads, each thread corresponds to one channel, the protection service is controlled to monitor whether the channels corresponding to the threads are disconnected or not so as to judge whether the threads are interrupted or not, when the threads are monitored to be interrupted, the threads are created again, and the protection service is controlled to create the connection between the channels corresponding to the threads and the server. The condition that the client software in the terminal equipment cannot be recovered in time when interrupted is effectively avoided.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a connection block diagram of a software management system according to an embodiment of the present invention.
Fig. 2 is a block diagram of a terminal device according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a software management method according to an embodiment of the present invention.
Fig. 4 is another flowchart illustrating a software management method according to an embodiment of the present invention.
Fig. 5 is another flowchart illustrating a software management method according to an embodiment of the present invention.
Fig. 6 is a connection block diagram of a software management apparatus according to an embodiment of the present invention.
Fig. 7 is another connection block diagram of the software management apparatus according to the embodiment of the present invention.
Fig. 8 is another connection block diagram of the software management apparatus according to the embodiment of the present invention.
Icon: 1-a software management system; 10-a terminal device; 12-a memory; 14-a processor; 20-a server; 100-a software management device; 110-a start-up module; 120-a first creation module; 130-a second creation module; 140-a monitoring module; 150-a recovery module; 160-an acquisition module; 170-a matching module; 180-a labeling module; 190-a command acquisition module; 210-an update module; 220-adjusting module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Referring to fig. 1, the present invention provides a software management system 1 according to an embodiment of the present invention, where the software management system 1 includes a terminal device 10 and a server 20, and the terminal device 10 is electrically connected to the server 20 to enable data interaction, so as to enable quick recovery of operation when software in the terminal device 10 is interrupted during operation.
The terminal device 10 is, but not limited to, an electronic device with data processing capability, such as a smart phone, a Personal Computer (PC), a tablet computer, and the like, and is not particularly limited herein.
In the present embodiment, the server 20 is understood as a service point providing processes, databases, and communication facilities. By way of example, server 20 may refer to a single physical processor with associated communications and data storage and repository facilities, or it may refer to an aggregation of processors, associated networks, and storage devices networked or clustered with services provided, and operating on software and one or more repository systems and resource centralized management applications. The server 20 may generally include one or more central processing units and memory units. The Server 20 may also include one or more mass storage devices, one or more power supplies, one or more wired or wireless network components, one or more input/output components, or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD.
Referring to fig. 2, the present invention provides a terminal device 10 applicable to the software management system 1, which includes a memory 12, a processor 14 and a software management apparatus 100.
In this embodiment, the memory 12 and the processor 14 are electrically connected directly or indirectly to enable data transfer or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The software management apparatus 100 includes at least one software functional module that can be stored in the memory 12 in the form of software or firmware (firmware). The processor 14 is used for executing executable modules stored in the memory 12, such as software functional modules and computer programs included in the software management device 100, so as to implement the software management method.
The Memory 12 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. Wherein the memory 12 is used for storing a program, and the processor 14 executes the program after receiving the execution instruction.
The processor 14 may be an integrated circuit chip having signal processing capabilities. The Processor 14 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be appreciated that the configuration shown in fig. 2 is merely illustrative and that the terminal device 10 may include more or fewer components than shown in fig. 2 or may have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
With reference to fig. 3, an embodiment of the present invention further provides a software management method applicable to the terminal device 10, where the method includes five steps S110 to S150.
Step S110: after the terminal device 10 is started, the protection service is started and the client software is started.
The protection service is a service program of the client, the mode for starting the protection service can be automatic starting or starting based on the operation of the user, and the mode for starting the client software can be automatic starting or starting based on the operation of the user.
Optionally, in this embodiment, the manner of starting the protection service is automatic starting, and the manner of starting the client software is starting based on an operation of a user. For example, when the client software is a QQ, a wechat, a browser, or the like, starting the client software is that the user clicks an icon corresponding to the client software to start.
Step S120: creating a thread corresponding to the client software, and inquiring the number of channels between the terminal device 10 and the server 20.
After the client software is started, threads are created to run the client software on the terminal device 10, each client software corresponds to one thread, and the client software generally needs to create a connection with the server 20 through a channel when performing information interaction. The channels between the different terminal devices 10 and the server 20 software may be the same or different.
Step S130: channels connected to the server 20 are created according to the number of created threads, one for each thread.
Specifically, when the client software is one, the number of the channels corresponding to the created connection is one, and when the number of the client software is multiple, the number of the channels corresponding to the created connection is multiple.
Step S140: and controlling the protection service to monitor whether the channel corresponding to each thread is disconnected so as to judge whether the thread is interrupted.
The method for controlling the protection service to monitor whether the channel corresponding to each thread is disconnected may be to control the protection service to monitor whether the channel corresponding to each thread is disconnected in real time, or may also monitor whether the channel corresponding to each thread is disconnected at intervals of a preset duration, which is not specifically limited herein, and may be selected according to actual requirements.
Optionally, in this embodiment, the manner of controlling the protection service to monitor whether the channel corresponding to each thread is disconnected is to control the protection service to monitor whether the channel corresponding to each thread is disconnected in real time.
Step S150: when the thread is interrupted, the protection service is controlled to store the information of the thread, so as to create the thread again according to the thread information, and the protection service is controlled to create the connection between the corresponding channel of the thread and the server 20.
Specifically, when the thread is disconnected, the corresponding channel is also disconnected, so that whether the thread is disconnected can be monitored by monitoring whether the channel is disconnected. And when the thread is disconnected, controlling the protection service to store the information of the thread into a cache associated with the protection service, so as to realize that the thread corresponding to the information is created again according to the stored information of the thread after the terminal is ended, so as to realize quick recovery when the thread is interrupted, and further realize quick recovery when the software service program is interrupted.
Referring to fig. 4, in order to facilitate quick recovery of the client software when the client software of the terminal device 10 is abnormal, optionally, in this embodiment, the server 20 stores a plurality of preset file information, where the preset file information includes a preset file name, and after the step of creating a channel connected to the server 20 according to the number of created threads is performed, the method further includes:
step S160: and controlling the protection service to acquire client file information corresponding to the client software and send the client file information to the server 20 through a corresponding channel.
Step S170: and acquiring a corresponding preset file name found by the server 20 based on the client file name included in the client file information, and matching the preset file information corresponding to the preset file name with the client file information to obtain a matching result, wherein the matching result is the same or abnormal.
Step S180: and when the matching result is abnormal, marking the client file name with the abnormal matching result, and controlling a display interface of the terminal device 10 to display the client file name and the corresponding mark.
Specifically, in this embodiment, the client file information includes file version information and file content information, the preset file information includes preset version information and preset content information, and the step of obtaining a matching result obtained by the server 20 searching for a corresponding preset file name based on a client file name included in the client file information and matching the preset file information corresponding to the preset file name with the client file information includes:
acquiring a corresponding preset file name searched by the server 20 based on the client file name included in the client file information, and matching preset version information and preset content information corresponding to the preset file name with the file version information and the file content information respectively to obtain a matching result, wherein the matching result is identical, abnormal in version or abnormal in content.
When the matching result is abnormal, the step of marking the client file name with the abnormal matching result comprises the following steps:
when the matching result is abnormal, performing version abnormity marking on the client file name with the matching result of abnormal version; or
And when the matching result is the content abnormity, marking the content abnormity of the client file name with the abnormal content matching result.
Through the setting, the client software is marked when the client software is abnormal so as to prompt a user, and the user can conveniently process according to prompt information.
Please refer to fig. 5, in order to further facilitate the user to process the client software, for example, update the abnormal client software. After the step of marking the client file name with the abnormal matching result and controlling the display interface of the terminal device 10 to display the client file name and the corresponding mark when the matching result is abnormal is executed, the method further includes:
step S190: when receiving a control command that a user controls the area where the mark is located on the display interface, determining the control command corresponding to the area where the controlled mark is located, wherein the control command is an update control command.
Step S210: and acquiring corresponding preset file information from a channel corresponding to the thread to which the abnormal client file belongs according to the update control command, and updating the abnormal client file based on the preset file information.
To further facilitate user processing of the client software, e.g., modification of the client software. Optionally, in this embodiment, after the step of creating a channel connected to the server 20 according to the number of created threads is performed, the method further includes:
and receiving an adjusting instruction input by a user based on the client software, and modifying the client software according to the adjusting instruction.
Specifically, the adjustment instruction may be, but is not limited to, an information adding instruction, an information deleting instruction, and an information modifying instruction, and is not limited to this.
Referring to fig. 6, on the basis of the foregoing, the present invention further provides a software management apparatus 100, which is applicable to the foregoing terminal device 10, where the software management apparatus 100 includes: an initiation module 110, a first creation module 120, a second creation module 130, a monitoring module 140, and a recovery module 150.
The starting module 110 is configured to start the protection service and start the client software after the terminal device 10 is started. In this embodiment, the starting module 110 may be configured to execute step S110 shown in fig. 3, and the foregoing description of step S110 may be referred to for a detailed description of the starting module 110.
The starting module 110 is further configured to obtain a plurality of face images, and perform rectification and scaling on each image to a set scale to obtain a scaled sample image.
The first creating module 120 is configured to create a thread corresponding to the client software, and query the number of channels between the terminal device 10 and the server 20. In this embodiment, the first creating module 120 may be configured to execute step S120 shown in fig. 3, and the foregoing description of step S120 may be referred to for specific description of the first creating module 120.
The second creating module 130 is configured to create channels connected to the server 20 according to the number of created threads, where each thread corresponds to one channel. In this embodiment, the second creating module 130 may be configured to execute the step S130 shown in fig. 3, and the detailed description of the second creating module 130 may refer to the step S130 described above.
The monitoring module 140 is configured to control the protection service to monitor whether a channel corresponding to each thread is disconnected to determine whether the thread is interrupted. In this embodiment, the monitoring module 140 may be configured to execute step S140 shown in fig. 3, and the foregoing description of step S140 may be referred to for the detailed description of the monitoring module 140.
The recovery module 150 is configured to control the protection service to store information of the thread when the thread is interrupted, to create the thread again according to the thread information, and to control the protection service to create a connection between a channel corresponding to the thread and the server 20. In this embodiment, the recovery module 150 may be configured to execute step S150 shown in fig. 3, and the foregoing description of step S150 may be referred to for specific description of the recovery module 150.
Referring to fig. 7, optionally, in this embodiment, the server 20 stores a plurality of preset file information, where the preset file information includes a preset file name, and the apparatus further includes: an acquisition module 160, a matching module 170, and a labeling module 180.
The obtaining module 160 is configured to control the protection service to obtain client file information corresponding to the client software and send the client file information to the server 20 through a corresponding channel. In this embodiment, the obtaining module 160 may be configured to execute step S160 shown in fig. 4, and for the detailed description of the obtaining module 160, reference may be made to the foregoing description of step S160.
The matching module 170 is configured to obtain a matching result obtained by matching the preset file information corresponding to the preset file name with the client file information by the server 20 based on the corresponding preset file name found by the client file name included in the client file information, where the matching result is the same or abnormal. In this embodiment, the matching module 170 may be configured to perform step S170 shown in fig. 4, and the foregoing description of step S170 may be referred to for specific description of the matching module 170.
The marking module 180 is configured to mark the client file name with the abnormal matching result when the matching result is abnormal, and control the display interface of the terminal device 10 to display the client file name and the corresponding mark. In this embodiment, the marking module 180 may be configured to perform step S180 shown in fig. 4, and for the detailed description of the marking module 180, reference may be made to the description of step S180.
Optionally, in this embodiment, the client file information includes file version information and file content information, the preset file information includes preset version information and preset content information, and the matching module 170 is further configured to obtain a corresponding preset file name found by the server 20 based on the client file name included in the client file information, and match the preset version information and the preset content information corresponding to the preset file name with the file version information and the file content information respectively to obtain a matching result, where the matching result is identical, abnormal in version, or abnormal in content.
The marking module 180 is further configured to mark a version exception for the client file name whose matching result is the version exception when the matching result is the version exception; or when the matching result is abnormal content, marking the abnormal content of the client file name with the abnormal content matching result.
Referring to fig. 8, optionally, in this embodiment, the software management apparatus 100 further includes: a command acquisition module 190 and an update module 210.
The command obtaining module 190 is configured to determine, when a control command corresponding to the area where the manipulated marker is located is received when the user manipulates the area where the marker is located on the display interface, where the control command is an update control command. In this embodiment, the command obtaining module 190 may be configured to execute step S190 shown in fig. 5, and the detailed description about the command obtaining module 190 may refer to the foregoing description about step S190.
The update module 210 is configured to obtain corresponding preset file information from a channel corresponding to a thread to which the abnormal client file belongs according to the update control command, and update the abnormal client file based on the preset file information. In this embodiment, the updating module 210 can be configured to execute step S210 shown in fig. 5, and the foregoing description of step S210 can be referred to for specific description of the updating module 210.
Optionally, in this embodiment, the software management apparatus 100 further includes an adjusting module 220.
The adjusting module 220 is configured to receive an adjusting instruction input by a user based on the client software, and modify the client software according to the adjusting instruction. For the adjustment module 220, refer to the above description of the software management method.
In summary, the software management method and apparatus provided by the present invention are applied to the terminal device 10 associated with the server 20, and the method includes: after the terminal device 10 is started, starting a protection service and client software, creating a thread corresponding to the client software, inquiring the number of channels between the terminal device 10 and the server 20, creating channels connected with the server 20 according to the number of created threads, wherein each thread corresponds to one channel, controlling the protection service to monitor whether the channel corresponding to each thread is disconnected to judge whether the thread is interrupted, when the thread is monitored to be interrupted, re-creating the thread, and controlling the protection service to create the connection between the channel corresponding to the thread and the server 20. By the method, the situation that the client software in the terminal device 10 cannot be recovered in time when interrupted is effectively avoided.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM) 12, a Random Access Memory (RAM) 12, a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A software management method is applied to a terminal device associated with a server, and is characterized by comprising the following steps:
after the terminal equipment is started, starting protection service and starting client software;
creating a thread corresponding to the client software, and inquiring the number of channels between the terminal equipment and the server;
creating channels connected with the server according to the number of created threads, wherein each thread corresponds to one channel;
controlling the protection service to monitor whether channels corresponding to the threads are disconnected or not so as to judge whether the threads are interrupted or not;
when the thread is interrupted, controlling the protection service to store the information of the thread so as to establish the thread again according to the thread information and controlling the protection service to establish the connection between the corresponding channel of the thread and the server;
the server stores a plurality of kinds of preset file information including a preset file name, and after the step of creating a channel connected with the server according to the number of created threads is performed, the method further includes:
controlling the protection service to acquire client file information corresponding to the client software and sending the client file information to a server through a corresponding channel;
acquiring a corresponding preset file name which is searched by the server based on the client file name included in the client file information, and matching preset file information corresponding to the preset file name with the client file information to obtain a matching result, wherein the matching result is the same or abnormal;
and when the matching result is abnormal, marking the client file name with the abnormal matching result, and controlling a display interface of the terminal equipment to display the client file name and the corresponding mark.
2. The software management method according to claim 1, wherein the client file information includes file version information and file content information, the preset file information includes preset version information and preset content information, and the step of obtaining a matching result obtained by the server finding a corresponding preset file name based on a client file name included in the client file information and matching the preset file information corresponding to the preset file name with the client file information includes:
acquiring a corresponding preset file name which is searched by the server based on the client file name included in the client file information, and respectively matching preset version information and preset content information corresponding to the preset file name with the file version information and the file content information to obtain a matching result, wherein the matching result is identical, abnormal in version or abnormal in content;
when the matching result is abnormal, the step of marking the client file name with the abnormal matching result comprises the following steps:
when the matching result is abnormal, performing version abnormity marking on the client file name with the matching result of abnormal version; or
And when the matching result is the content abnormity, marking the content abnormity of the client file name with the abnormal content matching result.
3. The software management method according to claim 1, wherein after performing the steps of labeling the client filename whose matching result is abnormal and controlling the display interface of the terminal device to display the client filename and the corresponding label when the matching result is abnormal, the method further comprises:
when receiving a control command of a user on a display interface for controlling the area where the mark is located, determining a control command corresponding to the area where the controlled mark is located, wherein the control command is an update control command;
and acquiring corresponding preset file information from a channel corresponding to the thread to which the abnormal client file belongs according to the update control command, and updating the abnormal client file based on the preset file information.
4. The software management method according to claim 1, wherein after the step of creating a channel for connection with the server according to the number of created threads is performed, the method further comprises:
and receiving an adjusting instruction input by a user based on the client software, and modifying the client software according to the adjusting instruction.
5. A software management apparatus applied to a terminal device associated with a server, the apparatus comprising:
the starting module is used for starting the protection service and starting the client software after the terminal equipment is started;
the first establishing module is used for establishing a thread corresponding to the client software and inquiring the number of channels between the terminal equipment and the server;
the second establishing module is used for establishing channels connected with the server according to the number of the established threads, and each thread corresponds to one channel;
the monitoring module is used for controlling the protection service to monitor whether channels corresponding to the threads are disconnected so as to judge whether the threads are interrupted;
the recovery module is used for controlling the protection service to store the information of the thread when the thread is interrupted, so as to establish the thread again according to the thread information and control the protection service to establish the connection between the corresponding channel of the thread and the server;
the server stores a plurality of preset file information, the preset file information comprises a preset file name, and the device further comprises:
the acquisition module is used for controlling the protection service to acquire client file information corresponding to the client software and send the client file information to a server through a corresponding channel;
the matching module is used for acquiring a corresponding preset file name which is found by the server based on the client file name included in the client file information, and matching the preset file information corresponding to the preset file name with the client file information to obtain a matching result, wherein the matching result is identical or abnormal;
and the marking module is used for marking the client file name with the abnormal matching result when the matching result is abnormal, and controlling a display interface of the terminal device to display the client file name and the corresponding mark.
6. The software management apparatus according to claim 5, wherein the client file information includes file version information and file content information, the preset file information includes preset version information and preset content information, the matching module is further configured to obtain a corresponding preset file name that is found by the server based on the client file name included in the client file information, and match the preset version information and the preset content information corresponding to the preset file name with the file version information and the file content information respectively to obtain a matching result, where the matching result is identical, version abnormal or content abnormal;
the marking module is also used for marking the version abnormity of the client file name with the abnormal version matching result when the version is abnormal; or
And when the matching result is the content abnormity, marking the content abnormity of the client file name with the abnormal content matching result.
7. The software management apparatus according to claim 5, wherein said apparatus further comprises:
the command obtaining module is used for determining a control command corresponding to the area where the manipulated mark is located when the user manipulates the area where the mark is located on the display interface, wherein the control command is an update control command;
and the updating module is used for acquiring corresponding preset file information from a channel corresponding to the thread to which the abnormal client file belongs according to the updating control command, and updating the abnormal client file based on the preset file information.
8. The software management apparatus according to claim 5, wherein said apparatus further comprises:
and the adjusting module is used for receiving an adjusting instruction input by a user based on the client software and modifying the client software according to the adjusting instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810374468.5A CN108572846B (en) | 2018-04-24 | 2018-04-24 | Software management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810374468.5A CN108572846B (en) | 2018-04-24 | 2018-04-24 | Software management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108572846A CN108572846A (en) | 2018-09-25 |
CN108572846B true CN108572846B (en) | 2021-06-25 |
Family
ID=63575243
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810374468.5A Active CN108572846B (en) | 2018-04-24 | 2018-04-24 | Software management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108572846B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110380839A (en) * | 2019-07-16 | 2019-10-25 | 北京达佳互联信息技术有限公司 | Adjust method and device, the server of signalling service channel capacity |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8522232B1 (en) * | 2009-07-06 | 2013-08-27 | Arris Enterprises, Inc. | Decoupling software loads for customer premise equipment |
CN104281477A (en) * | 2014-10-13 | 2015-01-14 | 中国外汇交易中心 | Automatic software deployment method for computer system |
CN105303103A (en) * | 2015-10-14 | 2016-02-03 | 北京奇虎科技有限公司 | Method for protecting service process in mobile terminal and mobile terminal |
CN106775981A (en) * | 2016-12-15 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of process handling method, device and computer-readable medium |
CN107908478A (en) * | 2017-11-30 | 2018-04-13 | 努比亚技术有限公司 | Memory method for cleaning, mobile terminal and computer-readable recording medium |
-
2018
- 2018-04-24 CN CN201810374468.5A patent/CN108572846B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8522232B1 (en) * | 2009-07-06 | 2013-08-27 | Arris Enterprises, Inc. | Decoupling software loads for customer premise equipment |
CN104281477A (en) * | 2014-10-13 | 2015-01-14 | 中国外汇交易中心 | Automatic software deployment method for computer system |
CN105303103A (en) * | 2015-10-14 | 2016-02-03 | 北京奇虎科技有限公司 | Method for protecting service process in mobile terminal and mobile terminal |
CN106775981A (en) * | 2016-12-15 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of process handling method, device and computer-readable medium |
CN107908478A (en) * | 2017-11-30 | 2018-04-13 | 努比亚技术有限公司 | Memory method for cleaning, mobile terminal and computer-readable recording medium |
Also Published As
Publication number | Publication date |
---|---|
CN108572846A (en) | 2018-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180129520A1 (en) | Method and apparatus for starting virtual machine | |
CN110362418B (en) | Abnormal data recovery method and device, server and storage medium | |
CN112486629A (en) | Micro-service state detection method and device, electronic equipment and storage medium | |
CN108255735B (en) | Associated environment testing method, electronic device and computer readable storage medium | |
CN112115105A (en) | Service processing method, device and equipment | |
CN114706658A (en) | Container mirror image data processing method, device, equipment and medium | |
CN113190152A (en) | Method and device for switching application program theme | |
CN108572846B (en) | Software management method and device | |
CN111580948A (en) | Task scheduling method and device and computer equipment | |
CN113641936B (en) | Method, device, electronic equipment and storage medium for page skip | |
CN114546588A (en) | Task deployment method and device, storage medium and electronic device | |
CN113961228A (en) | Change reminding method, device, equipment and storage medium | |
CN110413921B (en) | Webpage loading method and device, computer equipment and storage medium | |
CN109462649B (en) | Remote file analysis method, device and system and storage medium thereof | |
CN115495161B (en) | BIOS option modification validation method and device and storage medium | |
CN116149941A (en) | Monitoring method and device of server component, server and storage medium | |
CN109819034A (en) | File uploading method, device, terminal and storage medium | |
CN113641419A (en) | File loading method and computer readable storage medium | |
CN113297491A (en) | Service subscription information pushing method and system based on social network | |
US20150350340A1 (en) | Management of headless hardware in data center | |
CN113419760A (en) | Method, apparatus, computer device and medium for opening/saving project file | |
CN112579247A (en) | Method and device for determining task state | |
CN108595206B (en) | Finance and tax software management method and device | |
US20140108413A1 (en) | Responsive Images Service | |
US9727378B2 (en) | Persistent unenrollment for devices under management |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210318 Address after: 4 / F, block B, building 5, No. 200, Tianfu 5th Street, high tech Zone, Chengdu, Sichuan 610000 Applicant after: Zhiyun Technology Co.,Ltd. Address before: No. 1501, 15th floor, building 12, 219 Tianhua 2nd Road, hi tech Zone, Chengdu, Sichuan 610000 Applicant before: CHENGDU ZHIYUN SCIENCE & TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |