ThreadPoolExecutor createExecutor() {
        int maxOutstandingTasks = maxQueuedRenderingTasksPerProcessor * availableProcessors;
        ThreadPoolExecutor executor = new ThreadPoolExecutor(availableProcessors, availableProcessors, 1L, TimeUnit.SECONDS,
                                                             new LinkedBlockingQueue<>(maxOutstandingTasks),
                                                             ThreadFactoryFactory.getThreadFactory("common-rendering"),
                                                             (task, exec) -> renderingRejected(maxOutstandingTasks));
        executor.prestartAllCoreThreads();
        return executor;
    }
Factory of the executor passed to renderers by default.

@author bratseth
container-search/src/main/java/com/yahoo/search/searchchain/RenderingExecutorFactory.java