[英]program of single thread with timer in java
Java中帶有計時器的任何單線程簡單程序。
該線程將在特定時間運行。
我是這個線程的新手。
提前致謝
您需要一個ScheduledExecutorService,它可以從Executors上的靜態工廠方法之一獲得。
查看:
http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/util/concurrent/Executors.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.