Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9199715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:35:54+00:00 2026-06-17T22:35:54+00:00

Why ForkJoinPool was forked for Scala? Which implementation and for which case is preferred?

  • 0

Why ForkJoinPool was forked for Scala?

Which implementation and for which case is preferred?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:35:55+00:00Added an answer on June 17, 2026 at 10:35 pm

    The obvious reason for the scala library to have its own copy of ForkJoinPool is that scala must run on pre-1.7 JVMs, and ForkJoinPool was only introduced in Java 1.7.

    In addition, there were a few changes made for internal (scala) use, such as this:

    https://github.com/scala/scala/commit/76e9da2ca4c31daec2b04848c3c2dbad6ecd426e

    Given that scala’s version will probably not give you any advantage (if you are compiling and running against java 1.7), I’d say that for you own use you should probably use java’s version. At least java’s version is precisely documented and fully “public”, while the status of scala’s version is unclear (it might very well be intended for internal use only). However in some places you might not have any choice. By example ForkJoinTasks has a forkJoinPool method that expects scala’s version of ForkJoinPool. If someone can get/find any official status for scala’s version of ForkJoinPool stating that it’s really public and stable, then I’ll happily revert this advice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across the sum.misc.Unsafe class when reading the implementation of ForkJoinPool. But no
I want to submit tasks to a ForkJoinPool or ParallelArray from a thread holding
I am new to Scala/Akka, although I am very well familiar with the concept
I'm developing a simple SBT project that includes InputTasks for benchmarking Scala Parallel collections.
I read about the implementation of the Fork/Join framework that was introduced in Java
I have sample implementations for Merge-Sort, one using Fork-Join and other is straight recursive
I would like to improve my fork/join little example to show that during Java
I'm comparing two variations on a test program. Both are operating with a 4-thread
I've got a Java client that needs to recursively call a server to retrieve
I have been having a lot of trouble using an external JAR, GPars, in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.