Responsible for the high efficiency and concurrent execution of the task in the thread pool.
1. You can customize the thread pool size so that you can adjust the performance requirements for your project.
2. You don't have to worry about the task-running-overtime, because the task framework has been implemented to monitor the timeout task, once the task is running out of time, the task monitor will remove it from the thread pool, but also to help you automatically end the timeout task.
3. The task scheduling framework has excellent performance, if the task queue is empty, the framework will automatically enter into the waiting state until the task queue has a task to add. This will greatly reduce the consumption of CPU.
4.The framework is very easy to use, for example:
TaskQueue queue = new TaskQueue();
taskAssigner = new TaskAssigner(queue, 10);
taskAssigner.start();
queue.add(task);
Features
- Simple and convenient
- High performance
- Strong extension
Follow task
User Reviews
-
Responsible for the high efficiency and concurrent execution of the task in the thread pool. 1. You can customize the thread pool size so that you can adjust the performance requirements for your project. 2. You don't have to worry about the task-running-overtime, because the task framework has been implemented to monitor the timeout task, once the task is running out of time, the task monitor will remove it from the thread pool, but also to help you automatically end the timeout task. 3. The task scheduling framework has excellent performance, if the task queue is empty, the framework will automatically enter into the waiting state until the task queue has a task to add. This will greatly reduce the consumption of CPU. 4.The framework is very easy to use, for example: TaskQueue queue = new TaskQueue(); taskAssigner = new TaskAssigner(queue, 10); taskAssigner.start(); queue.add(task);