KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Say I have a task like: for(Object object: objects) { Result result = compute(object); list.add(result); } What is the easiest way to parallelize each compute() (assuming they are already parallelizable)? I do not need an answer that matches strictly the code above, just a general answer. But if you need more info: my tasks are IO bound and this is for a Spring Web application and the tasks are going to be executed in a HTTP request.
Tags (comma-separated)
Save Edits
Cancel