-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Milestone
Description
The core of the thread pool is about the working threads running the tasks and how they are parked and unparked.
One of the main goals of yatp is to adjust running threads number intelligently to the work intensity. So we shouldn't be too eager to wake up threads when there are new tasks. Instead, we need to detect if current thread number is insufficient. This can be done by calculating the time a task waiting in the queue. When it's too long, we can consider wake up another thread.
Metadata
Metadata
Assignees
Labels
No labels