aspose file tools*
The moose likes Threads and Synchronization and the fly likes Interval timer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Interval timer" Watch "Interval timer" New topic
Author

Interval timer

aks ups
Greenhorn

Joined: Sep 06, 2011
Posts: 2
Hi ,

I need to write a progrmme that display time in fix time interverl without putting thred in loop to keep resuorce busy in code java.

Any ideas are welcome

regards
aks


Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Hi and welcome to the JavaRanch.

Could you explain why you need that? And show us what you have tried so far.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
aks ups
Greenhorn

Joined: Sep 06, 2011
Posts: 2

Actully , This question was asked me in an interview and I didn't have answer.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

A simple timer would be sufficient in that case.
Tariik el berrak
Greenhorn

Joined: Jan 23, 2009
Posts: 9
copy the code in a java file called ScheduledTask.java, comple it and run it

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interval timer
 
Similar Threads
Riddle
JQ+
WA #2 ..... word association
Scrabble... it only takes a minute...
WA #1.....word association