Information processing method, device and equipment, computer storage medium and computer program product

By storing and obtaining parameters between the main thread and the child thread in the distributed microservice architecture, the problem of implicit transmission of parameters between or within microservices requires the introduction of third-party components, and the effect of reducing system complexity and simplifying maintenance is achieved.

CN119938326APending Publication Date: 2025-05-06CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202412000474.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In a distributed microservice architecture, implicit transmission of parameters between or within microservices requires the introduction of third-party components, resulting in high system complexity and difficulty in maintaining.

Method used

By storing and obtaining parameters into the target data storage system based on the target parameter transfer technology between the main thread and the child thread, implicit parameter transfer without third-party components is achieved.

Benefits of technology

Imperative delivery of internal parameters of microservices is realized, reducing system complexity and simplifying maintenance operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938326A_ABST
    Figure CN119938326A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an information processing method. The method comprises the steps of determining a first parameter of a main thread corresponding to a to-be-processed application; when a corresponding sub-thread is called through the main thread, storing a second parameter into a target data storage system based on a target parameter transmission technology; wherein the first parameter comprises the second parameter; obtaining a second parameter corresponding to the sub-thread from the target data storage system; and the to-be-processed service is processed based on the second parameter through the sub-thread, so that implicit parameter transmission in the micro-service can be carried out without introducing a third-party component, and the system complexity is reduced. The embodiment of the invention further discloses an information processing device and equipment, a computer storage medium and a computer program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to information processing technology in the field of communications, and in particular to an information processing method, apparatus, device, computer storage medium and computer program product. Background Art

[0002] In the microservice distributed architecture, the interface call of microservices can be divided into interface calls between services and interface calls within services; interface calls between services refer to the functions or data provided by different microservices through network requests, and interface calls within services refer to the functions or data provided by different modules within the same microservice through local methods or functions. Each microservice may have parameters such as authentication information, transaction tags, and request tags. If these parameters are explicitly passed, business data will be mixed with these non-business parameters, and each function interface must also support the passing of these parameters. If these parameters change, each interface must be modified synchronously, which is labor-intensive and prone to errors. In order to realize implicit parameter passing in related technologies, it can be realized by introducing third-party components, such as using Dubbo's attachment mechanism, using Spring Cloud's FeignClient mechanism, or using Spring Cloud's Sleuth mechanism. However, in related technologies, the implicit parameter passing within microservices requires the introduction of third-party components, resulting in high system complexity and troublesome maintenance operations. Summary of the invention

[0003] To solve the above technical problems, the embodiments of the present application provide an information processing method, apparatus, device, computer storage medium and computer program product, which realize implicit parameter passing within microservices without introducing third-party components, reduce system complexity and simplify maintenance operations.

[0004] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:

[0005] An information processing method, the method comprising:

[0006] Determine a first parameter of a main thread corresponding to the application to be processed;

[0007] When the corresponding child thread is called through the main thread, the second parameter is stored in the target data storage system based on the target parameter transfer technology; wherein the first parameter includes the second parameter;

[0008] Acquire a second parameter corresponding to the child thread from the target data storage system;

[0009] Process the pending business based on the second parameter through the sub-thread.

[0010] In the above solution, when the corresponding child thread is called by the main thread, the second parameter is stored in the target data storage system based on the target parameter transfer technology, and further includes:

[0011] When the child thread is called through the main thread, the first parameter is passed to the task class through the main thread;

[0012] Acquire the second parameter based on the task class;

[0013] The second parameter is stored in the target data storage system based on the target parameter transfer technique.

[0014] In the above solution, before obtaining the second parameter based on the task class, the method further includes:

[0015] Delete the parameters corresponding to the sub-thread in the target data storage system.

[0016] In the above solution, storing the second parameter in the target data storage system based on the target parameter transfer technology includes:

[0017] Determine a first association relationship between the second parameter and the child thread;

[0018] Based on the subclass of the thread local variable, the second parameter is stored in the target data storage system according to the first association relationship.

[0019] In the above scheme, the method further comprises:

[0020] Determine a second association relationship between the first parameter and the main thread;

[0021] Based on the subclass of the thread local variable, the first parameter is stored in the target data storage system according to the second association relationship.

