Parallel Computing In Java [closed]
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 questionHow can I make use of parallel in Java? Or do I use normal threads?
- Read the Java Concurrency Tutorial.
- 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.
精彩评论