Data processing method and system

By adopting a multi-thread processing mechanism in the game downloader, the self-update of the game downloader is realized, which solves the problem of long update time in the existing technology and improves the user experience and game download speed.

CN115080141BActive Publication Date: 2024-10-29ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210621944.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-10-29
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

The self-updating algorithm of existing game downloaders takes a long time, affecting the user experience, and players need to wait for the update process, which affects the game download speed.

Method used

The startup module and downloader component are used for multi-thread processing. The startup module loads the initial version after receiving the startup command. The downloader component processes user operation instructions through the first thread and detects version update information through the second thread to achieve silent downloading of the updated version in the background. Avoid affecting user experience.

Benefits of technology

The version update efficiency is improved, and the update is completed without the user noticing, which improves the user experience and ensures the smoothness and stability of the game download process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115080141B_ABST
    Figure CN115080141B_ABST
Patent Text Reader

Abstract

The present application provides a data processing method and system, which is applied to a terminal, wherein the terminal includes a startup module and a downloader component of a target object, wherein the method includes the startup module executing a startup process upon receiving a startup instruction, determining a corresponding initial version storage unit according to a preset selection rule, and loading an initial version of a downloader component from the initial version storage unit; the downloader component processes a user's operation instruction for a target object through a first thread, detects version update information through a second thread, and downloads an updated version storage unit through the second thread when version update information is detected. The data processing method implements the update of the startup module and the downloader component in the form of a single process, thereby improving the efficiency of version update; at the same time, the downloader component downloads and updates the updated version in the background through a multi-threaded manner without affecting other operations of the user, thereby achieving user-unawareness and improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more particularly to a data processing method, a data processing system, a computing device, and a computer-readable storage medium. Background Art

[0002] With the development of Internet technology, the types and content of games are becoming more and more abundant. In order to increase the download speed of games, many game manufacturers use game downloaders to download games.

[0003] However, in the prior art, the self-update algorithm of the game downloader is relatively old and time-consuming, and players need to wait every time they encounter an update of the game downloader, which affects the experience. Summary of the invention

[0004] In view of this, the embodiment of the present application provides a data processing method to solve the technical defects existing in the prior art. The embodiment of the present application also provides a data processing system, a computing device, and a computer-readable storage medium.

[0005] According to a first aspect of an embodiment of the present application, a data processing method is provided, the method being applied to a terminal, the terminal comprising a start module and a downloader component of a target object, the method comprising:

[0006] The startup module, upon receiving the startup instruction, executes the startup process, determines the corresponding initial version storage unit according to a preset selection rule, and loads the downloader component of the initial version from the initial version storage unit;

[0007] The downloader component processes the user's operation instructions for the target object through a first thread, detects version update information through a second thread, and downloads an updated version storage unit through the second thread when version update information is detected, wherein the updated version storage unit includes an updated version startup module and a downloader component.

[0008] According to a second aspect of an embodiment of the present application, a data processing system is provided, including a startup module and a downloader component of a target object, wherein:

[0009] The startup module is configured to execute the startup process upon receiving the startup instruction, determine the corresponding initial version storage unit according to a preset selection rule, and load the downloader component of the initial version from the initial version storage unit;

[0010] The downloader component is configured to process the user's operation instructions for the target object through a first thread, detect version update information through a second thread, and download an updated version storage unit through the second thread when version update information is detected, wherein the updated version storage unit includes an updated version startup module and a downloader component.

[0011] According to a third aspect of an embodiment of the present application, a computing device is provided, including:

[0012] Memory and processor;

[0013] The memory is used to store computer executable instructions, and the processor implements the steps of the above data processing method when executing the computer executable instructions.

[0014] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned data processing method are implemented.

[0015] According to a fifth aspect of an embodiment of the present application, a chip is provided, which stores a computer program, and the computer program implements the steps of the above-mentioned data processing method when executed by the chip.

[0016] The data processing method provided in the present application is applied to a terminal, and the terminal includes a startup module and a downloader component of a target object. The method includes: the startup module, when receiving a startup instruction, executes a startup process, determines a corresponding initial version storage unit according to a preset selection rule, and loads the downloader component of the initial version from the initial version storage unit; the downloader component processes the user's operation instructions for the target object through a first thread, detects version update information through a second thread, and downloads an updated version storage unit through the second thread when version update information is detected, wherein the updated version storage unit includes the startup module and downloader component of the updated version.

