I have to send out massEmails to all users of a website. I want to use a thread pool for each email that is sent out. Currently I have set the values to :
&l
Here are Sun’s rules for thread creation in simple terms:
corePoolSize, create a new Thread to run a new task.corePoolSize, put the task into the queue.maxPoolSize, create a new thread to run tasks in.maxPoolSize, reject the task.Full article
Origin answer