• Post Reply Bookmark Topic Watch Topic
  • New Topic

Run a thread at every 5mins interval ??

 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want that a thread should run automatically after every 5 mins interval so that it can check a folder for file to upload. I have tried as per my below codes but couldn't slove my problem. Can any one pls guide me.



Thanks & Regards
Bikash
[ August 12, 2004: Message edited by: Bikash Paul ]
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the java.util.Timer class
 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can i do that using Thread.

Thanks & Regards
Bikash
 
Kamlesh Sangani
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did u say 5 minutes? u r setting 50000 ms.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what's about a loop?
you slept and stoped.


[ August 12, 2004: Message edited by: Stefan Wagner ]
 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Thanks for all ur's guidance.

Thanks & Regards
Bikash
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!