Hello,
I am using Spring-BOOT
I am trying to execute some task in the same time.
1. I defined a scheduler
2. set pool-size to 10.
3. schedule some tasks (for loop ) with crone expression for every 1 second.
I expected the scheduler to execute 10 task with different threads asynchronously.
But it executes each time with only one
thread.
the output is :
jobScheduler-1
jobScheduler-1
jobScheduler-1
jobScheduler-1
jobScheduler-1
jobScheduler-1
It is like using only one thread, but it has 10 threads in the pool.
i expected to be asyncronically :
jobScheduler-1
jobScheduler-2
jobScheduler-3
jobScheduler-4
jobScheduler-1
jobScheduler-3
jobScheduler-1
...
What is wrong?
Thanks
Itamar.