我以为这会很容易找到,但我失败了。 如果我在我的Groovy应用程序中使用GPars并且没有指定池大小将创建多少个线程?有没有设置默认池大小? // How many threads will be created? What is the default pool size?
GParsExecutorsPool.withPool {
// do stuff...
}
假设以下并行处理在Groovy/Gpars .... def result
GParsPool.withPool(5){
result = idList.collectParallel{processItem(it)}
}
如果result仅仅是一个数组列表,并且,假设没有线程访问或操纵processItem()result,并result需要显式同步?我需要知道我应该做这个,而