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 // init the thread pool for the keeperOf executor service
this.executor = new ThreadPoolExecutor( this.executor = new ThreadPoolExecutor(
Runtime.getRuntime().availableProcessors() + 1, 1,
Runtime.getRuntime().availableProcessors() * 4, 100, Runtime.getRuntime().availableProcessors(), 100,
TimeUnit.MILLISECONDS, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<Runnable>(), new LinkedBlockingQueue<Runnable>(),
new NamePrefixThreadFactory(prefix)); new NamePrefixThreadFactory(prefix));

Loading…
Cancel
Save