• Post Reply Bookmark Topic Watch Topic
  • New Topic

parallel threads  RSS feed

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it possible to have a different thread doing something different every
t seconds?
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that sounds possible. What is the scenario you are thinking about?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you elaborate on this?
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, i have a server/client app. and if the server disconnects/shutsdown...

the client(s) are supposed to also...

i used a timertask, and checked to see if the client was connected

every 1 second....

Justin
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!