Does thread pool size keep growing for scheduledthreadpoolexecutor?
        Posted  
        
            by 
                Sourajit Basak
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Sourajit Basak
        
        
        
        Published on 2013-11-02T09:38:01Z
        Indexed on 
            2013/11/02
            9:53 UTC
        
        
        Read the original article
        Hit count: 232
        
java
|multithreading
Imagine a situation where tasks are being added to scheduledthreadpoolexecutor. Each of these tasks will keep on running at different periodic intervals.
Although all such tasks will not be running at the same time because each is set at different intervals, there may be a situation where a high number of threads are competing for execution.
Is there any restriction on total number of threads ? It seems there is a restriction on the total number of idle threads. And does this concept of idle thread imply that long running tasks (thread) may be destroyed and recreated when needed ?
© Stack Overflow or respective owner