1 Star 1 Fork 0

那一天 / GoodThread

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 760 Bytes
一键复制 编辑 原始数据 按行查看 历史
那一天 提交于 2019-09-10 15:06 . 调整项目结构

GoodThread

项目介绍 性能炸裂的Java线程管理工具

DEMO:

public class Test {

	public static void main(String[] args) throws InterruptedException {
		Queue<Runnable> que = new ArrayBlockingQueue<Runnable>(5);
		que.add(new TestThread());
		que.add(new TestThread());
		que.add(new TestThread());
		que.add(new TestThread());
		que.add(new TestThread());
		
		com.lp.thread.GoodThreadPool goodThreadPool = new com.lp.thread.GoodThreadPool(7, true, que);
		goodThreadPool.excute();
		
		System.out.println("sadasd");
	}
}
public class TestThread implements Runnable{

	
	public void run() {
		System.out.println("执行中");
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
Java
1
https://gitee.com/ycj0320/GoodThread.git
git@gitee.com:ycj0320/GoodThread.git
ycj0320
GoodThread
GoodThread
master

搜索帮助