When making an app, you need to embed JavaScript support, originally used by BSF, but because the problem of variable scope (this BSF is not supported), it is changed to use Rhino directly.
I have read the introduction of Context and ScriptableObject for a long time, and the ScriptableObject generated by the cx.initStandardObjects () method is related to Context, so there is a problem when the application is in multi-threaded. Plus is more difficult to write test cases for multi-threaded program. So it was delayed for this reason for this reason.
There is no way to read the introduction of the Context and the Scriptable section in one word. I am pleased to discover this problem (I didn't read this in the first few days). Said that the scriptableObject generated by the context.initstandardObject () method is independent. That is to say, you can generate ScriptableObject in a thread, and then use it in another thread to solve my big problem.