开发者

program of single thread with timer in java

any simple program for single thread with timer in java.

that thread will run with particular time.

i am new to this thread开发者_开发问答.

thanks in advance


You'll want a ScheduledExecutorService, which can be obtained from one of the static factory methods on Executors.

Check out:

http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/util/concurrent/Executors.html

http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/util/concurrent/ScheduledExecutorService.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