123 Star 1.6K Fork 509

GVPopengoofy / hippo4j

 / 详情

线程池使用PriorityBlockingQueue报错

待办的
创建于  
2023-08-07 14:58
  1. 使用版本:1.5.0
  2. 报错信息:
    输入图片说明
    3.复现代码:
ThreadPoolExecutor executor=ThreadPoolBuilder.builder().workQueue(new PriorityBlockingQueue())
                           .threadPoolId("1).corePoolSize(1).maximumPoolSize(1)
                           .threadFactory("d).build();
while(true){
    executor.submit(new Task());
}
....
static class implements Runnable,Comparable{

        public int compareTo(Object o){
            return 0;
        }
        public void run(){
            //something    
        }
}

评论 (0)

SHY 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Java
1
https://gitee.com/opengoofy/hippo4j.git
git@gitee.com:opengoofy/hippo4j.git
opengoofy
hippo4j
hippo4j

搜索帮助