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

  • Home
  • SEARCH
  • 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 9115261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:23:19+00:00 2026-06-17T04:23:19+00:00

I understand how to set the parallelism level for a single parallel collection, via

  • 0

I understand how to set the parallelism level for a single parallel collection, via the mutable tasksupport field (c.f. https://stackoverflow.com/a/5425354/82970).

How can I set the parallelism level for all new parallel collections in Scala 2.10?

A subsidiary question — is the tasksupport associated to a parallel collection ‘inherited’ by new parallel collections built out of it? (e.g. with take, map, etc.)

  • 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-17T04:23:20+00:00Added an answer on June 17, 2026 at 4:23 am
    1. I looked at the sources briefly and if I understand things correctly, there are three system properties that can be used to configure the default execution context, which seems to be used as default task support. These determine the parallelism level of the task support object.

      • scala.concurrent.context.minThreads: Int, minimum parallelism level
      • scala.concurrent.context.numThreads: either an Int, to specify the parallelism level to use directly, or a String: an “x” followed by a Double (e.g. “x1.5”), which is then multiplied with Runtime.getRuntime.availableProcessors
      • scala.concurrent.context.maxThreads: Int, maximum parallelism level

      The relevant source file (if I followed everything correctly) seems to be ExecutionContextImpl.

    2. As for the second part of your question:
      Transforming operations like map, filter etc. should preserve the task support that has been set on the originating collection. At least the sources look that way. 🙂
      Most parallel operations are defined in ParIterableLike and they either call resultWithTaskSupport in Combiner (which gets gets the originating task support set via the factory in lines 568 or 581 in ParIterableLike) or set the task support directly on the resulting collection.

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

Sidebar

Related Questions

I set up a few files to understand bash's set construct wildcard, i.e. [].
I'm trying to understand how to set up a one-to-many relationship in Xcode 4.3.1.
I can't seem to understand how to set the height correctly for the jquery
I understand that we can set the various style attributes from code behind using
My build target is set for IOS5 which is where I understand UIButton.tintColor was
I'm trying to understand if it's possible to create a set of variables that
I need to figure out a way to set ValidateRequest at model...I understand that
in an attempt to see and hopefully understand actionscript's garbage collector, i've set up
So, I understand that it's possible to set up in-app purchases for iPhone apps
there is one think, i can't understand anyway:((( when i try to set cookie(it

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.