    

 ## On this page

  

 

 # set\_num\_threads

 Last update: 29.04.2026 

<a id="ansys.meshing.prime.Model.set_num_threads"></a>

#### Model.set\_num\_threads(num)

Sets the number of threads for multithreaded operation.

**Parameters:**

**num**

Number of threads.

### Examples

```pycon
>>> model = client.model
>>> model.set_num_threads(4)

```