program threads command

Syntax

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.

Note

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

i

Use i processors.

automatic

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.