RubyInstanceConfig.POOL_MIN,
RubyInstanceConfig.POOL_MAX,
RubyInstanceConfig.POOL_TTL,
TimeUnit.SECONDS,
new SynchronousQueue<Runnable>(),
new DaemonThreadFactory("Ruby-" + getRuntimeNumber() + "-Worker"));
fiberExecutor = new ThreadPoolExecutor(
0,
Integer.MAX_VALUE,
RubyInstanceConfig.FIBER_POOL_TTL,
TimeUnit.SECONDS,
new SynchronousQueue<Runnable>(),
new DaemonThreadFactory("Ruby-" + getRuntimeNumber() + "-Fiber"));
// initialize the root of the class hierarchy completely
initRoot();
// Set up the main thread in thread service