Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在程序里面使用FQueue,如果关闭之后,有几个线程停止不了,如果多次启动几个FQueue,会导致线程重复开启N个 #10

Closed
GoogleCodeExporter opened this issue Jul 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

1. 在程序里面New一个FQueue对象
2. 
在空闲一段时间队列未使用的时候调用FQueue对象的close方法关
闭队列
3. 关闭后有两个线程任然未退出,并且不是Daemon模式的线程

应该在调用FQueue对象的close方法后自动中断线程

此问题在JDK1.6以上版本(以下版本未测试)、redhat linux 
、windows下均存在

经源码跟踪发现时FSQueue里面的有一个deleteFileRunner在以一种死
循环的方式运行,导致Executors.newSingleThreadExecutor()无法退出,��
�一个线程是LogEntity里面的的一个Executor,是一样的现象.

Original issue reported on code.google.com by zj304292...@gmail.com on 27 Jan 2014 at 2:26

@GoogleCodeExporter
Copy link
Author

在close方法中添加关闭线程池修复

Original comment by zj304292...@gmail.com on 2 Apr 2014 at 10:19

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant