1 Star 1 Fork 0

那一天 / GoodThread

加入 Gitee
与超过 1000 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README.md

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性能吊炸天的线程池工具 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/ycj0320/GoodThread.git
git@gitee.com:ycj0320/GoodThread.git
ycj0320
GoodThread
GoodThread
master

搜索帮助