Is NashornScriptEngine thread safe?

Can anyone clarify if NashornScriptEngine is thread safe or not? If it is not thread safe, how to handle multiple scripts?

+4
source share
1 answer

The engine itself is thread safe , but the answer is not a simple yes / no, so keep reading.

See this answer from someone with excellent credentials on this topic.

I will not copy / paste the whole answer, but it starts with this:

ScriptEngine CompiledScript . . , , JavaScript, , , .

, , Bindings...

.

+3

Source: https://habr.com/ru/post/1611159/


All Articles