[0017] The data processing method realizes the update of the startup module and the downloader component in the form of a single process of the startup module, thereby improving the efficiency of version update; at the same time, the downloader component downloads and updates the updated version in the background through multi-threading without affecting other operations of the user, thereby achieving user-unawareness and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a specific processing diagram of a data processing method provided by an embodiment of the present application applied to downloader self-update in a game scenario;

[0019] Figure 2is a flow chart of a data processing method provided by an embodiment of the present application;

[0020] Figure 3 is a schematic diagram of a directory at the same level in a data processing method provided in an embodiment of the present application;

[0021] Figure 4 It is a structural diagram of a data processing system provided by an embodiment of the present application;

[0022] Figure 5 It is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0023] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0024] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to and includes any or all possible combinations of one or more associated listed items.

[0025] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.

[0026] First, the terms involved in one or more embodiments of the present invention are explained.

[0027] Self-update: refers to the application process that needs to rely on its own code to update to the latest version of code and data without relying on the assistance of other processes. It is at the source of the update chain.

[0028] Downloader: In the embodiments of the present application, the downloader can be understood as a downloader component, which refers to a general program that has at least a self-update function. Any general program that has the function of downloading itself and self-updating can be called a downloader component.

[0029] Launcher: refers to a shell program that can call other programs or load other components. A shell program can be understood as a single-function program, which basically only has a startup function. The core function is implemented by loading other components. For example, the launcher can choose to load a certain version of the downloader component to implement the download function.

[0030] Installation package: A data package that can install a certain version of the launcher and downloader on the user's computer.

[0031] In the present application, a data processing method is provided. The present application also relates to a data processing system, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0032] See also Figure 1 , Figure 1 This is a specific processing diagram of a data processing method provided in one embodiment of the present application applied to downloader self-update in a game scenario.

[0033] Specifically, when the data processing method is applied to a game scenario, the downloader can be understood as a downloader for a certain game, such as a downloader for game A.

[0034] During specific implementation, the user installs the launcher and downloader of a certain version of game A (such as version A) on the terminal, and obtains the launcher, downloader and storage unit of version A named after version A (such as a folder or version directory), wherein the version A storage unit and the launcher of version A belong to the same directory, and the version A storage unit stores the version components and data required by the downloader of version A.

[0035] The launcher of version A starts and executes the startup process. When only the version A storage unit currently exists, the version A launcher loads the downloader component of version A from the version A storage unit; the downloader component of version A downloads or executes game A according to user operations, and at the same time periodically checks in the background whether there is the latest version.

[0036] When the downloader component of version A detects the existence of the latest version B, it silently downloads the storage unit of version B in the background, and decompresses the downloaded storage unit of version B to the same directory as the storage unit of version A; after the self-update is completed, the downloader of version A moves the running launcher of version A in the outer directory back to the storage unit of version A, and moves the launcher of version B from the storage unit of version B to the outer directory. At the same time, the downloader of version A prompts the user that there is an update, and the user can freely choose to update; if the user chooses to update the version, the downloader of version A will run the launcher of version B and close itself, while the launcher of version B starts, executes the startup process, and loads the downloader component of version B from the storage unit of version B; at this time, the downloader component of version B downloads or executes game A according to the user's operation, and periodically checks whether it has the latest version in the background.

[0037] In addition, three or more versions of storage units can be stored in the same directory of the storage unit of version A and the storage unit of version B at the same time. When problems occur during the update process of the updated version, it will not affect the normal operation of game A. Game A can still use other versions of downloaders and launchers to operate game A. In order to avoid resource occupation caused by too many versions of storage units, a version threshold can be set. When it is greater than the version threshold, the oldest version of the storage unit is deleted. For example, if the version threshold is 3, then three versions of storage units can exist at the same time. When there is an updated version, the oldest version of the storage unit can be deleted.

