use less proccesses in process pool

pull/1/head
Michael Peter Christen 13 years ago
parent c639248c23
commit 213c8d97f2

@ -124,8 +124,8 @@ public class ArrayStack implements BLOB {
// init the thread pool for the keeperOf executor service
this.executor = new ThreadPoolExecutor(
Runtime.getRuntime().availableProcessors() + 1,
Runtime.getRuntime().availableProcessors() * 4, 100,
1,
Runtime.getRuntime().availableProcessors(), 100,
TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<Runnable>(),
new NamePrefixThreadFactory(prefix));

Loading…
Cancel
Save