Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to execute another Thread when a Thead is put to Sleep?

 
Vikas J Yadav
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi in the above code I have to run reports. A report will run repeatedly at certain frequency for eg every min , every hour or daily. What i want is when the Thread for the first report is not running then the thread for next Thead should start the excution. Please let me know How this can be achieved?

Thanks.
 
Rohit Aggarawal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Hope that you full fill your need.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!