I understand that threads have been greatly improved!
I was shelling out to some executables from my Xojo App.
Each ‘shell’ was it’s own ‘true’ thread according to threading at the time.
Now I still wish to shell out to executables and I do want them to be independent threads.
Any suggestions for true threading of tasks?
external apps have their own threads (preemptive).
The shell class doesn’t need a thread for this. It just monitors the external app and runs a few events, usually on the main thread.
As long as your Shell is in Mode=Interactive or Mode=Asynchronous, you are already taking advantage of multiple cores and you don’t really need to change anything. Xojo’s new threading mechanism only improves how Xojo code executes; it doesn’t affect code executing elsewhere (like your external shell commands).
1 Like