开发者

Parallel Computing In Java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 6 years ago.

开发者_StackOverflow Improve this question

How can I make use of parallel in Java? Or do I use normal threads?


  1. Read the Java Concurrency Tutorial.
  2. Make multiple threads to do your work for you.


What a big topic! A typical solution is using multi-threading, you need a class implemented Runnable interface and put your function into its run() method. For details, I suggest you buy a copy of Java Concurrency in Practice.


You can use both Java Threads and Java Concurrency framework.

If you are really interested about Java concurrency, Java Concurrency in Practice is a good book to start.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