[0022] In the above scheme, the method further comprises:

[0023] After the sub-thread is executed, the parameters corresponding to the sub-thread in the target data storage system are deleted.

[0024] In the above scheme, the method further comprises:

[0025] After the main thread is executed, the main thread and the parameters corresponding to the main thread in the target data storage system are deleted.

[0026] An information processing device, comprising:

[0027] A determination unit, configured to determine a first parameter of a main thread corresponding to the application to be processed;

[0028] A first processing unit is configured to store a second parameter in a target data storage system based on a target parameter transfer technology when calling a corresponding child thread through the main thread; wherein the first parameter includes the second parameter;

[0029] The determining unit is further configured to obtain a second parameter corresponding to the child thread from the target thread storage system;

[0030] The second processing unit is used to process the pending business based on the second parameter through the sub-thread.

[0031] An information processing device, the device comprising: a processor, a memory and a communication bus;

[0032] The communication bus is used to realize the communication connection between the processor and the memory;

[0033] The processor is used to execute the information processing program in the memory to implement the steps of the above-mentioned information processing method.

[0034] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned information processing method.

[0035] A computer program product comprises a computer program, wherein the computer program implements the above method when executed by a processor.

[0036] The information processing method, apparatus, device, computer storage medium and computer program product provided by the embodiments of the present application can determine the first parameter of the main thread corresponding to the application to be processed. When calling the corresponding child thread through the main thread, the second parameter is stored in the target data storage system based on the target parameter passing technology. The first parameter includes the second parameter. The second parameter corresponding to the child thread is obtained from the target data storage system. Through the child thread, the business to be processed is processed based on the second parameter. In this way, the parameters of the main thread corresponding to the application to be processed can be stored in the target data storage system based on the target parameter passing technology. When the child thread of the application to be processed needs the parameters of the main thread, it can be directly obtained and called from the target data storage system. Without introducing any third-party components, the implicit transmission of parameters between different threads in the service is realized, which reduces the complexity of the system and simplifies the maintenance operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A flowchart of an information processing method provided in an embodiment of the present application;

[0038] Figure 2 A schematic diagram of an architecture corresponding to an information processing method provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of clearing relevant attribute values ​​in a thread pool context management center before and after executing a business in an information processing method provided in an embodiment of the present application;

[0040] Figure 4 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0041] Figure 5 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0043] It should be understood that the "embodiments of the present application" or "the aforementioned embodiments" mentioned throughout the specification mean that specific features, structures or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, "in the embodiments of the present application" or "in the aforementioned embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0044] Unless otherwise specified, the electronic device performs any step in the embodiments of the present application, and the processor of the electronic device may perform the step. It is also worth noting that the embodiments of the present application do not limit the order in which the electronic device performs the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the electronic device, that is, when the electronic device executes any step in the following embodiments, it may not rely on the execution of other steps.

[0045] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] The present application provides an information processing method, which can be applied to an information processing device. Figure 1As shown, the method may include the following steps:

[0047] Step 101: Determine a first parameter of a main thread corresponding to an application to be processed.

[0048] Among them, the application to be processed may refer to the application corresponding to the service in the microservice distributed architecture; the main thread may refer to the parent thread called by the application to be processed; and the first parameter may refer to the value of the variable in the parent thread called by the application to be processed.

[0049] It should be noted that the first parameter may refer to non-business related parameters of the business executed by the main thread, that is, non-business parameters; in a feasible implementation method, the first parameter may include user identity authentication (Identifiction, ID), authentication (TOKEN), transaction ID and other parameters.

[0050] Step 102: When the corresponding child thread is called through the main thread, the second parameter is stored in the target data storage system based on the target parameter transfer technology.

[0051] Wherein, the first parameter includes the second parameter.

[0052] In the embodiment of the present application, the sub-thread may refer to a sub-thread called by the main thread in the sub-thread corresponding to the application to be processed. The second parameter may refer to a parameter included in the first parameter in the main thread.

