calling code that uses jsr166y

18 views
Skip to first unread message

Tim Pigden

unread,
Jan 7, 2015, 6:23:31 AM1/7/15
to akka...@googlegroups.com
Hi
I'm going to be calling some Java multi-threaded code that is currently using JSR166Y (due to backward compatibility requirements with some legacy java 6 code).

My Java developer wants to know if he should do a branch to use java7 (or 8) compatible fork join pool instead

The intention is I call this from within an actor and possibly from within multiple actors (i.e. simultaneously). So I could have 2 or 3 actors each calling this code (a fairly long lived dynamic program at up to 500ms) which itself is using fork join to parallel process with a fairly low number of threads.

Is there a recommendation of best practice here?

Tim

Viktor Klang

unread,
Jan 7, 2015, 6:32:23 AM1/7/15
to Akka User List
Hi Tim,

is it using ForkJoinTask/RecursiveTask directly?


--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,

Tim Pigden

unread,
Jan 7, 2015, 6:40:15 AM1/7/15
to akka-user@googlegroups com
hi - yes


You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/D4eu8JUq2Lk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.

To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Tim Pigden
Optrak Distribution Software Limited
+44 (0)1992 517100
http://www.linkedin.com/in/timpigden
http://optrak.com
Optrak Distribution Software Ltd is a limited company registered in England and Wales.
Company Registration No. 2327613 Registered Offices: Suite 6,The Maltings, Hoe Lane, Ware, SG12 9LR England 
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Optrak Distribution Software Ltd. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.

Viktor Klang

unread,
Jan 7, 2015, 7:00:26 AM1/7/15
to Akka User List
Hmmm, I've reread your question a couple of times and I am not sure what you are asking, is there something more specific your wonder? (I don't know what goals you have)

Tim Pigden

unread,
Jan 7, 2015, 7:16:23 AM1/7/15
to akka-user@googlegroups com
Hi Viktor,
Ok sorry - I'm not an expert in these matters - apologies for the vagueness.  I'll do some homework and make him read the docs. Dispatcher looks a good place to start. 


Viktor Klang

unread,
Jan 7, 2015, 7:20:08 AM1/7/15
to Akka User List
Hi Tim,

Akka fork-join-executor-based dispatchers uses Scala's embedded jsr166 version of FJ.
I don't think it lets you work with FJT though.

On Wed, Jan 7, 2015 at 1:16 PM, Tim Pigden <tim.p...@optrak.com> wrote:
Hi Viktor,
Ok sorry - I'm not an expert in these matters - apologies for the vagueness.  I'll do some homework and make him read the docs. Dispatcher looks a good place to start. 


--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,
Reply all
Reply to author
Forward
0 new messages