ThreadPoolExecutor fixed thread pool with custom behaviour
Posted
by
Simone Margaritelli
on Stack Overflow
See other posts from Stack Overflow
or by Simone Margaritelli
Published on 2012-11-08T10:47:15Z
Indexed on
2012/11/08
11:00 UTC
Read the original article
Hit count: 231
i'm new to this topic ... i'm using a ThreadPoolExecutor created with Executors.newFixedThreadPool( 10 ) and after the pool is full i'm starting to get a RejectedExecutionException . Is there a way to "force" the executor to put the new task in a "wait" status instead of rejecting it and starting it when the pool is freed ?
Thanks
Issue regarding this https://github.com/evilsocket/dsploit/issues/159
Line of code involved https://github.com/evilsocket/dsploit/blob/master/src/it/evilsocket/dsploit/net/NetworkDiscovery.java#L150
© Stack Overflow or respective owner