[0053] It should be noted that the target parameter passing technology may refer to a technology that can realize parameter passing; in a feasible implementation, the target parameter passing technology may refer to a subclass of a thread local variable. Figure 2 The target data storage system shown may refer to a thread context management center. Furthermore, the thread context management center may be responsible for managing parameters during interface calls and binding with execution threads; each execution thread may obtain associated parameter information from the thread context management center when needed.

[0054] Specifically, the second parameter may be stored in the thread context management center based on a subclass of the thread local variable.

[0055] Step 103: Obtain a second parameter corresponding to the child thread from the target data storage system.

[0056] In the embodiment of the present application, the second parameter required by the child thread can be obtained from the thread context management center. Specifically, the main thread and the child thread are threads in the thread pool, and the thread pool executor can be used to implement the corresponding processing logic of the main thread and the child thread in the present application.

[0057] It should be noted that by rewriting the task submission processing logic of the thread pool executor, when using the thread pool to execute tasks, the thread local variable (ThreadLocal) property value of the main thread can be passed to the thread pool child thread, so as to ensure that parameters can be implicitly passed in scenarios such as asynchronous calls, thread pools, scheduled tasks, and message queues (MQ) monitoring.

[0058] Step 104: Process the pending business based on the second parameter through the child thread.

[0059] Among them, after obtaining the second parameter, the corresponding child thread in the thread pool can process the pending business according to the second parameter, that is, execute the business logic of the pending business.

[0060] In other embodiments of the present application, the above step 102 may be implemented in the following manner:

[0061] A1. When the child thread is called through the main thread, the first parameter is passed to the task class through the main thread.

[0062] The task class may refer to the function corresponding to the interface that the task needs to inherit when executing in the thread pool; the main thread may explicitly pass its first parameter to the task class.

[0063] It should be noted that the implicit passing of parameters between threads in this application can be achieved through Java native technology; in Java, if a task needs to be executed in a thread pool, then the task needs to inherit the Runnable interface or the Callable interface. When submitting tasks in the thread pool, the submit method or the execute method is mainly used. These operation logics are all processed in the thread pool executor, which is transparent and imperceptible to the caller. By rewriting the task submission logic of the thread pool executor, we can pass the ThreadLocal attribute value in the parent thread to the thread pool child thread; then, the task class can refer to the task class in Java, corresponding to the Runnable interface or the Callable interface.

[0064] In a feasible implementation, if the currently acquired attribute is username=wangwu, then the main thread can explicitly assign the attribute value username=wangwu to the task class, that is, the attribute value in the task class includes username=wangwu.

[0065] A2. Obtain the second parameter based on the task class.

[0066] A3. Based on the target parameter transfer technology, the second parameter is stored in the target data storage system.

[0067] Among them, the attribute value username=wangwu (i.e. the second parameter) of the task class can be obtained in the child thread, and the attribute value is entrusted to the thread context management center for management based on the subclass of the thread local variable; at this time, the thread context management center will have the attribute value username=wangwu of the child thread, thus completing the implicit transfer of the parent thread parameters to the thread pool child thread.

[0068] In other embodiments of the present application, the following steps may be included before the above “obtaining the second parameter based on the task class”:

[0069] Delete the parameters corresponding to the child thread in the target data storage system.

[0070] It should be noted that before the child thread obtains the second parameter from the thread pool context management center, such as Figure 3 As shown, you can first clean up the parameters associated with the child thread in the thread pool context management center; in this way, you can ensure that each time a new business is executed, the ThreadLocal in the child thread is clean, and there will be no problem of inheriting the value left over from the previous call, thereby avoiding inheritance of the wrong value.

[0071] In other embodiments of the present application, the above-mentioned “storing the second parameter in the target data storage system based on the target parameter transfer technology” can be implemented in the following ways:

[0072] Determine a first association relationship between the second parameter and the child thread;

[0073] Based on the subclass of the thread local variable, the second parameter is stored in the target data storage system according to the first association relationship.

[0074] Among them, the first association relationship may refer to the correspondence between the child thread and the value of the variable corresponding to it (ie, the second parameter); the subclass of the thread local variable may refer to the subclass of ThreadLocal, that is, it may refer to InheritThreadLocal.

[0075] Specifically, after executing the business logic of the pending business, the child thread can delegate the second parameter associated with the child thread to the thread context management center for management based on InheritThreadLocal.

