[英]program of single thread with timer in java
any simple program for single thread with timer in java. 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. 您需要一个ScheduledExecutorService,它可以从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/Executors.html
http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/util/concurrent/ScheduledExecutorService.html http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/util/concurrent/ScheduledExecutorService.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.