I am writing a document about the applicability of multi-agents to solve various business problems and I have seen bitcoin is described as multi-agent: Godsiff, Philip. "Bitcoin: bubble or blockchain." Agent and Multi-Agent Systems: Technologies and Applications. Springer International Publishing, 2015. 191-203. They say
This paper sets out a brief, deliberately non-technical, overview of Bitcoin, a new, but becoming more mainstream, crypto currency, generated and managed by a distributed multi–agent system.
I want to examine the role of parallelism and scalabity issues. I understand a smart contract is stored as byte code on the blockchain and then distributed to all nodes. When someone runs the smart contract, how does it run? If say 1000 dapps all run that smart contract at the same time, how does that run? Does the blockchain node execute that code 1000 times all in memory? If the number say is 50000 executions at the same time, what happens then? Do they all queue and wait to run?
I would appreciate an overview how the contract runs and if we can apply parallelism to allow scalability to large scale dapps.