[0038] In the data processing method provided by the embodiment of the present application, the downloader uses the above method to perform self-update, and any error in any step of the above update process will not affect the normal experience of the user. For example, when the latest version is downloaded in the background, a network error may occur, resulting in the failure of downloading the version storage unit, or the decompression failure may be caused by the obstruction of the anti-virus software, etc., and the user is unaware of the download failure this time, and the downloader will keep trying to re-download in the background until the update is completed; at the same time, each time the launcher starts the process, it will find a suitable version storage unit to start, the task is very small, and basically no subsequent code content will be updated, even if the replacement of the launcher fails, the launcher using the old version can also find a suitable version of the storage unit; and if there is a problem with the update package (the storage unit of the updated version), such as being killed by anti-virus software or artificially, causing the current version to be unable to open, the launcher will continue to select other suitable old versions of the storage unit to load the downloader, and re-perform the self-update process in the background; and after the update fails, all rescue measures are not effective, and the user can also directly use the latest installation package to run, the installation package will not overwrite the original directory, but also generate a directory of the latest version, so that the user can resume normal use without uninstalling.

[0039] See also Figure 2 , Figure 2 A flowchart of a data processing method provided according to an embodiment of the present application is shown, which specifically includes the following steps:

[0040] The method is applied to a terminal, the terminal includes a start module and a downloader component of a target object, and the method includes:

[0041] Step 202: Upon receiving the startup instruction, the startup module executes the startup process, determines the corresponding initial version storage unit according to a preset selection rule, and loads the downloader component of the initial version from the initial version storage unit.

[0042] Specifically, the specific application scenarios of the data processing method are different, and the target objects are also different; for example, if the data processing method is applied to a game scenario, the target object can be understood as any game, and if the data processing method is applied to an instant messaging scenario, the target object can be understood as any instant messaging program, etc.

[0043] For ease of understanding, in the embodiments of the present application, the data processing method is applied to a game scenario, and the target object is a game as an example for detailed description; however, it is not limited to the data processing method being applicable to downloader self-update implementations in other scenarios.

[0044] The start instruction may be initiated by the user through double-clicking or other operation modes, and the start module here may be understood as the starter in the above embodiment, and the downloader component may be understood as the downloader in the above embodiment.

[0045] The preset selection rules can be set according to actual applications. For example, in the embodiment of the present application, the preset selection rules can include two types. The first type can select the selection rules corresponding to its version, and the second type can select the selection rules of the latest version. The specific implementation methods of the two preset selection rules are described in detail below.

[0046] For example, when the preset selection rule is the first selection rule, the specific implementation method of determining the corresponding initial version storage unit according to the preset selection rule is as follows:

[0047] The step of determining the corresponding initial version storage unit according to the preset selection rule includes:

[0048] The startup module determines the current version information, and determines the corresponding initial version storage unit from the same-level directory according to the current version information.

[0049] The current version information can be understood as the version information of the startup module; each startup module and downloader component has its version number.

[0050] Specifically, the startup module executes the startup process, confirms its current version information, such as version A, and selects the version A storage unit from the same-level directory as the initial version storage unit, and then records the downloader component in the version A storage unit.

[0051] In the data processing method provided in the embodiment of the present application, when the startup module is started for the first time after installation, the startup module can select the corresponding initial version storage unit according to its own version information, load the initial version downloader component from the initial version storage unit, and perform subsequent target object processing to ensure the correct selection of the version.

[0052] In the second case, if the startup module is not started for the first time, the latest version of the storage unit can be selected as the initial version storage unit during this startup, so that the user can perform subsequent target object processing based on the latest version of the downloader component, thereby improving the user experience. The specific implementation method is as follows:

[0053] The step of determining the corresponding initial version storage unit according to the preset selection rule includes:

[0054] The startup module determines all version information in the directory at the same level, and determines the latest version storage unit as the corresponding initial version storage unit according to the version information.

[0055] The same-level directory can be understood as a directory at the same level as the startup module.

[0056] See also Figure 3 , Figure 3 A schematic diagram of a same-level directory in a data processing method provided according to an embodiment of the present application is shown.

[0057] Figure 3 The seasungame.exe in the file can be understood as the startup module, and seasungame_2.0.0.147, seasungame_2.0.0.148, etc. can be understood as storage units of various versions belonging to the same directory as the startup module, and each version's storage unit includes many download, run and other functional components of that version.

[0058] In specific implementation, when the startup module is not started for the first time and there are multiple version storage units in the same-level directory, first determine all the version information in the same-level directory, and then determine the latest version storage unit from all the version information (such as version number) as the initial version storage unit.

