Aptos Move by Example
  • 🚀Getting Started
  • Set-Up
  • Why is Move Secure
    • Move prover
  • Move vs Solidity
    • Resources
    • Parallel Processing
    • Reentrancy attacks
    • Memory management
    • Smart contract verification
    • Compiled language
  • Basic Concepts
    • Move.toml
    • Primary data-types
    • Strings
    • Comments
    • Functions
    • Function Visibilities
    • Control flow and expressions
    • Loops
    • Error
    • Struct and its Abilities
    • Scripts
    • Operations
  • Intermediate Concepts
    • Local variables
    • Constants
    • Signer
    • Vector
    • Address
    • Uses and Aliases
    • Maps
    • Hash functions
    • References
    • Unit test
    • Generics
    • Type Arguments
    • Type Inference
  • Advanced Concepts
    • Global Storage Structure
    • Global Storage Operations
    • Phantom Type Parameters
    • Timestamps
    • Ownership
    • Move coding conventions
    • View functions
    • Aptos account
    • Aptos Coin
    • Aptos Token(Nft)
    • Object
    • Token V2
  • Applications
    • First App
    • ToDoList
    • Voting System
    • Basic Tokens
    • Storage using Generics
    • Company
    • Collection
    • Football Card
    • Staking Module
    • MultiSender Wallet
    • English Auction
    • Dutch Auction
    • Attendance Sheet
    • Polling Contract
    • Lottery Contract
  • Decentralized Finance
    • Simple Swap Protocol Contract
    • Code of Swapping Protocol
  • Hacks
    • Coming soon
  • Hands on tutorials
    • Indexer tutorials
Powered by GitBook
On this page
Edit on GitHub
  1. Move vs Solidity

Parallel Processing

Solidity and Move have different approaches to processing and concurrency.

In Solidity, the default execution model is sequential processing, meaning that the code is executed one step at a time, in the order that it appears in the code. This is because Solidity is a single-threaded language, which means that it can only execute one instruction at a time. However, Solidity does support asynchronous processing through the use of events and callbacks, which allow developers to write code that can execute in the background while the main thread is executing other code.

In contrast, Move has a parallel processing model, which allows for multiple threads to execute instructions simultaneously. This is achieved through the use of Move's resource model, which allows resources to be moved between different threads. This means that Move can execute multiple instructions at the same time, which can result in faster processing times and improved scalability.

The choice between sequential and parallel processing ultimately depends on the specific requirements of the application. If the application requires high-speed processing and scalability, a parallel processing model like Move may be more appropriate. However, if the application does not require parallel processing and is more focused on security and predictability, a sequential processing model like Solidity may be more appropriate.

PreviousResourcesNextReentrancy attacks

Last updated 2 years ago