# Concurrency and Cross-Platform Compatibility

Our Python package uses `from multiprocessing import freeze_support` to ensure cross-platform compatibility when using concurrency. This line is **required** in entry-point blocks on:

* **Windows**, which always uses the `spawn` start method
* **macOS with Apple Silicon** (M1/M2/M3/M4) when using Python installed via Homebrew, which also defaults to `spawn`

While it's a no-op on most Linux systems (which use `fork` by default), including `freeze_support()` ensures safe and consistent behavior across all platforms, especially when running our scripts and pip package that use multiprocessing or multi-threaded APIs.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.csanalytics.io/python-api-package/concurrency-and-cross-platform-compatibility.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
