We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2
votes
1answer
46 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 ...
0
votes
1answer
51 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 ...
1
vote
2answers
61 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 ...
0
votes
1answer
362 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 ...
0
votes
0answers
25 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 ...
1
vote
2answers
55 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 ...
0
votes
1answer
33 views

Why doesnt Ethereum support concurrency?

Why doesnt Ethereum support concurrency? https://en.m.wikipedia.org/wiki/Concurrency_(computer_science)
0
votes
1answer
93 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 ...
1
vote
1answer
149 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 ...
29
votes
3answers
3k 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 ...