File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Execute Block of code using core java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Execute Block of code using core java" Watch "Execute Block of code using core java" New topic
Author

Execute Block of code using core java

aresh babu
Ranch Hand

Joined: Aug 31, 2008
Posts: 65
Hi,

i have a requirement that i need to execute a block of code for every 30minutes using core java only.Please let me know how can i do it?

Thanks in advance.

Regards
Aresh
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40


For one task.... try java.util.Timer

For many tasks, and more complex requirements... try java.util.concurrent.ScheduledThreadPoolExecutor


Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
Consider Paul's rocket mass heater.
 
subject: Execute Block of code using core java
 
Similar Threads
To enable landscape finish for taking printout using java script
integer command line arguments?
Purpose of Finally Block
i want excute top command in linux using java
return of the try-catch