Java执行器从不启动
我当前在设置ExecutorService时遇到问题,但对newFixedthreadPool的调用从未完成。我有一个记录器语句紧跟在它之后,永远不会执行 是否有什么东西会导致它永远无法完成?这在同一代码中从未发生过,所以我很困惑Java执行器从不启动,java,executorservice,executor,Java,Executorservice,Executor,我当前在设置ExecutorService时遇到问题,但对newFixedthreadPool的调用从未完成。我有一个记录器语句紧跟在它之后,永远不会执行 是否有什么东西会导致它永远无法完成?这在同一代码中从未发生过,所以我很困惑 ExecutorService ex = Executors.newFixedThreadPool(this.numStreams); logger.trace("Thread pool set up.");
ExecutorService ex = Executors.newFixedThreadPool(this.numStreams);
logger.trace("Thread pool set up.");
for (int i = 1; i <= this.numStreams; i++)
{
logger.trace("Starting a new thread for stream {}", i);
Future f = ex.submit(new TestThread(c, c.getStreamIterator(i), this.config));
logger.trace("New thread has been started.");
}
ExecutorService ex=Executors.newFixedThreadPool(this.numStreams);
trace(“线程池设置”);
对于(int i=1;我确定您的日志配置仍然写入跟踪
?…其他跟踪日志即将出现??Arg…该死…是的,我以为我已经将其配置为这样做了…感谢您的指导。