A real-time safe multi-threading library was developed on the DIII-D plasma control system to optimize the real-time TORBEAM and real-time STRIDE physics codes. These physics codes are crucial for future fusion power plant operation as they provide information about electron cyclotron wave propagation and heating as well as inform about ideal plasma stability limits. The multi-threading library uses a single Manager thread to coordinate Worker threads and distribute computational work evenly to speed up real-time computations. The flexible nature of the library allows it to work with multiple physics codes and with different numbers of total Worker thread counts. The real-time TORBEAM code executed consistently in under 20 ms while the real-time STRIDE code computes in 100 ms. The multi-threading library developed in this work can be applied to other real-time physics-based codes that will be crucial for the next generation of fusion devices. • Developed multi-threading library for DIII-D real-time plasma control system. • Utilized library for efficient deployment of real-time TORBEAM ray tracing code. • Controlled gyrotrons mirror angles to track dynamic ECH targets. • Calculated MHD stability of DIII-D plasmas in real-time with STRIDE code.
Rothstein et al. (2026) studied this question.