fork-join Questions

2

Solved

Is it necessary that I use join() with fork() or I may use also either of join(), get(), invoke(). I checked the API and besides that get() throws InterruptedException and ExecutionException I don'...
Araroba asked 26/7, 2013 at 8:6

3

I try to use a ForkJoinPool to parallelize my CPU intensive calculations. My understanding of a ForkJoinPool is, that it continues to work as long as any task is available to be executed. Unfortun...
Gladysglagolitic asked 3/6, 2013 at 10:44

2

Solved

I have written the following snippet: static private int counter; public void compute() { if (array.length<=500) { for(int i = 0;i<array.length;i++){ counter++; System.out.println("...
Whence asked 3/6, 2013 at 11:52

3

Recently, I came to know about the Java 7 fork/join framework - what I learned is that it could be useful for divide-and-conquer like problems. My question is, does the framework guarantees execut...
Barnett asked 7/5, 2013 at 3:44

1

Solved

I need to spawn set of Futures and wait untill all of them complete either with failure or with some success. The recent Scala 2.10 doesn't contain anything like that or I did miss something?
Lymphocytosis asked 2/3, 2013 at 19:2

1

Solved

Why ForkJoinPool was forked for Scala? Which implementation and for which case is preferred?
Ragsdale asked 28/1, 2013 at 12:29

1

Solved

I would like to improve my fork/join little example to show that during Java Fork/Join framework execution work stealing occurs. What changes I need to do to following code? Purpose of example: j...
Chiliarch asked 28/12, 2012 at 23:4

2

Solved

See the simplified example code here: process job[num_objs]; // assume also, arr_obj1s (array of type obj1) and // arr_obj2s (array of type obj2) are arrays of size // num_objs, and the obj...
Paresh asked 2/1, 2013 at 17:4

2

Solved

This came up as a "side effect" to an an answer on another question today. It's more about curiosity than about an actual problem. Java SE 7 offers what Oracle calls "the fork/join framework". It ...

1

Solved

I am new to Scala/Akka, although I am very well familiar with the concept of actor-based modeling. I am trying to parallelize an existing code for better performance, and I have two versions: one i...
Getter asked 21/8, 2012 at 11:53

3

Solved

I read about the implementation of the Fork/Join framework that was introduced in Java 7 and I just wanted to check that I understand how the magic works. As I understand, when a thread forks, it...
Twirp asked 29/6, 2012 at 13:13

4

Solved

I'm looking for well organized information sources about how the upcoming jsr166y (fork-join, fences) and extras166y (ParallelArray, etc.) can be used - something from tutorial to expert level.
Algophobia asked 18/7, 2009 at 17:49

2

Solved

I'm comparing two variations on a test program. Both are operating with a 4-thread ForkJoinPool on a machine with four cores. In 'mode 1', I use the pool very much like an executor service. I toss...
Insipience asked 13/3, 2012 at 2:16

1

Solved

i am starting to learn the ExecutorService class. The documentation (and tutorials online) say to always call ExecutorService.shutDown() to reclaim resources. however, the documentation also says t...
Sebaceous asked 27/2, 2012 at 13:8

1

Solved

Is there any plan to leverage java 7 util.concurrent's ForkJoin APIs or, expose similar API in Akka?
Laoighis asked 26/1, 2012 at 15:30

3

Solved

in my application, I have to solve a problem by executing many network-io bound task and sometime one io bound task and be divided into smaller io bound tasks. These tasks are currently getting exe...
Gennygeno asked 21/11, 2011 at 1:24

1

Solved

As I understand jdk7 has the support for fork-and-join, Can I use fork-and-join in JDK6 without upgraging to JDK7.0?
Disraeli asked 21/11, 2011 at 0:4

2

Solved

Brian Goetz's wrote a nice article on fork-join at http://www.ibm.com/developerworks/java/library/j-jtp03048.html. In it, he lists a merge sort algorithm using the fork-join mechanism, in which he ...
Banana asked 26/1, 2011 at 0:52

1

Solved

Is it possible, in theory, to use the Scala Actor Framework to do a kind of asynchronous divide-and-conquer computation similarly to JDK 7's Fork-Join framework? If so, how could I express an FJ pr...
Beckwith asked 19/7, 2009 at 8:54

© 2022 - 2024 — McMap. All rights reserved.