I am working on an agent-based simulation with approx. 10 million agents.
The agents will be doing nothing for days/weeks at a time, and when they do have to do something, it is not cpu intensive (should take < 1ms).
Is spawning 10 million threads a reasonable thing to try to do? I have read up on Thread/sleep
and future
which seem promising.
Any advice or suggested reading on such a project would be greatly appreciated.