Thanks for ur code. Im getting the result but Im little bit confused how again first thread A is starting after completion of J thread. Here there is some more task for me if the number of threads are dynamically increasing and I need to perform a task at 12:00am then the same task shud again be performed at 1:00 am,u can say on a periodical basis .Here Im talking of creating threads dynamically bcoz my number tasks to handle is increasing.
So it could mess up with anything.I heard something of thread pooling but here are also there are two problems for me One is how a thread notifies other.In thread pooling he has abstracted over the wait and notify method by ObjectFIFO,idle workers,thread pool etc. Second is how to set my priority this will run at this particular time bye nitin [ August 31, 2002: Message edited by: nitin kumar ]