# Process lifecycle

The lifecycle of a process in the Fair Math Computer includes the following key stages:

1. **Initialization:** A process is created when a user or actor invokes an application. During initialization, the process is assigned a unique identifier and its initial state is constructed based on the application’s configuration file and input arguments.
2. **Execution:** The process executes the instructions defined in the application. Exe- cution is distributed across the network, leveraging the computational resources of heterogeneous actors. The system ensures the correctness and integrity of execution through cryptographic guarantees.
3. **Suspension and Resume:** In cases where a process requires external input or encounters resource constraints, it can be suspended. The process state is serialized and stored securely on the blockchain, allowing it to be resumed later without loss of progress.
4. **Termination:** Once the execution completes, the process is terminated. The final state, including any results, is recorded on the blockchain, and all associated resources are released.


---

# 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.fairmath.xyz/fhe-computer/operating-system/process/process-lifecycle.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.
