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_UNICODE
andMB_ENABLE_UNICODE_ID
, otherwise callingsetlocale
in_print_string
may 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
.