I got some information from Multi threading with Lua
Then I download the llthreads from github.
After integrating the llthreads into cocos2d-x 3.16. I can start a new thread via llthreads.new(…). But in the thread, I could not require some modules. I saw “module ‘xxxx’ not found” message.
These modules can be loaded successfully in the cocos2d-x main thread.