Preemptive Threads Explained
HTML-код
- Опубликовано: 8 фев 2025
- The latest release of Xojo, version 2024r3, introduces a significant improvement in multithreading capabilities. This update allows developers to use Thread class instances in preemptive mode, enabling full utilization of all available processor cores for parallel task execution. This tutorial demonstrates how this new feature works and compares its performance to the previously available cooperative threading mode. We'll explore the extent to which this preemptive mode enhances processing times, offering developers a more efficient way to handle complex, multi-threaded tasks.
Xojo is a single language that builds native apps for Windows, macOS, Linux, Raspberry Pi, web, iOS and Android. The Xojo Programming language and IDE is free to download and no license is required to learn, develop, run and test your projects.
►► Visit the Official Site: xojo.com
►► Download Xojo: xojo.com/download
►► Read the Xojo Blog: blog.xojo.com
►► Xojo Docs: documentation....
►► Contact Xojo: xojo.com/compa...
GET MORE
Xojo Forum: forum.xojo.com
Follow Xojo: xojo
Like Xojo: goxojo
I have always appreciated xojo's implementation of threading among other things. It does not over complicate the required code. Is there a way to have core affinity for related processes?
That is great to hear! You cannot currently bind a thread to a specific core. But you can add a feature request to Issues so we can look into it!