开发者

program of single thread with timer in java

开发者 https://www.devze.com 2023-01-07 00:00 出处:网络
any simple program for single thread with timer in java. that thread will run with particular time. i am new to this thread开发者_开发问答.

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

精彩评论

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