Table Of Contents

Automatic Load Balancing

Version:
    Last Modified: January 12, 2018

    Automatic load balancing is the process of assigning threads to CPUs in a way that balances the processing load across CPUs in a real-time operating system (RTOS).

    LabVIEW maintains two pools of CPUs available for automatic load balancing: a Timed Structures pool and a System pool. CPUs in the Timed Structures pool are available for automatic load balancing of Timed Loops configured for automatic processor assignment. CPUs in the System pool are for all other processes, including low-level operating system tasks.

    At startup, LabVIEW assigns all available CPUs to both the Timed Structures pool and the System pool. As a result, the RTOS performs automatic load balancing across all CPUs. However, you can use the RT Set CPU Pools node to specify arbitrary System and Timed Structures pools.

    An RTOS performs automatic load balancing on all threads, with the exception of manually-assigned Timed Loop threads. An RTOS maps code execution from each Timed Loop to its own dedicated thread, but performs automatic load balancing on only Timed Loop threads configured for automatic CPU assignment.


    Recently Viewed Topics