[concurrency-interest] Visualize parallelism

Kasper Nielsen kasper at kav.dk
Thu Feb 17 11:12:31 EST 2011


Right, It is probably wise to avoid similar problems to
new Thread(runnable).run();
Even though it is rather annoying that you cannot decorate FJ tasks.

Cheers
   Kasper
On 17-02-2011 00:50, Doug Lea wrote:
> On 02/16/11 09:12, Kasper Nielsen wrote:
>> ForkJoinPool uses
>> ForkJoinTask.exec() which is protected. This makes it difficult to create
>> generic wrappers,
>> Any reason not to make ForkJoinTask.exec() public?
>
> The use of "protected" in FJ methods eliminates one kind
> of error that we'd otherwise see and internally need to cope
> with -- it makes it hard at best to call them from outside
> of a FJ computation.
>
> -Doug
>
>
>
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>



More information about the Concurrency-interest mailing list