A Study on Parallel Execution: Everything You Need to Know | HackerNoon

United States News News

A Study on Parallel Execution: Everything You Need to Know | HackerNoon
United States Latest News,United States Headlines
  • 📰 hackernoon
  • ⏱ Reading Time:
  • 135 sec. here
  • 4 min. at publisher
  • 📊 Quality Score:
  • News: 57%
  • Publisher: 51%

This research compares implementation systems similar to Ethereum and analyzes the difficulties and possibilities of achieving parallel execution of transaction - sin7y parallelexecutions

It’s worth noting that the chains analyzed for this research are based on the Account model design scheme, not including the UTXO scheme.FISCO-BCOS, one of the consortium blockchains that support parallel execution of transaction verification within blocks.Aptos public chain, Move Virtual Machine.Let’s take a look at the traditional transaction execution process.

The experimental results of the benchmark test program show that compared with the traditional serial transaction execution scheme, PTE running on a 4-core processor under ideal conditions can achieve about 200%~300% performance improvement, and the computational improvement is proportional to the number of cores.An acyclic-directed graph is often referred to as Directed Acyclic Graph .

After the block is verified, the block is uploaded to the chain. After a transaction is executed, if the state of each node is consistent, a consensus is reached and the block is then written to the underlying storage, which is permanently recorded on the blockchain.Take all the transactions in the block from the packed block.Read all transactions in order. Should a transaction be mergeable, resolve its conflict field and check whether any previous transactions conflict with it.

It is well known that the order of execution between instructions executed in parallel on different CPU cores cannot be predicted in advance, and the same is true for transactions executed in parallel. When transactions are executed in parallel and out of order, the traditional calculation of state root is no longer applicable because transactions are executed in a different order on different machines and the final state root is not guaranteed to be consistent, nor is the receipt root guaranteed to be consistent.

In a simple transfer transaction, we can judge whether two transactions are dependent based on the addresses of the sender and receiver. Take the following three transfer transactions as an example, A→B, C→D, and D→E. In this scenario, the three transactions are all related, so they cannot be executed in parallel. If the transactions are divided according to the previous dependency analysis method, it is bound to cause mistakes.

The executor will automatically arrange all the transactions in the block into the transaction DAG according to the transaction dependencies specified by the developer. The developer must be very careful when specifying transaction dependencies. If the dependencies are not written correctly, the consequences are unpredictable.In order for developers to use the framework of parallel contracts, FISCO BCOS has set some specifications for contract writing. The specifications are as follows:Whether two transactions can be executed in parallel depends on whether the two transactions are mutually exclusive.

To determine whether two transactions can be executed in parallel at the same time is to determine whether the mutex of two transactions intersects. Transactions whose intersections are empty can be executed in parallel.

We have summarized this news so that you can read it quickly. If you are interested in the news, you can read the full text here. Read more:

hackernoon /  🏆 532. in US

United States Latest News, United States Headlines

Similar News:You can also read news stories similar to this one that we have collected from other news sources.

Did Scientists Find Mushrooms on Mars?Did Scientists Find Mushrooms on Mars?Let us review again the difference between a preprint study and peer-reviewed study.
Read more »

Ethereum (ETH) Price Up Despite Reduced Exchange DepositsEthereum (ETH) Price Up Despite Reduced Exchange DepositsEthereum (ETH) up 1.64% despite on-chain data showing slowing exchange deposits
Read more »

Ethereum (ETH) Price Analysis for January 2Ethereum (ETH) Price Analysis for January 2Can ETH keep rising until the end of the week? crypto Ethereum ETH $ETH cryptoexchange VitalikButerin ethereum
Read more »

Ethereum transactions 338% higher in 2022 but Bitcoin remains most popularEthereum transactions 338% higher in 2022 but Bitcoin remains most popularWhile Ethereum transactions and activity far outpaced Bitcoin in 2022, BTC kept its top spot as the most searched cryptocurrency on Google, globally.
Read more »

Ethereum Failed to Break Through This Resistance, Let's See What Bitcoin Can Do: AnalystEthereum Failed to Break Through This Resistance, Let's See What Bitcoin Can Do: Analyst.ethereum failed at this resistance level, but Bitcoin may succeed, analyst CalebFranzen believes. $BTC $ETH
Read more »

Grayscale Ethereum Trust hits record -60% discountGrayscale Ethereum Trust hits record -60% discountETHE's discount to net asset value has been in a general decline since the end of 2020, but accelerated in Q4 2022.
Read more »



Render Time: 2025-03-09 08:38:05