[0059] In the data processing method provided in the embodiment of the present application, the startup module will select a suitable version storage unit for startup each time it is started, so as to ensure that the user can use the latest version of the downloader component to process the target object each time, thereby improving the user experience.

[0060] In specific implementation, upon receiving the startup instruction, the startup module executes the startup process, selects the initial version storage unit from the same-level directory according to the preset selection rules, and loads the initial version of the downloader component from the initial version storage unit; in actual application, the user will first install a certain version of the startup module and downloader component on his terminal, and obtain a storage unit named after the version, and then move the startup module of the version out of the storage unit named after the version, so that the startup module of the version and the storage unit named after the version belong to the same-level directory. At this time, upon receiving the startup instruction, the startup module of the version will perform the above operation.

[0061] Step 204: The downloader component processes the user's operation instructions for the target object through the first thread, detects version update information through the second thread, and downloads the updated version storage unit through the second thread when the version update information is detected, wherein the updated version storage unit includes the updated version startup module and downloader component.

[0062] Among them, the downloader component can work through multiple threads. For example, the first thread processes the user's operation instructions for the target object, and the second thread detects version updates and downloads. Through these different threads, the version update is made user-unaware, thereby improving the user experience.

[0063] Specifically, the specific implementation method of processing the user's operation instruction for the target object through the first thread is as follows:

[0064] The processing of the user's operation instruction for the target object by the first thread includes:

[0065] The downloader component receives an operation instruction from a user for the target object;

[0066] In a case where it is determined that the operation instruction is an instruction to download the target object, downloading the target object through the first thread according to the download instruction;

[0067] In a case where it is determined that the operation instruction is a control instruction of the target object, controlling the target object through the first thread according to the control instruction; and

[0068] In a case where it is determined that the operation instruction is a start instruction of the target object, the target object is started through the first thread according to the start instruction.

[0069] Among them, the target objects are different, the user's operation instructions for the target objects are different, and the operations on the target objects through the first thread are also different.

[0070] Taking the target object as a game as an example, the specific implementation method of processing the user's operation instructions for the target object through the first thread is described in detail below.

[0071] During specific implementation, the downloader component receives the user's operation instructions for the game. When it is determined that the operation instruction is a game download instruction, the game is downloaded through the first thread according to the download instruction; when it is determined that the operation instruction is a game control instruction, the movement of characters or props in the game, or the increase of character skills, etc. is controlled through the first thread according to the control instruction; when it is determined that the operation instruction is a game startup instruction, the game is started through the first thread according to the startup instruction.

[0072] In addition, in the prior art, dual processes are generally used to update the downloader component, and in dual processes, the launcher only evokes the downloader process in the corresponding version directory and then closes itself; that is, in dual processes, the launcher is a process, and the downloader is also a process, not some components. Such a disadvantage is that it is necessary to prevent the old version of the downloader from being directly started by the user (because it is impossible to predict what operations the user will do, such as the user himself makes a shortcut to point to the old version of the downloader, then there is no version to delete the old version, and each startup can only be started from the old version), and for the game platform, which can only run one downloader process at the same time, the logical judgment of multiple processes becomes complicated. If the user starts multiple times, it is necessary to query the process table to see if there is another process; and in the data processing method provided in the embodiment of the present application, the launcher adopts a single process operation, and the downloader is subsequently loaded into the launcher process as a component. The downloader is a component, and the above problem will not exist; in addition, in the case of a startup failure in the new version directory, the return value of the component is much faster than the return value of the process, and the available version directory can be switched to more quickly, so that the player is unaware.

[0073] When performing version update detection through the second thread, in order to avoid wasting resources, detection can be performed according to a scheduled task instead of performing version update detection in real time. The specific implementation method is as follows:

[0074] The detecting version update information through the second thread, and downloading the updated version storage unit through the second thread when the version update information is detected, comprises:

[0075] The downloader component detects version update information through a second thread according to a preset time interval, and downloads the updated version storage unit through the second thread when version update information is detected.

[0076] The preset time interval may be set according to actual application, for example, the preset time interval may be set to 3 minutes or 5 minutes.

