<div class="section-label"><span class="num">08</span> Concurrency</div>
<div class="section-title">Cross-platform <em>multiprocessing</em>.</div>
The v2 Python package uses `from multiprocessing import freeze_support` so concurrent calls work across platforms.
Include `freeze_support()` in the entry-point block on:
- **Windows**, which always uses the `spawn` start method
- **macOS with Apple Silicon** when Python is installed via Homebrew, which also defaults to `spawn`
On most Linux systems the call is a no-op (`fork` is the default). Including it still keeps scripts and the pip package safe when they use multiprocessing or threaded APIs.
```python
from multiprocessing import freeze_support
if __name__ == "__main__":
freeze_support()
# predict_grid / predict_maxfit / predict_psr ...
```
## Related
- [[API/Python API Client/Introduction|Python Client]]
- [[API/Python API Client/API Client/Overview|API Client]]
- [[Quickstart|Quickstart]]