这个配置是总共能运行20个线程,优先执行的只有5个,其他的15个在等待还是也在同步执行?

提问 1 845
chyitec
chyitec 2019-03-07
版本:renren-fast 开发环境:
//线程池配置 prop.put("org.quartz.threadPool.class", "org.quartz.simpl.SimpleThreadPool"); prop.put("org.quartz.threadPool.threadCount", "20"); prop.put("org.quartz.threadPool.threadPriority", "5"); 这个配置是总共能运行20个线程,优先执行的只有5个,其他的15个在等待还是也在同步执行? 我们现在有25个同步数据的线程,要让这些线程同步并发执行的话,这个地方的参数如何配置
回帖
  • [pre] prop.put("org.quartz.threadPool.threadPriority", "5"); [/pre] 这个是指20个线程的优先级为5
    0 回复