[0077] Taking the preset time interval of 5 minutes as an example; in the specific implementation, the downloader component detects version update information through the second thread every 5 minutes. When version update information is detected, the updated version storage unit is downloaded through the second thread, wherein the updated version storage unit includes the updated version's launcher and downloader.

[0078] In the data processing method provided in the embodiment of the present application, since there is no strict limit on the version update time in the specific application scenario, in order to save processing resources, a preset time interval can be set so that the downloader component can perform version update detection and download regularly according to the preset time interval, so as to save network resources and make the operation of the target object more streamlined, thereby improving the user experience.

[0079] In addition, after downloading the updated version storage unit, the downloader component will store the updated version storage unit in the same directory as the initial version storage unit, so that the subsequent startup module can select the latest version storage unit from the same directory to load the downloader component, thereby improving the user experience. The specific implementation method is as follows:

[0080] After the updating version storage unit is downloaded through the second thread when the version update information is detected, the method further includes:

[0081] The downloader component stores the updated version storage unit in a directory at the same level as the initial version storage unit.

[0082] Still available Figure 3 ,like Figure 3 The seasungame_2.0.0.147 is the initial version storage unit, and seasungame_2.0.0.148 is the updated version storage unit, so seasungame_2.0.0.147 and seasungame_2.0.0.148 belong to the same level directory.

[0083] In the actual process of version update, in order to avoid the update version storage unit carrying viruses and causing the update version file to be unsafe, or the update version storage unit having components missing and causing the update version file to be incomplete, the downloader component will first download the update version file to the cache file, decompress and detect it in the cache file, and only store the update version storage unit in the same directory as the initial version storage unit if there are no such problems. The specific implementation method is as follows:

[0084] The step of storing the updated version storage unit in a directory at the same level as the initial version storage unit includes:

[0085] The downloader component downloads the updated version storage unit to a cache file for decompression, and when it is determined that the decompressed updated version storage unit meets the preset update condition, stores the decompressed updated version storage unit in a directory at the same level as the initial version storage unit.

[0086] The preset update condition may be set according to actual application. For example, the preset update condition may be understood as a condition such as no software virus or no component missing.

[0087] During specific implementation, the downloader component will first download the updated version storage unit to the cache file for decompression, and then detect the decompressed updated version storage unit. Only when it is determined that the updated version storage unit meets the preset update conditions will the decompressed and detected updated version storage unit be stored in the same directory as the initial version storage unit, waiting to be loaded and updated.

[0088] At the same time, after the downloader component downloads the updated version storage unit, the initial version of the startup module can be replaced with the updated version of the startup module, so that the next time the startup module is started, the updated version of the downloader component can be directly loaded without user perception. The specific implementation method is as follows:

[0089] After storing the updated version storage unit in the directory at the same level as the initial version storage unit, it also includes:

[0090] The downloader component moves the startup module of the initial version from the outer directory to the initial version storage unit, and moves the startup module of the updated version in the updated version storage unit from the updated version storage unit to the outer directory.

[0091] The outer directory can be understood as an outer file of a storage unit. For example, if the startup module of version A is outside the storage unit of version A, it can be said that the startup module of version A is in the outer directory of the storage unit of version A.

[0092] In actual applications, after the downloader component completes downloading the updated version storage unit, it will move the initial version's startup module from the outer directory to the initial version storage unit, and then move the updated version's startup module in the updated version storage unit from the updated version storage unit to its outer directory, so that when the subsequent startup module is triggered, the updated version's startup module executes the startup process and loads the updated version of the downloader component from the updated version storage unit to process the target object.

[0093] After the updated version startup module in the updated version storage unit is moved from the updated version storage unit to the outer directory, the initial version downloader component closes itself and runs the updated version startup module at the same time, so that the user can process the target object with the updated version startup module and the downloader component. The specific implementation method is as follows:

[0094] After the updating version startup module in the updating version storage unit is moved from the updating version storage unit to the outer directory, the method further includes:

[0095] The downloader component closes the downloader component of the initial version and runs the startup module of the updated version.

[0096] In actual applications, due to different user operating habits, not all users are used to updating versions. In order to improve the user experience, the updated version of the startup module and downloader component will be used to process the target object only on the premise of ensuring the user's willingness. The specific implementation method is as follows:

[0097] The step of closing the downloader component of the initial version and running the startup module of the updated version includes:

[0098] The downloader component sends a notification of successful version update to the user, and upon receiving an update instruction from the user, closes the downloader component of the initial version and runs the startup module of the updated version.

[0099] Specifically, after the initial version of the downloader component moves the startup module of the updated version to the outer directory, it will send a version update notification to the user. After receiving the user's confirmation update instruction, the initial version of the downloader component will be closed and the startup module of the updated version will be run at the same time, thereby achieving version updates while ensuring the user's wishes.

[0100] At the same time, in order to avoid problems with the downloaded updated version storage unit, which may cause the target object to fail to run, even if the updated version storage unit is downloaded, the previous old version storage unit will not be deleted; and in order to avoid the waste of resources caused by the existence of multiple version storage units, a preset number threshold is set in the embodiment of the present application to monitor the number of version storage units, which ensures that the updated version will not overwrite the previous version and that there will not be multiple versions at the same time. The specific implementation method is as follows:

[0101] After storing the updated version storage unit in the directory at the same level as the initial version storage unit, the method further includes:

[0102] The downloader component determines and deletes a target version storage unit from the version storage units according to a preset deletion rule when determining that the number of version storage units existing in the same-level directory is greater than or equal to a preset number threshold.

[0103] The preset quantity threshold may be set according to actual application, for example, the preset quantity threshold may be 3 or 5.

[0104] In specific implementation, the downloader component of the initial version, when determining that the number of version storage units existing in the same-level directory is greater than or equal to a preset number threshold, determines and deletes the target version storage unit from the version storage unit according to the preset deletion rule; wherein the preset deletion rule can be understood as deleting the oldest version file.

[0105] Taking the preset number threshold of 3 as an example, the downloader component of the initial version, when determining that the number of version storage units existing in the same-level directory is greater than or equal to 3, determines and deletes the oldest version storage unit from all current version storage units.

[0106] In the data processing method provided in the embodiment of the present application, a multi-version directory structure is adopted to facilitate users, operation and maintenance personnel, etc. to perform version rollback switching; for example, game players can quickly switch between the official version and the trial version without repeatedly re-downloading; at the same time, when a serious error occurs on the external network, the operation and maintenance personnel can release an old version, and users can roll back to the old version without downloading, thereby improving the user experience. In actual applications, the downloader component often maintains three version directories, and the older version directories will be cleaned up to avoid resource occupation.

[0107] The data processing method provided in the embodiment of the present application implements the update of the startup module and the downloader component in the form of a single process of the startup module, thereby improving the efficiency of version update; at the same time, the downloader component downloads and updates the updated version in the background through multi-threading without affecting other operations of the user, thereby achieving user-unawareness and improving user experience.

[0108] When this data processing method is applied in a game scenario, the entire update download process is imperceptible to the player. When the player is prompted, the update download has been completed. Even if the update download fails, the player is unaware of it, and the downloader component will retry the download in multiple ways without affecting the player's operation.

[0109] Specifically, the data processing method can update without the aid of additional update programs, and only uses an update structure of a launcher plus multiple version directories. It has delay (that is, players are unaware, which speeds up the game process and improves the experience), rollback switching (that is, supports more new features), high robustness (that is, greatly reduces the probability of self-update problems. Self-update is the source of the update chain. Once a problem occurs in the self-update, the subsequent repair process cannot be implemented), and can check for updates anytime and anywhere to ensure that players can be updated to the latest version. In addition to the installation function, the installation package itself has also added an update function. If a problem occurs during the installation process, the player does not need to uninstall and reinstall, and can use the installation package to manually update.

[0110] Corresponding to the above method embodiment, the present application also provides a data processing system embodiment, Figure 4 FIG. 1 shows a schematic diagram of a data processing system provided by an embodiment of the present application. Figure 4 As shown, the system includes a target object launch module 402 and a downloader component 404, wherein:

[0111] The startup module 402 is configured to execute the startup process upon receiving the startup instruction, determine the corresponding initial version storage unit according to a preset selection rule, and load the downloader component of the initial version from the initial version storage unit;

[0112] The downloader component 404 is configured to process the user's operation instructions for the target object through a first thread, detect version update information through a second thread, and download an updated version storage unit through the second thread when version update information is detected, wherein the updated version storage unit includes an updated version startup module and a downloader component.

[0113] Optionally, the startup module 402 determines current version information, and determines a corresponding initial version storage unit from a directory at the same level according to the current version information.

[0114] Optionally, the startup module 402 determines all version information in the directory at the same level, and determines the latest version storage unit as the corresponding initial version storage unit according to the version information.

[0115] Optionally, the downloader component 404 receives an operation instruction from a user for the target object;

[0116] In a case where it is determined that the operation instruction is an instruction to download the target object, downloading the target object through the first thread according to the download instruction;

[0117] In a case where it is determined that the operation instruction is a control instruction of the target object, controlling the target object through the first thread according to the control instruction; and

[0118] In a case where it is determined that the operation instruction is a start instruction of the target object, the target object is started through the first thread according to the start instruction.

[0119] Optionally, the downloader component 404 detects version update information through a second thread according to a preset time interval, and downloads the updated version storage unit through the second thread when version update information is detected.

[0120] Optionally, the downloader component 404 stores the updated version storage unit in a directory at the same level as the initial version storage unit.

[0121] Optionally, the downloader component 404 downloads the updated version storage unit to a cache file for decompression, and when it is determined that the decompressed updated version storage unit meets a preset update condition, stores the decompressed updated version storage unit in a directory at the same level as the initial version storage unit.

[0122] Optionally, the downloader component 404 moves the startup module of the initial version from the outer directory to the initial version storage unit, and moves the startup module of the updated version in the updated version storage unit from the updated version storage unit to the outer directory.

[0123] Optionally, the downloader component 404 closes the downloader component of the initial version and runs the startup module of the updated version.

[0124] Optionally, the downloader component 404 sends a version update success notification to the user, and upon receiving an update instruction from the user, closes the downloader component of the initial version and runs the startup module of the updated version.

[0125] Optionally, the downloader component 404, when determining that the number of version storage units existing in the same-level directory is greater than or equal to a preset number threshold, determines and deletes a target version storage unit from the version storage units according to a preset deletion rule.

[0126] The data processing system provided in the embodiment of the present application implements the update of the startup module and the downloader component in the form of a single process of the startup module, thereby improving the efficiency of version update; at the same time, the downloader component downloads and updates the updated version in the background through multi-threading without affecting other operations of the user, thereby achieving user-unawareness and improving user experience.

[0127] The above is a schematic scheme of a data processing system of the present embodiment. It should be noted that the technical scheme of the data processing system and the technical scheme of the above-mentioned data processing method belong to the same concept. For the details not described in detail in the technical scheme of the data processing system, please refer to the description of the technical scheme of the above-mentioned data processing method. In addition, the various components in the device embodiment should be understood as functional modules that must be established to implement each step of the program flow or each step of the method, and each functional module is not an actual functional division or separation definition. The device claim defined by such a group of functional modules should be understood as a functional module architecture that mainly implements the solution through the computer program recorded in the specification, and should not be understood as a physical device that mainly implements the solution through hardware.

[0128] Figure 5 The structure block diagram of a computing device 500 provided according to an embodiment of the present specification is shown. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.

[0129] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0130] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 5 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0131] The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 500 may also be a mobile or stationary server.

[0132] The processor 520 is used to execute the following computer executable instructions, which implement the steps of the above-mentioned data processing method when executed by the processor.

[0133] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above data processing method.

[0134] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which are used for the above-mentioned data processing method when executed by a processor.

[0135] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above data processing method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above data processing method.

[0136] An embodiment of the present application further provides a chip storing a computer program, which implements the steps of the above-mentioned data processing method when executed by the chip.

[0137] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0138] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0139] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0140] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0141] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is only limited by the claims and their full scope and equivalents.

Claims

1. A data processing method, characterized in that: The method is applied to a terminal, the terminal including a startup module and a downloader component of a target object, and the method includes: The startup module, upon receiving the startup instruction, executes a startup process, determines a corresponding initial version storage unit according to a preset selection rule, and loads the downloader component of the initial version from the initial version storage unit, wherein the startup process is a single process and the downloader component operates through multiple threads; The downloader component processes a user's operation instruction for the target object through a first thread, detects version update information through a second thread, and downloads an updated version storage unit through the second thread when version update information is detected, wherein the updated version storage unit includes an updated version startup module and a downloader component; The processing of the user's operation instruction for the target object by the first thread includes: The downloader component receives a user's operation instruction for the target object; In a case where it is determined that the operation instruction is the target object download instruction, downloading the target object through the first thread according to the download instruction; In a case where it is determined that the operation instruction is a control instruction of the target object, controlling the target object through the first thread according to the control instruction; and In a case where it is determined that the operation instruction is a start instruction for the target object, the target object is started through the first thread according to the start instruction.