[0076] In other embodiments of the present application, the method may further include the following steps:

[0077] Determine a second association relationship between the first parameter and the main thread;

[0078] Based on the subclass of the thread local variable, the first parameter is stored in the target data storage system according to the second association relationship.

[0079] The second association relationship may refer to the correspondence between the main thread and the value of its corresponding variable (ie, the first parameter).

[0080] Specifically, after executing the business logic of the corresponding business, the main thread can delegate the first parameter associated with the main thread to the thread context management center for management based on InheritThreadLocal.

[0081] It should be noted that when the thread context management center manages the values ​​of the variables of the main thread and the child thread, the corresponding time points can be recorded.

[0082] In other embodiments of the present application, the method may further include the following steps:

[0083] After the sub-thread is executed, the parameters corresponding to the sub-thread in the target data storage system are deleted.

[0084] Specifically, after the child thread has processed the business, Figure 3 As shown, the values ​​of the attributes in the InheritThreadLocal related to the child thread in the thread context management center will be actively cleaned up, that is, the parameters corresponding to the child thread can be cleaned up; at this time, the thread context management center will no longer have the parameter values ​​corresponding to the child thread. In this way, the parameters associated with the child thread in the thread context management center will be actively cleaned up when the child thread starts and ends the task, which can ensure that the attribute values ​​of the thread in the thread context management center are clean every time there is a new call, solving the problem of being unable to handle the dirty attribute values ​​and wrong attribute value transmission caused by the reuse of child threads when the InheritableThreadLocal technology is used in related solutions.

[0085] In other embodiments of the present application, the method may further include the following steps:

[0086] After the main thread is executed, the parameters corresponding to the main thread and the target data storage system are deleted.

[0087] Specifically, after the main thread finishes processing the business, it will also actively clean up the values ​​of the attributes in the InheritThreadLocal related to the main thread in the thread context management center, that is, it can clean up the parameters corresponding to the main thread; at this time, the thread context management center will no longer have the parameter values ​​corresponding to the main thread.

[0088] It should be noted that after the parent thread (i.e. the main thread) is completed, the thread context management center will no longer retain the attribute values ​​associated with the parent thread, because if the parent thread is not a child thread in a thread pool, then the parent thread will be automatically destroyed after the parent thread is executed, and its corresponding parameter values ​​will also be automatically destroyed along with the parent thread; if the parent thread is a child thread in a thread pool, the child thread will actively clean up the attribute values ​​of the context management center after the execution is completed; therefore, no matter which scenario, after the parent thread is executed, the thread context management center will clean up the attribute values ​​corresponding to the parent thread.

[0089] This application can solve the problem of ThreadLocal attribute value transmission of thread pool, and can ensure that the thread context management center is clean after the child thread is executed. For the implicit transmission of parameters in various complex scenarios such as asynchronous calls, thread pools, scheduled tasks, MQ monitoring, etc. At the same time, this application uses the InheritableThreadLocal technology, which can support the implicit transmission of parameters in both web and non-web environments.

[0090] In other embodiments of the present application, the present application reconstructs the task submission processing logic of the thread pool executor. When submitting a thread task, the main thread explicitly passes the acquired parameters to the thread pool child thread, and entrusts the parameters to the thread context management center for management at the child thread execution entry, thereby solving the problem that the main thread can also correctly pass the parameters to the thread pool child thread in the thread pool scenario; and, the attribute value is not passed to the child thread only when the main thread creates the child thread for the first time, but the main thread can pass the parameter value to the child thread in all scenarios of the thread pool.

[0091] The information processing method provided by the embodiment of the present application can store the parameters of the main thread corresponding to the application to be processed in the target data storage system based on the target parameter passing technology. When the sub-thread of the application to be processed needs the parameters of the main thread, it can directly obtain and call it from the target data storage system. Without introducing any third-party components, the implicit passing of parameters between different threads within the service is realized, which reduces the complexity of the system and simplifies maintenance operations.

[0092] Based on the above embodiments, the embodiments of the present application provide an information processing device, which can be applied to Figure 1 In the information processing method provided in the corresponding embodiment, refer to Figure 4 As shown, the information processing device 2 may include: a determination unit 21, a first processing unit 22, and a second processing unit 23, wherein:

