You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* scheduled executor then actually execute scheduled tasks.
65
65
*
66
66
* Types of Executors:
67
+
* - cached : An unbounded pool where the number of threads will grow according to the tasks it needs to service. The threads are killed by a default 60 second timeout if not used and the pool shrinks back
67
68
* - fixed : By default it will build one with 20 threads on it. Great for multiple task execution and worker processing
69
+
* - fork_join : A pool that uses the ForkJoinPool.commonPool() by default, it is great for parallel tasks and recursive tasks
68
70
* - single : A great way to control that submitted tasks will execute in the order of submission: FIFO
69
-
* - cached : An unbounded pool where the number of threads will grow according to the tasks it needs to service. The threads are killed by a default 60 second timeout if not used and the pool shrinks back
70
71
* - scheduled : A pool to use for scheduled tasks that can run one time or periodically
72
+
* - work_stealing : A pool that allows you to run parallel tasks, it will use the ForkJoinPool.commonPool() by default
73
+
* - virtual : A pool that uses the VirtualThreadPerTaskExecutor, it is great for IO bound tasks and can run many tasks in parallel without blocking, requires Java 19+.
0 commit comments