• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to Thread scheduling based on fixed time?  RSS feed

 
praveen kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

I have to run multiple threads based on diff diff fixed times..
might be there is lag of few minutes on each thread.

so, how can i do this....
like thread scheduling via priority basis..is there any trick to move on time basis.

Regards
Praveen
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite sure what you're after. Look into Timer and see how it can schedule a task to run at some future time or at some regular interval. Does that do what you need?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!