Hi, just a doubt shouldnt the 2nd last correct option be invokeAll(list) and not invokeAll(subactions) ?
thanks!
About Question enthuware.ocpjp.v7.2.1238 :
Moderator: admin
-
- Posts: 8
- Joined: Wed Apr 17, 2013 12:37 pm
- Contact:
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1238 :
No, you need to pass a collection of RecursiveAction to invokeAll. Please take a look at the examples here: http://docs.oracle.com/javase/7/docs/ap ... ction.html
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 23
- Joined: Sun Feb 21, 2016 10:12 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1238 :
I have a doubt regarding when should I use fork and join from the else block (when the task is bigger than threshold value) and when I should use invoke()?
-
- Site Admin
- Posts: 10102
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1238 :
You should either go through a good book or check out this link: https://docs.oracle.com/javase/tutorial ... kjoin.html
or
http://www.javaworld.com/article/207844 ... rvice.html
or
http://www.javaworld.com/article/207844 ... rvice.html
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 12 guests