You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Edward J. Yoon (Updated) (JIRA)" <ji...@apache.org> on 2012/03/05 07:13:04 UTC
[jira] [Updated] (HAMA-526) Multi-threaded vertex processing
[ https://issues.apache.org/jira/browse/HAMA-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edward J. Yoon updated HAMA-526:
--------------------------------
Description:
{code}
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());
}
}
...
}
{code}
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?
was:
{code}
for (Map.Entry<String, LinkedList<Writable>> e : msgMap.entrySet()) {
if (e.getValue().size() > 0) {
vertices.get(e.getKey()).compute(e.getValue().iterator());
}
}
{code}
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?
> Multi-threaded vertex processing
> --------------------------------
>
> Key: HAMA-526
> URL: https://issues.apache.org/jira/browse/HAMA-526
> Project: Hama
> Issue Type: Improvement
> Components: bsp, graph
> Reporter: Edward J. Yoon
>
> {code}
> 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());
> }
> }
> ...
> }
> {code}
> 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?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira