Parallel programming in Java

2019-03-08 05:23发布

How can we do Parallel Programming in Java? Is there any special framework for that? How can we make the stuff work?

I will tell you guys what I need, think that I developed a web crawler and it crawls a lot of data from the internet. One crawling system will not make things work properly, so I need more systems working in parallel. If this is the case can I apply parallel computing? Can you guys give me an example?

19条回答
神经病院院长
2楼-- · 2019-03-08 05:52

In java parallel processing is done using threads which are part of the runtime library

The Concurrency Tutorial should answer a lot of questions on this topic if you're new to java and parallel programming.

查看更多
smile是对你的礼貌
3楼-- · 2019-03-08 05:53

You can have a look at Hadoop and Hadoop Wiki.This is an apache framework inspired by google's map-reduce.It enables you to do distributed computing using multiple systems.Many companies like Yahoo,Twitter use it(Sites Powered By Hadoop).Check this book for more information on how to use it Hadoop Book.

查看更多
劳资没心,怎么记你
4楼-- · 2019-03-08 05:53

This is the parallel programming resource I've been pointed to in the past:

http://www.jppf.org/

I have no idea whether its any good or not, just that someone recommended it a while ago.

查看更多
Rolldiameter
5楼-- · 2019-03-08 05:53

I have heard about one at conference a few years ago - ParJava. But I'm not sure about the current status of the project.

查看更多
虎瘦雄心在
6楼-- · 2019-03-08 05:54

Parallelism

Parallelism means that an application splits its tasks up into smaller subtasks which can be processed in parallel, for instance on multiple CPUs at the exact same time. enter image description here

查看更多
Rolldiameter
7楼-- · 2019-03-08 05:55

You might want to check out Hadoop. It's designed to have jobs running over an arbitrary amount of boxes and takes care of all the bookkeeping for you. It's inspired by Google's MapReduce and their related tools and so it even comes from web indexing.

查看更多
登录 后发表回答