setCorePoolSize
setCorePoolSize is a method of ThreadPoolExecutor that sets the core pool size, the minimum number of threads that are kept alive in the pool even when idle. The value must be between 0 and maximumPoolSize; passing a value outside this range results in IllegalArgumentException.
In operation, the core pool size defines the baseline level of concurrency. If you increase corePoolSize, the
Core threads are kept alive to handle incoming tasks, even when idle, unless a configuration option allows
The keepAliveTime parameter governs how long threads beyond the core pool size may remain idle before being
Usage notes: adjusting the core pool size can impact performance and resource usage. Changes take effect as