[0093] A determination unit 21, configured to determine a first parameter of a main thread corresponding to the application to be processed;

[0094] The first processing unit 22 is used to store the second parameter in the target data storage system based on the target parameter transfer technology when calling the corresponding child thread through the main thread; wherein the first parameter includes the second parameter;

[0095] The determining unit 21 is further configured to obtain a second parameter corresponding to the child thread from the target data storage system;

[0096] The second processing unit 23 is used to process the pending business based on the second parameter through a sub-thread.

[0097] In other embodiments of the present application, the first processing unit 22 is further configured to perform the following steps:

[0098] When the child thread is called through the main thread, the first parameter is passed to the task class through the main thread;

[0099] Get the second parameter based on the task class;

[0100] The second parameter is stored in the target data storage system based on the target parameter transfer technique.

[0101] In other embodiments of the present application, the first processing unit 22 is further configured to delete parameters corresponding to the sub-thread in the target data storage system.

[0102] In other embodiments of the present application, the first processing unit 22 is further configured to perform the following steps:

[0103] Determine a first association relationship between the second parameter and the child thread;

[0104] Based on the subclass of the thread local variable, the second parameter is stored in the target data storage system according to the first association relationship.

[0105] In other embodiments of the present application, the first processing unit 22 is further configured to perform the following steps:

[0106] Determine a second association relationship between the first parameter and the main thread;

[0107] Based on the subclass of the thread local variable, the first parameter is stored in the target data storage system according to the second association relationship.

[0108] In other embodiments of the present application, the second processing unit 23 is further configured to delete parameters corresponding to the sub-thread in the target data storage system after the sub-thread is executed.

[0109] In other embodiments of the present application, the second processing unit 23 is further used to delete the parameters corresponding to the main thread and the main thread in the target data storage system after the main thread is executed.

[0110] It should be noted that the specific implementation process of the steps performed by each unit in the embodiment of the present application can be referred to Figure 1 The implementation process of the information processing method provided in the corresponding embodiment will not be repeated here.

[0111] The information processing device provided by the embodiment of the present application can store the parameters of the main thread corresponding to the application to be processed in the target data storage system based on the target parameter passing technology. When the sub-thread of the application to be processed needs the parameters of the main thread, it can directly obtain and call it from the target data storage system. Without introducing any third-party components, the implicit passing of parameters between different threads within the service is realized, which reduces the complexity of the system and simplifies maintenance operations.

[0112] Based on the above embodiments, the embodiments of the present application provide an information processing device, which can be applied to Figure 1 In the information processing method provided in the corresponding embodiment, refer to Figure 5 As shown, the information processing device 3 may include: a processor 31, a memory 32 and a communication bus 33, wherein:

[0113] The communication bus 33 is used to realize the communication connection between the processor 31 and the memory 32;

[0114] The processor 31 is used to execute the information determination program in the memory 32 to implement the following steps:

[0115] Determine a first parameter of a main thread corresponding to the application to be processed;

[0116] When the corresponding child thread is called through the main thread, the second parameter is stored in the target data storage system based on the target parameter transfer technology; wherein the first parameter includes the second parameter;

[0117] Obtain a second parameter corresponding to the child thread from the target data storage system;

[0118] Process the pending business based on the second parameter through the child thread.

[0119] In other embodiments of the present application, the processor 31 is used to execute the information processing program in the memory 32, and when calling the corresponding child thread through the main thread, the second parameter is stored in the target data storage system based on the target parameter passing technology to implement the following steps:

[0120] When the child thread is called through the main thread, the first parameter is passed to the task class through the main thread;

[0121] Get the second parameter based on the task class;

[0122] Based on the target parameter transfer technology, the second parameter is stored in the target data storage system.

[0123] In other embodiments of the present application, the processor 31 is used to execute the information processing program in the memory 32, and can also implement the following steps:

[0124] Delete the parameters corresponding to the child thread in the target data storage system.

[0125] In other embodiments of the present application, the processor 31 is used to execute the information processing program in the memory 32 to store the second parameter in the target data storage system, and the following steps may be implemented:

