Skip to main content

Questions tagged [concurrency]

In computer science, concurrency is a property of systems in which multiple computations can be performed in overlapping time periods. The computations may be executing on multiple cores in the same chip, preemptively time-shared threads on the same processor, or executed on physically separated processors.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

I need to know if the gas fees can be paid after the transfer from an investment account to my cypto.com account

I have a large amount to transfer from an investment account to my cypto.com account and can't pay the gas fees upfront. Is there any way to pay the gas fees out of the profit either before the ...
Robert Owens's user avatar
4 votes
2 answers
60 views

Is there ever going to be some kind of parallelism in Ethereum or any L2?

Suppose I have a long array of values: x = [1, 2, 3, ..., N] # shape [N, ] array and a function def f(x): return x ** 2 then I'd do something like (similar to python's multiprocessing) with ...
H. Arponen's user avatar
1 vote
0 answers
81 views

How to use a DEX aggregator in a fund without risking concurrency calls?

I will begin with some context. I currently building a kind of vault (like enzyme.finance or nested.fi) where an administrator can create a vault and then an investor can deposit fund in the form of a ...
0xParty.rocks's user avatar
2 votes
1 answer
102 views

how concurrency of the blockchain affect reentrancy protection?

I was about to implement the the reentrancy protection where the function is locked when contract execution is still processing. below is the code contract Example { bool locked; ...
MikasaEren's user avatar
1 vote
1 answer
42 views

Is it possible for an interaction between two contracts be interfered with by another contract?

For example: 1.Contract A makes a call to contract B to retrieve a state value from B 2.Contract A then uses the data provided by contract B to create modified value 3.Contract A sends the derived ...
user2034635's user avatar
1 vote
1 answer
314 views

Potential Concurrent Engines for Ethereum?

I have been reading some papers on the topic of concurrency on blockchains, smart contract systems to be more specific. Most of the research in the last 3 years uses Ethereum as a reference of the ...
kianenigma's user avatar
2 votes
1 answer
2k views

About transaction higher nonce than current nonce

I'm trying to build an Ethereum exchange service, so concurrent schedule is needed and nonce management is the most problem (another topic discussed about it). At specificed moment, I have large ...
mmo2112's user avatar
  • 27
1 vote
1 answer
1k views

concurrency issues [duplicate]

If there are three nodes, and the contract is like that contract IncentiveMechanism{ uint public money; function setMoney(uint m){ money = money+m; } } if three nodes call the ...
Lance li's user avatar
2 votes
2 answers
208 views

Is there any kind of locking protocol in Ethereum?

Is there any kind of locking protocol in ethereum, like can two transaction update the state variable same time ?, If yes then how would you avoid that ? Smart Contract XYZ is deployed and two people ...
Tharun Prabakaran's user avatar
0 votes
1 answer
2k views

how blockchain can handle the concurrency? [duplicate]

I read some pages here about concurrency but I didn't give my answer, actually I am new to Bchain, consider this scenario: There is a game contract on the blockchain for 4 Players, so far three ...
Azzurro94's user avatar
  • 123
0 votes
0 answers
33 views

I am confused with the outcome below

Two contracts (code are for illustrative purposes only. Assume all syntax are correct): contract CA { function FA() public { // Invoke CB.FB() multiple times } } And contract CB ...
s k's user avatar
  • 886
1 vote
2 answers
95 views

Contract A has a function that depends on Contract B's state. How does concurrency work for these two contracts?

I was thinking about a scenario where one contract depends on another contract's state. For example, contract a may want to decide on its next state update based on the current state of contract b by ...
Vlad's user avatar
  • 501
0 votes
1 answer
85 views

Why doesnt Ethereum support concurrency?

Why doesnt Ethereum support concurrency? https://en.m.wikipedia.org/wiki/Concurrency_(computer_science)
Nathan Aw's user avatar
  • 1,954
0 votes
1 answer
346 views

How to immediately close ethclient.Client RPC sockets so they don't linger in TIME_WAIT status on server?

My server is running out of available sockets while I am using goroutines (limited to 100 concurrently) because once a goroutine finishes the ethclient.Client socket stays open in TIME_WAIT status for ...
xref's user avatar
  • 191
1 vote
1 answer
360 views

Is there concurrency in smartcontracts?

I have a question about concurrency in smart contracts. For instance, I have array of structs and each struct should have a "unqiue" ID. For my needs, it is enough to have ID equal to position in ...
Alex G.P.'s user avatar
  • 1,277
44 votes
3 answers
10k views

Concurrency patterns for account nonce

The account nonce is the only element in the transaction structure that prevents replay attack (as explained in this very good answer). It essentially forces sequentialisation of an account's ...
Linmao Song's user avatar
  • 2,357