Task scheduling optimization implementation method based on JAVA single thread pool
A technology of task scheduling and implementation method, which is applied in the direction of program control design, multi-program device, program startup/switching, etc. It can solve problems such as system resource waste, wrong task execution sequence, and equipment operation problems, so as to improve efficiency and reduce The effect of resource consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0018] The present invention will be further described below with reference to the accompanying drawings.
[0019] Based on the task scheduling optimization method of newSingleThreadExecutor single thread pool in Java language, the queue in the single thread pool is used to realize the serial processing of tasks in the same thread pool, and the task scheduling is realized at the upper level of the single thread pool. The scheduling method is implemented by the following three classes, which are: single thread pool task processing class, task distribution control class and device thread task processing class.
[0020] 1. Establish a single-threaded pool task processing class. The single-threaded pool task processing class contains a newSingleThreadExecutor single-threaded pool and a MAP named sequenceMap; two methods are established in the class, one is used to submit threads to the single-threaded pool task, a method used to record the task number of the thread task submitted ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - 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


