This is an example of how to use MY-BASIC with multiple threads.
Read the code and comments for usage.
For info about the interpreter itself, see https://github.com/paladin-t/my_basic/.
- I have disabled
MB_ENABLE_UNICODEandMB_ENABLE_UNICODE_ID, otherwise callingsetlocalein_print_stringmay cause deadlocks with some systems. - It's not fully supported to run forked instances with multiple threads, cannot use referenced GC types in code, although simple data types are OK. If you are not sure about this, just don't use
mb_fork.