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 6352901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:18:52+00:00 2026-05-24T22:18:52+00:00

I have a task which can I divide into multiple independent subtasks and Each

  • 0
  • I have a task which can I divide into multiple independent subtasks and Each subtask can be run in a separate thread in Java.
  • I want to understand what is the optimal number of threads after which increasing the number of threads will not lead to any performance gain.
  • 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-05-24T22:18:53+00:00Added an answer on May 24, 2026 at 10:18 pm

    There are a number of factors here. You are only limited by the number of processors/cores if your tasks are CPU bound. If your tasks tend to be IO bound, then you will likely benefit from more threads than processors/cores. How many depends on how much time your tasks are spending waiting on IO, relative to how much time they spend doing actual compututations.

    So, as usual, it depends on what you’re doing.

    For CPU bound processes, the number of running threads shouldn’t need to exceed the number of cores.

    In the end, you will need to try different configurations and see what works best.

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

Sidebar

Related Questions

I have a task to perform an HttpWebRequest using Task<WebResponse>.Factory.FromAsync(req.BeginGetRespone, req.EndGetResponse) which can obviously
I have task to write program allowing users to draw stars, which can differ
I have a service component (common task for all my apps), which can be
I have a SwingWorker thread with an IOBound task which is totally locking up
I have a simple web control (TaskList) that can have children (Task) which inherit
I have a task which I need to run in the background in my
I have a task which I schedule to run periodically via ScheduledThreadPoolExecutor.scheduleAtFixedRate(task, rate, ...)
I have one task to developer an application in which user can press the
I have for example a Task class which can report how long a task
I have an algorithmic problem which can be reduced to this task: Suppose we

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.