program threads command


program threads keyword

Set the number of threads for calculations and plotting.

This value is part of the program state. It is not saved or restored with the model or the project. It persists across multiple code executions on the current hardware. The default value after code installation is automatic.


As with all program commands, use of the command word program is optional; program threads and threads are both valid.


Use i processors.


The number of threads reported by the operating system is used. Note that if hyper-threading is active, this can be twice the actual number of processors and cores available.