For several weeks I tried to find a solution. I come back to the same thing again and again. Java ScheduledThreadPoolExecutor alternatives ... but does nothing.
I want the tasks to be synchronized / sequentially within the scheduler, having many schedulers doing this independently, with the support of one thread ...
I have a server application in Java and I need to create hundreds and thousands of schedulers.
I want each scheduler to execute their tasks in turn and synchronize.
All schedulers can be executed simultaneously and independently, but I also need to limit the number of threads for all schedulers using threadpool (not threadpool for the scheduler, but one threadpool for ALL schedulers!). Also a great opportunity to pause / resume tasks and place them within groups. any solutions? thanks in advance!
source share