2. The data processing method according to claim 1, wherein: The determining of the corresponding initial version storage unit according to the preset selection rule includes: The startup module determines the current version information, and determines the corresponding initial version storage unit from the same-level directory according to the current version information.

3. The data processing method according to claim 1, wherein: The determining of the corresponding initial version storage unit according to the preset selection rule includes: The startup module determines all version information in the directory at the same level, and determines the latest version storage unit as the corresponding initial version storage unit according to the version information.

4. The data processing method according to claim 1, wherein: The detecting version update information by the second thread, and downloading the updated version storage unit by the second thread when the version update information is detected, includes: The downloader component detects version update information through a second thread according to a preset time interval, and downloads the updated version storage unit through the second thread when version update information is detected.

5. The data processing method according to claim 1 or 4, characterized in that: After the update version storage unit is downloaded through the second thread when the version update information is detected, the method further includes: The downloader component stores the updated version storage unit in a directory at the same level as the initial version storage unit.

6. The data processing method according to claim 5, characterized in that: The step of storing the updated version storage unit in a directory at the same level as the initial version storage unit includes: The downloader component downloads the updated version storage unit to a cache file for decompression. When it is determined that the decompressed updated version storage unit meets the preset update conditions, the decompressed updated version storage unit is stored in the same-level directory as the initial version storage unit.

7. The data processing method according to claim 5, characterized in that: After storing the updated version storage unit in the same directory as the initial version storage unit, the method further includes: The downloader component moves the startup module of the initial version from the outer directory to the initial version storage unit, and moves the startup module of the updated version in the updated version storage unit from the updated version storage unit to the outer directory.

8. The data processing method according to claim 7, characterized in that: After the updating version startup module in the updating version storage unit is moved from the updating version storage unit to the outer directory, the method further includes: The downloader component closes the downloader component of the initial version and runs the startup module of the updated version.

9. The data processing method according to claim 8, characterized in that: The step of closing the downloader component of the initial version and running the startup module of the updated version includes: The downloader component sends a version update success notification to the user, and upon receiving the update instruction from the user, closes the downloader component of the initial version and runs the startup module of the updated version.

10. The data processing method according to claim 5, characterized in that: After storing the updated version storage unit in the same directory as the initial version storage unit, the method further includes: The downloader component determines and deletes a target version storage unit from the version storage units according to a preset deletion rule when it is determined that the number of version storage units existing in the same-level directory is greater than or equal to a preset number threshold.

11. A data processing system, characterized in that: It includes the target object's startup module and downloader components, including: The startup module is configured to, upon receiving a startup instruction, execute a startup process, determine a corresponding initial version storage unit according to a preset selection rule, and load the downloader component of the initial version from the initial version storage unit, wherein the startup process is a single process and the downloader component operates through multiple threads; The downloader component is configured to process a user's operation instruction for the target object through a first thread, detect version update information through a second thread, and download an updated version storage unit through the second thread if version update information is detected, wherein the updated version storage unit includes an updated version startup module and a downloader component; The processing of the user's operation instruction for the target object by the first thread includes: The downloader component receives a user's operation instruction for the target object; In a case where it is determined that the operation instruction is the target object download instruction, downloading the target object through the first thread according to the download instruction; In a case where it is determined that the operation instruction is a control instruction of the target object, controlling the target object through the first thread according to the control instruction; and In a case where it is determined that the operation instruction is a start instruction for the target object, the target object is started through the first thread according to the start instruction.

12. A computing device, characterized in that include: memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of any one of the data processing methods of claims 1 to 10.

13. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by a processor, the steps of any one of the data processing methods of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Method and device for installing and upgrading software

    CN102955702A

  • A system and method for realizing intelligent and automatic upgrading of software based on a multi-thread technology

    CN109766131A