[concurrency-interest] ForkJoinTask enhancement suggestion

Mohan Radhakrishnan radhakrishnan.mohan at gmail.com
Tue Mar 6 09:29:09 EST 2012


Looking forward to some advanced examples.

Thanks,
Mohan

On Mon, Mar 5, 2012 at 5:09 PM, Doug Lea <dl at cs.oswego.edu> wrote:

> On 03/04/12 23:26, Wolfgang Baltes wrote:
>
>>  My
>> proposal is to consider adding a new constructor ForkJoinTask(V) that a)
>> sets
>> the value, and b) sets the state to NORMAL. Although it may be consistent
>> to
>> also add a constructor to create an "exception task", I do not think this
>> is
>> necessary because of less frequent use, and hence less overall
>> performance impact.
>>
>> Noticing that tagging will also be available in a forthcoming version of
>> the
>> framework, it may make sense - for better performance and consistency -
>> to also
>> add the constructor ForkJoinTask(V, short) and the method complete(V,
>> short),
>> which allow setting both the value and the tag simultaneously.
>>
>>
> Stay tuned. One of the reasons for adding integrated tagging support
> is to allow introduction of one or more new flavors of
> ForkJoinTask (besides RecursiveAction and RecursiveTask)
> that trigger completion actions when some number (including zero)
> of subtasks complete. So you should be able to efficiently get these
> kinds of effects using these classes without us having to expose
> more representation-dependent methods/constructors.
>
> These upcoming classes are part of the efforts I mentioned in posts
> around 6 months ago to improve support for the many FJ usages
> that have sprung up that fall outside of the initial target
> uses.
>
> -Doug
>
>
>
> ______________________________**_________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.**oswego.edu <Concurrency-interest at cs.oswego.edu>
> http://cs.oswego.edu/mailman/**listinfo/concurrency-interest<http://cs.oswego.edu/mailman/listinfo/concurrency-interest>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20120306/a512c88c/attachment.html>


More information about the Concurrency-interest mailing list