CN109388485B - Processing method, device and equipment of task execution thread and storage medium - Google Patents

Processing method, device and equipment of task execution thread and storage medium Download PDF

Info

Publication number
CN109388485B
CN109388485B CN201811125878.2A CN201811125878A CN109388485B CN 109388485 B CN109388485 B CN 109388485B CN 201811125878 A CN201811125878 A CN 201811125878A CN 109388485 B CN109388485 B CN 109388485B
Authority
CN
China
Prior art keywords
task
execution thread
request instruction
task execution
task request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811125878.2A
Other languages
Chinese (zh)
Other versions
CN109388485A (en
Inventor
林鸿彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201811125878.2A priority Critical patent/CN109388485B/en
Publication of CN109388485A publication Critical patent/CN109388485A/en
Application granted granted Critical
Publication of CN109388485B publication Critical patent/CN109388485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Storage Device Security (AREA)

Abstract

The application provides a processing method of a task execution thread, which comprises the following steps: after receiving a task request instruction, judging whether the task request instruction accords with a preset rule or not; if the task request instruction accords with a preset rule, inquiring whether a task execution thread for processing the task request instruction exists; if the task execution thread for processing the task request instruction does not exist, a new task execution thread is created; and when the task request processing is finished, saving the task execution thread. By applying the embodiment of the application, the task execution threads of the task request instructions which need to be processed frequently and are time-consuming are stored, when the task request instructions with higher frequency are received, the stored task execution threads are called, the same task request instructions are placed in the same task execution thread for processing, the times of creating the task execution threads are reduced, more memories are released, and the client terminal blockage is reduced.

Description

Processing method, device and equipment of task execution thread and storage medium
Technical Field
The present application relates to the field of software technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a task execution thread.
Background
With the rapid development of intelligent terminals, the functions implemented by the application programs installed on the terminals are more and more complete, and accordingly, the structures of the application programs are more and more complex, so that the system resources are more consumed when the application programs are operated. Because of the functions of the live application program, when a user uses the live application program for live broadcasting, a plurality of requests are triggered sometimes, and each request needs to be processed to create a thread. For example, when a live application makes a request to a server, data making the request needs to be encrypted, and the server returns the data and needs to be decrypted. The client frequently triggers the action of encryption and decryption, which is time-consuming, and the common method is to create a thread when triggering, and the system recovers the thread after completing the action of the request, if a plurality of requests need to be made to the server at the same time, and encryption is needed when sending the request, so that a plurality of encrypted threads may be opened at the same time, which cannot ensure safety, and a plurality of threads are created, so that excessive memory is consumed, and the client is easily blocked.
Disclosure of Invention
In view of the above, the present application provides a method, an apparatus, a device, and a storage medium for processing a task execution thread.
First, a first aspect of the present application provides a method for processing a task execution thread, where the method specifically includes:
after receiving a task request instruction, judging whether the task request instruction accords with a preset rule or not;
if the task request instruction accords with a preset rule, inquiring whether a task execution thread for processing the task request instruction exists;
and if the task execution thread for processing the task request instruction does not exist, creating a new task execution thread, and storing the task execution thread when the task request processing is finished.
Optionally, after querying whether there is a task execution thread processing the task request instruction, the method further includes:
and if a task execution thread for processing the task request instruction exists, calling the task execution thread to process the task request instruction.
Optionally, the preset rule includes that the task request instruction is a preset instruction and/or the number of times of receiving the task request instruction exceeds a preset number threshold within a preset time; or the time for processing the task request instruction in the task execution thread exceeds a preset time threshold.
Optionally, the task execution thread processes only one task request instruction at a time.
Optionally, the saving the task execution thread includes:
and writing the class name of the task execution thread and the address of the task execution thread into a mapping table, and storing the mapping table in a memory.
Optionally, the storing the mapping table in a memory includes:
and storing the mapping table by using an NSDictionary set, wherein the class name of the task execution thread in the mapping table is associated with and stored in the key in the NSDictionary set, and the task execution thread is associated with and stored in the value in the NSDictionary method.
Optionally, if there is a task execution thread for processing the task request instruction, invoking the task execution thread to process the task request instruction, including:
if a key with the same class name of the task execution thread exists in the NSDictionary set, obtaining a value corresponding to the key to obtain an execution address of the task execution thread;
and calling the task execution thread to process the task request instruction according to the execution address.
According to a second aspect of the embodiments of the present application, there is provided a processing apparatus for a task execution thread, the apparatus including a determining module, a querying module, and a thread creating module, wherein:
the judging module is configured to judge whether the task request instruction accords with a preset rule after receiving the task request instruction;
the query module is configured to query whether a task execution thread for processing the task request instruction exists or not if the task request instruction conforms to a preset rule;
and the thread creating module is configured to create a new task execution thread if the task execution thread for processing the task request instruction does not exist, and store the task execution thread when the task request processing is finished.
According to a third aspect of embodiments of the present application, there is provided a processing device for a task execution thread, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after receiving a task request instruction, judging whether the task request instruction accords with a preset rule or not;
if the task request instruction accords with a preset rule, inquiring whether a task execution thread for processing the task request instruction exists;
and if the task execution thread for processing the task request instruction does not exist, creating a new task execution thread, and storing the task execution thread when the task request processing is finished.
Further, the present application also provides a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 7.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
according to the task execution method and device, the task execution threads which need to process the task request instructions frequently are stored, when the task request instructions with higher frequency are received, the stored task execution threads are called, the same task request instructions are placed in the same task execution thread to be processed, the times of creating the task execution threads are reduced, more memories are released, and the client terminal blocking is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
FIG. 1 is a flow chart illustrating an embodiment of a method according to an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of an embodiment of an apparatus shown herein according to an exemplary embodiment;
FIG. 3 is a schematic diagram of a processing device that provides a task execution thread according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Because the client frequently triggers a certain event in the process of running the program, the system creates a thread to process the event each time, and the thread is recycled by the system after the event processing is finished. For example, an application program often triggers an action of encryption and decryption during running, the thread consumes time when processing the action of encryption and decryption, a common method is to create the thread during triggering, the system recycles the thread after completing the action of a request, if a plurality of requests need to be made to a server at the same time, encryption is needed when sending the request, and thus a plurality of encrypted threads may be opened at the same time, which cannot ensure the safety of the thread, and a plurality of threads are created, so that excessive memory is consumed, and client blocking is easily caused. Therefore, the present application provides a method for processing a task execution thread, where a flowchart of the method is shown in fig. 1, and specifically includes:
s101, after receiving a task request instruction, judging whether the task request instruction accords with a preset rule or not;
s102, if the task request instruction accords with a preset rule, inquiring whether a task execution thread for processing the task request instruction exists or not;
s103, if the task execution thread for processing the task request instruction does not exist, a new task execution thread is created, and the task execution thread is saved when the task request processing is finished.
The processing method of the task execution thread provided by the application can be applied to intelligent equipment, and the intelligent equipment can be a smart phone, a tablet computer, a Personal Digital Assistant (PDA), an electronic book reader, a multimedia player and the like.
Typically, ios systems do not allow more than sixty sub-threads, and in order for the number of client threads to not exceed this limit, common time-consuming operations and frequently triggered actions are put into one thread to be processed without the need to repeatedly create sub-threads. The task execution threads can be created for known frequent task request instructions or task request instructions with longer processing time in the application program when the application program is started, and the task execution threads are stored; or recording the number of times of triggering a certain task request instruction within a certain time period after receiving the task request instruction, and if the number of times of receiving the same task request instruction within the certain time period exceeds a preset value, storing a task execution thread for executing the task request instruction in a memory; or recording the time length when the task execution thread processes the task request instruction, and if the time length when the task request instruction is processed exceeds a preset time threshold, saving the task execution thread executing the task request instruction.
For example, when the client sends an encryption request instruction to the server, it is first determined whether the encryption request instruction meets a preset rule, that is, whether the encryption request instruction is a preset instruction or whether the number of times of receiving the encryption request instruction exceeds a preset number threshold or the time of processing the encryption request instruction in the encryption task execution thread exceeds a preset time threshold within a preset time is determined, if the encryption request instruction is any one of the three cases of the preset rule, it is queried whether a task execution thread for processing the encryption request instruction exists, if no task execution thread for processing the encryption request instruction exists, a task execution thread for processing the encryption request instruction is created, and after the encryption request instruction is processed, the task execution thread is saved. And if the encryption request instruction does not belong to any one of the three conditions of the preset rule, creating a new task execution thread to process the encryption request instruction, and destroying the task execution thread after the encryption request instruction is processed, namely the task execution thread does not exist in the client.
According to the method for processing the task execution thread, when the received task request instruction meets the preset rule, after the task execution thread processes one task request instruction in the application program, the task execution thread is not destroyed, but can be continuously used for executing the same task request at the next time, when the same task request instruction is received again, the task execution thread when the task request instruction is processed for the first time is called, the task request instruction is processed, the thread does not need to be re-created, frequent creation of the task execution thread is avoided, system overhead is reduced, program complexity is reduced, and maintenance cost is reduced.
In one embodiment, the process of saving the task execution thread may include writing a class name of the task execution thread and an address of the task execution thread into a mapping table, and saving the mapping table in the memory.
The mapping table records the corresponding relation between the class name of the task execution thread and the address of the task execution thread. Whether the mapping table exists in the memory can be judged firstly, if yes, a new mapping table does not need to be generated, and the class name of the task execution thread and the address of the task execution thread are written into the existing mapping table; if the mapping table does not exist, the mapping table needs to be created and stored in the memory, and the class name of the task execution thread and the address of the task execution thread are written into the mapping table so that the mapping table comprises the class name of the task execution thread and the address of the task execution thread.
In one embodiment, a mapping table may be stored by using the NSDictionary set, where a class name of a task execution thread in the mapping table is associated with a key in the NSDictionary set and stored, an address of the task execution thread is associated with a value in the NSDictionary set and stored, and the mapping table includes the class name of the task execution thread and the address of the task execution thread.
For example, in an actual example, when the application program starts, a mapping table is created by instantiating the NSDictionary set, the class name of the task execution thread in the mapping table is associated with the key in the NSDictionary set and is stored, and the address of the task execution thread is associated with the value in the NSDictionary set and is stored. The method comprises the steps that class names of task execution threads correspond to the task execution threads one to one, the class names of the task execution threads can be character string identifications, the character string identifications are unique, when a request instruction is received, whether the task execution threads for processing the task request instruction exist or not is inquired in a mapping table, if the task execution threads for processing the task request instruction exist in the mapping table, namely keys which are the same as the class names of the task execution threads exist in an NSDictionary set, values corresponding to the keys are obtained, and execution addresses of the task execution threads are obtained; and calling the task execution thread to process the task request instruction according to the execution address.
It should be appreciated that the task execution thread processes only one task request instruction at a time. The task execution thread can receive a plurality of same task requests in the same time period, and at the moment, the task requests can be processed in sequence according to the sequence of the received task requests in the task execution thread; the task execution thread can also receive only one task request at a time, and after the task processing in the task execution thread is finished by receiving one task request currently, the next task request is received. Therefore, the condition that the same task execution thread is called for multiple times is avoided, on one hand, the calling quantity of the thread is reduced, and on the other hand, the thread execution safety is ensured.
In another embodiment, as shown in fig. 2, the present application further provides a processing apparatus for task execution threads, the apparatus including: a judging module 21, an inquiring module 22 and a thread creating module 23, wherein:
the judging module 21 is configured to judge whether the task request instruction conforms to a preset rule after receiving the task request instruction;
the query module 22 is configured to query whether a task execution thread for processing the task request instruction exists if the task request instruction conforms to a preset rule;
the thread creation module 23 is configured to create a new task thread if there is no task thread that processes the task request command, and to save the task thread when the task request processing is completed.
It can be seen from the above embodiments that by storing the task execution threads that need to process the task request instructions frequently, and when receiving these task request instructions with higher frequency, calling the stored task execution threads, and placing the same task request instructions in the same task execution thread for processing, the number of times of creating task execution threads is reduced, more memory is released, and client deadlock is reduced.
The preset rule comprises that a task request instruction is a preset instruction and/or the frequency of receiving the task request instruction exceeds a preset frequency threshold value within a preset time; the method also comprises the step that the time for processing the task request instruction in the task execution thread exceeds a preset time threshold.
Correspondingly, as shown in fig. 3, the present invention further provides a processing device 30 for task execution threads, which includes a processor 31; a memory 32 for storing executable instructions, the memory 32 comprising a computer program 33; wherein the processor 31 is configured to:
after receiving a task request instruction, judging whether the task request instruction accords with a preset rule or not;
if the task request instruction accords with a preset rule, inquiring whether a task execution thread for processing the task request instruction exists;
and if the task execution thread for processing the task request instruction does not exist, creating a new task execution thread, and storing the task execution thread when the task request processing is finished.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 32 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and so forth. Also, the apparatus may cooperate with a network storage device that performs a storage function of the memory through a network connection. The storage 32 may be an internal storage unit of the device 30, such as a hard disk or a memory of the device 30. The memory 32 may also be an external storage device of the device 30, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc., provided on the device 30. Further, memory 32 may also include both internal and external storage units of device 30. The memory 32 is used for storing the computer program 33 and other programs and data required by the device. The memory 32 may also be used to temporarily store data that has been output or is to be output.
The various embodiments described herein may be implemented using a computer-readable medium such as computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, and an electronic unit designed to perform the functions described herein. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in memory and executed by the controller.
The device 30 may be a computing device such as a desktop computer, a notebook, a palm top computer, and a cloud server. The device may include, but is not limited to, a processor 31, a memory 32. Those skilled in the art will appreciate that fig. 3 is merely an example of a device 30 and does not constitute a limitation of device 30 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the device may also include input-output devices, network access devices, buses, etc.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an apparatus to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the above-described method.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (9)

1. A method for processing a task execution thread, the method comprising:
after receiving a task request instruction, judging whether the task request instruction accords with a preset rule or not;
if the task request instruction accords with a preset rule, inquiring whether a task execution thread for processing the task request instruction exists;
if the task execution thread for processing the task request instruction does not exist, a new task execution thread is created, and the task execution thread is stored when the task request processing is finished;
the preset rule includes that the task request instruction is a preset instruction, and/or the number of times of receiving the task request instruction in a preset time exceeds a preset number threshold, or the time of processing the task request instruction in the task execution thread exceeds a preset time threshold.
2. The method according to claim 1, further comprising, after querying whether there is a task execution thread that processes the task request instruction:
and if a task execution thread for processing the task request instruction exists, calling the task execution thread to process the task request instruction.
3. The method of claim 2, wherein the task execution thread processes only one task request instruction at a time.
4. The method of claim 2, wherein saving the task execution thread comprises:
and writing the class name of the task execution thread and the address of the task execution thread into a mapping table, and storing the mapping table in a memory.
5. The method of claim 4, wherein storing the mapping table in memory comprises:
and storing the mapping table by using an NSDictionary set, wherein the class name of the task execution thread in the mapping table is associated with the key in the NSDictionary set and is stored, and the address of the task execution thread is associated with the value in the NSDictionary method and is stored.
6. The method according to claim 5, wherein the invoking the task execution thread to process the task request instruction if there is a task execution thread to process the task request instruction comprises:
if a key with the same class name of the task execution thread exists in the NSDictionary set, obtaining a value corresponding to the key to obtain an execution address of the task execution thread;
and calling the task execution thread to process the task request instruction according to the execution address.
7. A task execution thread processing apparatus, comprising a determining module, an inquiring module, and a thread creating module, wherein:
the judging module is configured to judge whether the task request instruction accords with a preset rule after receiving the task request instruction;
the query module is configured to query whether a task execution thread for processing the task request instruction exists or not if the task request instruction conforms to a preset rule;
the thread creating module is configured to create a new task execution thread if no task execution thread for processing the task request instruction exists, and store the task execution thread when the task request processing is finished;
the preset rule includes that the task request instruction is a preset instruction, and/or the number of times of receiving the task request instruction in a preset time exceeds a preset number threshold, or the time of processing the task request instruction in the task execution thread exceeds a preset time threshold.
8. A task execution thread processing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
after receiving a task request instruction, judging whether the task request instruction accords with a preset rule or not;
if the task request instruction accords with a preset rule, inquiring whether a task execution thread for processing the task request instruction exists;
if the task execution thread for processing the task request instruction does not exist, a new task execution thread is created, and the task execution thread is stored when the task request processing is finished;
the preset rule includes that the task request instruction is a preset instruction, and/or the number of times of receiving the task request instruction in a preset time exceeds a preset number threshold, or the time of processing the task request instruction in the task execution thread exceeds a preset time threshold.
9. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 6.
CN201811125878.2A 2018-09-26 2018-09-26 Processing method, device and equipment of task execution thread and storage medium Active CN109388485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811125878.2A CN109388485B (en) 2018-09-26 2018-09-26 Processing method, device and equipment of task execution thread and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811125878.2A CN109388485B (en) 2018-09-26 2018-09-26 Processing method, device and equipment of task execution thread and storage medium

Publications (2)

Publication Number Publication Date
CN109388485A CN109388485A (en) 2019-02-26
CN109388485B true CN109388485B (en) 2021-01-22

Family

ID=65418378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811125878.2A Active CN109388485B (en) 2018-09-26 2018-09-26 Processing method, device and equipment of task execution thread and storage medium

Country Status (1)

Country Link
CN (1) CN109388485B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625322B (en) * 2019-02-27 2024-03-29 阿里巴巴集团控股有限公司 Data processing method, system and equipment
CN111651272B (en) * 2020-05-28 2023-02-03 苏州大学 Thread time management method and device for embedded real-time operation
CN113018844A (en) * 2021-03-19 2021-06-25 广州虎牙科技有限公司 Multithreading execution method and device, electronic equipment and storage medium
CN114546665B (en) * 2022-04-22 2022-08-05 恒生电子股份有限公司 Object processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471927A (en) * 2007-12-25 2009-07-01 百度在线网络技术(北京)有限公司 Method and device for processing document transmission and document transmission system
CN104899099A (en) * 2015-05-26 2015-09-09 北京金和网络股份有限公司 Task allocation method based on thread pool
CN107463439A (en) * 2017-08-21 2017-12-12 山东浪潮通软信息科技有限公司 A kind of thread pool implementation method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7299471B2 (en) * 2002-04-17 2007-11-20 International Business Machines Corporation Common thread server
CN102262564A (en) * 2011-08-16 2011-11-30 天津市天祥世联网络科技有限公司 Thread pool structure of video monitoring platform system and realizing method
CN103810048B (en) * 2014-03-11 2017-01-18 国家电网公司 Automatic adjusting method and device for thread number aiming to realizing optimization of resource utilization
CN105912394B (en) * 2016-04-25 2020-02-11 深圳市万普拉斯科技有限公司 Thread processing method and system
CN105912386A (en) * 2016-05-03 2016-08-31 深圳市永兴元科技有限公司 Thread management method and system
CN106020954A (en) * 2016-05-13 2016-10-12 深圳市永兴元科技有限公司 Thread management method and device
CN106095590B (en) * 2016-07-21 2019-05-03 联动优势科技有限公司 A kind of method for allocating tasks and device based on thread pool
CN106598745A (en) * 2016-11-24 2017-04-26 合肥中科云巢科技有限公司 Thread management method and system
CN106708563B (en) * 2016-11-28 2019-11-26 努比亚技术有限公司 A kind of application program is without response processing method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471927A (en) * 2007-12-25 2009-07-01 百度在线网络技术(北京)有限公司 Method and device for processing document transmission and document transmission system
CN104899099A (en) * 2015-05-26 2015-09-09 北京金和网络股份有限公司 Task allocation method based on thread pool
CN107463439A (en) * 2017-08-21 2017-12-12 山东浪潮通软信息科技有限公司 A kind of thread pool implementation method and device

Also Published As

Publication number Publication date
CN109388485A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN109388485B (en) Processing method, device and equipment of task execution thread and storage medium
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
CN108287708B (en) Data processing method and device, server and computer readable storage medium
CN111506386A (en) Virtual machine online migration method, device, equipment and computer readable storage medium
US11501317B2 (en) Methods, apparatuses, and devices for generating digital document of title
CN109597707B (en) Clone volume data copying method, device and computer readable storage medium
CN106503069A (en) File sharing method and device
CN108512930B (en) Shared file management method, device, server and storage medium
CN110866011B (en) Data table synchronization method and device, computer equipment and storage medium
CN109561134B (en) Electronic device, distributed cluster service distribution method and storage medium
CN113569257A (en) User authority management method and device in gray scale release
CN111222153B (en) Application program authority management method and device and storage medium
CN109408265B (en) IOS abnormal operation protection method and device, terminal equipment and storage medium
CN110472215B (en) Bid file generation method, device, equipment and medium
CN112328325A (en) Execution method and device of model file, terminal equipment and storage medium
CN111858020B (en) User resource limiting method and device and computer storage medium
CN111399999A (en) Computer resource processing method and device, readable storage medium and computer equipment
CN113656795A (en) Window operation behavior auditing method and system
CN109343953B (en) Memory management method and device and electronic equipment
CN111258676A (en) Module preloading method, device, equipment and readable storage medium
CN108182202B (en) Content update notification method, content update notification device, electronic equipment and storage medium
WO2021040838A1 (en) Point in time blob restore
US9600508B1 (en) Data layer service availability
CN110839085A (en) Instruction management method, instruction management device, electronic equipment and storage medium
CN111585897B (en) Request route management method, system, computer system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant