Description
public void bsp(BSPPeer peer) throws IOException, SyncException, InterruptedException { ... while (updated && iteration < maxIteration) { peer.sync(); ... for (Map.Entry<String, LinkedList<Writable>> e : msgMap.entrySet()) { if (e.getValue().size() > 0) { vertices.get(e.getKey()).compute(e.getValue().iterator()); } } ... }
Above code will run Vertex sequentially. Do you think we can run Vertex processing concurrently using multi-threads?
Then what's the advantages or disadvantages of using multi-threading?