> For the complete documentation index, see [llms.txt](https://scalaris.gitbook.io/scalaris/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scalaris.gitbook.io/scalaris/overview/scalaris-framework/parallel-transaction-execution-for-evm-in-scalaris-framework/general-scheme.md).

# General Scheme

<figure><img src="https://3615657405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvqiE8JyJwtGx16yF0rZu%2Fuploads%2FAyx59cOZsFOrcdkkSHv0%2FScalaris%20-%20Graphic%20(7).png?alt=media&amp;token=d55dee6f-d4c3-4f06-8f35-f8185693cc17" alt=""><figcaption></figcaption></figure>

PTE constructs a transaction-dependent DAG based on the sequence of transactions in the block and their mutual resource dependencies. Transactions with no dependencies (inbound degree of 0) can be executed in parallel. The process involves:

* Identifying mutually exclusive resources occupied by each transaction.
* Constructing a transaction DAG according to these dependencies.
* Executing transactions in parallel using topological sorting of the DAG.
