package com.test.thread; import java.util.Timer; import java.util.TimerTask; /** * 主要实现某个数据库里的某张表每5秒不间断的上传到另外的数据库的某张表 * 利用线程完成 * @author Administrator * 2014-07-18 */ public class MainThread extends TimerTask { @Override public void run() { TestThread test = new TestThread("this is thread"); new Thread(test).start(); } public static void main(String[] args) { Timer timer = new Timer(); timer.schedule(new MainThread(), 0,5000); } }


爱情戴罪的羔羊 LV7
2024年4月2日
1529860026 LV24
2023年6月1日
heqian LV17
2023年1月10日
微信网友_6040315240812544 LV8
2022年10月20日
mylzdy LV12
2022年5月12日
3199625134 LV10
2022年4月20日
liju1014
2022年4月5日
暂无贡献等级
xiaoding1999 LV7
2022年4月1日
hai77dong LV3
2021年11月8日
随便取个名字_哈哈 LV27
2021年11月7日