A java single thread pool based task scheduling optimization implementation method
A technology for task scheduling and implementation methods, applied in the directions of multi-program device, program control design, program startup/switching, etc., which can solve problems such as system resource waste, wrong task execution sequence, and equipment operation problems, so as to reduce resource consumption , the effect of improving efficiency
- 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 in conjunction with the accompanying drawings.
[0019] Based on the newSingleThreadExecutor single thread pool task scheduling optimization method in the Java language, the self-contained 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 implemented on the upper level of the single thread pool. The scheduling method is realized by using the following three classes: single thread pool task processing class, task distribution control class and device thread task processing class.
[0020] 1. Create a single-threaded pool task processing class. The single-threaded pool task processing class includes a newSingleThreadExecutor single-threaded pool and a MAP named sequenceMap; create two methods in the class, one method is used to submit threads to the single-threaded pool Task, a method used to record the task number of the thread task su...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

