How to run multiple Thread using Scheduler's in 1.5
Hi,
I have a scenario, in which I have to run a Thread at every 15 minutes, If the first Thread is not Finished in 15 min then new Thread has to start.
Currently I implemeted with java 1.5 schedulers, but the problem is if my first Thread is taking more than 15 min, then no new Thread is starting.
Following is my Code:
TestAccountingThread accountingThread = new TestAccountingThread();
ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(10);
scheduler.scheduleAtFixedRate( accountingThread, 0, 60, SECONDS );
Can any one help on this, This is really urgent.
Regards,
Suman

