What I am asking for (which may even need), is if I can make 100 ants follow their own line and compute their own at the same exact time, no breaks for anyone of them - no break tricks. |
Hi,
I am just wondering why you might
need all this concurrency? If one had 100 ants and processed them
sequentially, it might only take an
entire millisecond to do the co-ordinate type math for all of them, depending on how complex the processing was. It's possible that you may not need
any concurrency for that type of scenario.
Your question has changed quite a bit: first two things at once, then imagery from multiple cameras, now 100 ants. So what are you trying to do exactly? I suspect you won't need to do anything as complex as modelling the weather with a supercomputer.
I imagine there might be various scenarios where the work is divided between threads, but not 1 thread per ant. For example some of the ants are calculated in one thread, then another another thread draws them on the screen, meanwhile more ants are calculated in the first thread, and so on.
Also, there are various design patterns that might help with some aspects of a problem.
God Luck !!