我对内部GroovyScriptEngine的工作原理感兴趣。它是否从父JVM生成进程?如果是这样,它会阻止直到进程退出?
答案 0 :(得分:2)
不,它在当前线程(as can be seen in the source code)
中运行public Object run(String scriptName, Binding binding) throws ResourceException, ScriptException {
return createScript(scriptName, binding).run();
}