John Spikowski wrote: ↑
Mon Jul 22, 2019 7:33 pm
I would run ScriptBasic in single threaded mode and forgo the thread support. I'm not a big emulation fan.
Well the way UnixLib does it on RISC OS is not Emulation. Indeed the way UnixLib does it is the same thing that Linux, BSD, MiNIX, etc do it on a single core (using a timer inturupt of some form to call the schedular to switch contexts), even in multicore systems.
Though I am forgoing the thread support for now, because I am not a fan of UnixLib. I may write a more RISC OS like threading module to provide support for threading, though that is further down the road.
You may also be interested in WIMP2, which is an extension module for RISC OS to provide preemptive multitasking support for WIMP based applications (applications that use the Window Manager). As yet WIMP2 does not run on systems with a 32-bit R15, and I think it also uses the SWP instruction that is now depricated, though, hopefully, one of these days one of us will update it. Though my understanding of WIMP2 is that it was a demonstration to show that it can be done natively on RISC OS.