[0126] Determine a first association relationship between the second parameter and the child thread;

[0127] Based on the subclass of the thread local variable, the second parameter is stored in the target data storage system according to the first association relationship.

[0128] In other embodiments of the present application, the processor 31 is used to execute the information processing program in the memory 32, and can also implement the following steps:

[0129] Determine a second association relationship between the first parameter and the main thread;

[0130] Based on the subclass of the thread local variable, the first parameter is stored in the target data storage system according to the second association relationship.

[0131] In other embodiments of the present application, the processor 31 is used to execute the information processing program in the memory 32, and can also implement the following steps:

[0132] After the sub-thread is executed, the parameters corresponding to the sub-thread in the target data storage system are deleted.

[0133] In other embodiments of the present application, the processor 31 is used to execute the information processing program in the memory 32, and can also implement the following steps:

[0134] After the main thread is executed, the parameters corresponding to the main thread and the target data storage system are deleted.

[0135] It should be noted that the specific description of the steps executed by the processor can be referred to Figure 1 The information processing method provided in the corresponding embodiment will not be described in detail here.

[0136] The information processing device provided by the embodiments of the present application can store the parameters of the main thread corresponding to the application to be processed in the target data storage system based on the target parameter passing technology. When the sub-thread of the application to be processed needs the parameters of the main thread, it can directly obtain and call them from the target data storage system. Without introducing any third-party components, the implicit passing of parameters between different threads within the service is realized, which reduces the complexity of the system and simplifies maintenance operations.

[0137] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement Figure 1 The corresponding embodiments provide steps of the information processing method.

[0138] Based on the foregoing embodiments, an embodiment of the present application provides a computer program product, including a computer program, which can be executed by the processor 31 to complete Figure 1 The corresponding embodiments provide steps of the information processing method.

[0139] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0140] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0143] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An information processing method, characterized in that: The method comprises: Determine a first parameter of a main thread corresponding to the application to be processed; When the corresponding child thread is called through the main thread, the second parameter is stored in the target data storage system based on the target parameter transfer technology; wherein the first parameter includes the second parameter; Acquire a second parameter corresponding to the child thread from the target data storage system; Process the pending business based on the second parameter through the sub-thread.

2. The method according to claim 1, characterized in that When the corresponding child thread is called by the main thread, storing the second parameter in the target data storage system based on the target parameter transfer technology includes: When the child thread is called through the main thread, the first parameter is passed to the task class through the main thread; Acquire the second parameter based on the task class; The second parameter is stored in the target data storage system based on the target parameter transfer technique.

3. The method according to claim 2, characterized in that Before acquiring the second parameter based on the task class, the method further includes: Delete the parameters corresponding to the sub-thread in the target data storage system.

4. The method according to claim 1 or 2, characterized in that: The storing of the second parameter in the target data storage system based on the target parameter transfer technology includes: Determine a first association relationship between the second parameter and the child thread; Based on the subclass of the thread local variable, the second parameter is stored in the target data storage system according to the first association relationship.

5. The method according to claim 1, characterized in that The method further comprises: Determine a second association relationship between the first parameter and the main thread; Based on the subclass of the thread local variable, the first parameter is stored in the target data storage system according to the second association relationship.

6. The method according to claim 4, characterized in that The method further comprises: After the sub-thread is executed, the parameters corresponding to the sub-thread in the target data storage system are deleted.

7. The method according to claim 5, characterized in that The method further comprises: After the main thread is executed, the main thread and the parameters corresponding to the main thread in the target data storage system are deleted.

8. An information processing device, characterized in that: include: A determination unit, configured to determine a first parameter of a main thread corresponding to the application to be processed; A first processing unit is configured to store a second parameter in a target data storage system based on a target parameter transfer technology when calling a corresponding child thread through the main thread; wherein the first parameter includes the second parameter; The determining unit is further configured to obtain a second parameter corresponding to the child thread from the target data storage system; The second processing unit is used to process the pending business based on the second parameter through the sub-thread.

9. An information processing device, characterized in that: The device comprises: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the information processing program in the memory to implement the steps of the information processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the information processing method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 7.