Engaged employer
Java: how do you make n threads run at the same time?
Anonymous
weird question - threads do run at the same time, unless you do something special to prevent it. this code makes threads run at the same time: for (int i = 0; i < n; ++i) new Thread().start(); the answer posted by Anonymous is to a different question - how to synchronize certain parts of threads (that do run at the same time :). This is very legit question and CountDownLatch / CyclicBarrier are standard mechanisms to achieve that
Check out your Company Bowl for anonymous work chats.