Method and terminal for dynamically dispatching thread pool
A technology of dynamic scheduling and thread pool, applied in the direction of multi-program installation, program startup/switching, etc., can solve the problems of large access volume, slow interface response, time-consuming multi-service interface, etc., to avoid idle and congestion, reasonable and efficient The effect of scheduling and optimizing thread pool resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0086] Please refer to figure 1 , a method for dynamically scheduling thread pools, including steps:
[0087] S1. Multiple thread pools are preset, and each thread pool has different numbers of threads;
[0088] Wherein, the S1 further includes: setting a thread pool configuration information table corresponding to the plurality of thread pools, the thread pool configuration information table including a thread pool unique identifier field and a thread pool thread number field;
[0089] Specifically, each thread pool corresponds to a record in the thread pool information table, and each record includes related fields such as a thread pool unique identifier field, a thread pool thread number field, and the like;
[0090] S2. Calculating the calling frequency of a business interface;
[0091] Wherein, the S2 further includes: determining the type of the service interface, and determining the priority of the service interface according to the type of the service interface;
[...
Embodiment 2
[0110] Please refer to figure 1 and image 3 The difference between this embodiment and Embodiment 1 is that in the S31, it is judged whether there is a matching thread pool uniqueness in the thread pool configuration information table according to the field of the number of threads, the field of the minimum number of threads in the thread pool, and the field of the field of the maximum number of threads in the thread pool. Identification fields also include:
[0111] If not, then execute step S33;
[0112] S33. Add a new thread pool matching the number of threads, and add a record corresponding to the new thread pool in the thread pool configuration information table, and schedule according to the thread pool unique identifier field of the new thread pool The corresponding thread pool;
[0113] Or re-divide the thread pool, generate new each thread pool, and update the record corresponding to the configuration information table of the thread pool, each of the new thread po...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com