-
Jun 11th, 2010, 03:26 AM
#1
maximum thread number
Hi,
is there a maximum thread number when SimpleAsyncTaskExecutor or ThreadPoolTaskExecutor is used? I tried using both of them but in one flow I couldn't achieve to create more than 4 threads. Whatever I set to concurrencyLimit, corePoolSize or maxPoolSize, more than 4 threads does not run parallelly at the same time. it waits threads to end to start new threads. I will be really appreciated if you help me. thanks in advance.
-
Jun 13th, 2010, 06:25 AM
#2
You don't say very much about what you are trying to do. Assuming it is a Spring Batch task executor in a step (multi-threaded step), look for a throttle-limit in the tasklet configuration.
-
Jun 14th, 2010, 04:49 AM
#3
thank you Dave. it really worked. i could not find it in any document or forum.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules