In my experience, two approaches are preferred when people want to handle scripting in multithreaded environment.
- Synchronize every accesses to scripting module with one coarse-grained lock.
- No Synchronization - Scripting module should be used by just one logic thread.
Of course, both solutions are not scalable in multi-core perspective.
Question - Is there any other (multi-core) scalable solution?