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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:19:03+00:00 2026-06-11T23:19:03+00:00

Given (particularly) the following scenario: One thread per core, Each core having its own

  • 0

Given (particularly) the following scenario:

  • One thread per core,
  • Each core having its own distinct cache,
  • Programs where cache hit/miss ratios are central to good performance (i.e. most today)

I’ve read frequently about the benefits of thread pooling for scheduling work in multicore systems. Although there are a number of approaches to multithreading, the comparison is often made between a smarter, load-balancing approach like this, and a more naive, “assign threads by task type” approach where load-balancing is assumed to have been handled at development time, rather than by the system itself at runtime. An example of this might be dedicated number crunching on one thread and rendering tasks on another.

It seems to me that under the above conditions, the thread-by-task-type approach could lead to far better performance since that core’s local cache would be that much more efficient for the specific task to which it has been assigned? (Assuming that waiting is not much of an issue, i.e. both threads are running at or close to full steam.)

I also wonder what performance impact thread-safety mechanisms might have, in load-balanced vs naive approaches.

  • 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-11T23:19:04+00:00Added an answer on June 11, 2026 at 11:19 pm

    seems to me that under the above conditions, the thread-by-task-type approach could lead to far better performance since that core’s local cache would be that much more efficient for the specific task to which it has been assigned

    The biggest performance gain with threaded programming is not about the type of task that is forked off but rather how asynchronous its operation is. If the task is tied closely with shared resources meaning that it has to lock and synchronize memory often, then you are not going to get the benefits of the cache memory on the separate processors.

    Edit: I now see where you are going Nick. A load-balancing system is by definition, consuming from some common task queue so may have more synchronization points. However, disparate tasks may be dealing with the database or writing to the file-system and blocking on other resources that hamper its ability to run asynchronously. And even though a load-balancing approach might need more synchronization, it can be the easiest way to significantly improve the throughput of your application.

    I also wonder what performance impact thread-safety mechanisms might have, in load-balanced vs naive approaches.

    Right. This is the critical point. Thread-safety implies synchronization or other locking as well as writing dirty memory to central storage, and invalidating cache memory that has been updated by other threads. The more a threaded task has to perform such operations, the more its performance will suffer.

    Again, this is not necessarily about the type of task, load-balancing versus task-type, but about the specifics of the code necessary to perform the tasks.

    Lastly, it is important to realize that for most threaded programs, you will have more threads than CPU/cores — especially considering that there is often background GC, finalizer, and other VM threads (assuming you are on a VM) competing for CPU resources. This makes it even more difficult to optimize a threaded program to make use of thread-to-CPU affinity which seems to be implied in your question.

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

Sidebar

Related Questions

I have the following Cucumber scenario: Scenario: find vegetable with same color Given I
I need ideas... I have a classic scenario with a twist, containing the following
Given the following xml document <root> <childnode0/> <childnode2/> <!--Comment1--> <childnode3/> <childnode4/> <!--Comment2--> </root> I
Given the following code from a Microsoft example: public class EngineMeasurementCollection : Collection<EngineMeasurement> {
I have a scenario where I need to bind two properties from one class
Given the following code: $myString = <<<script . . . script; Thanks to the
Given that I have the following in my knowledge-database: 1 0 6 20 0
Given the following code: var people = new List<person>(){ new person { Name =
I am stuck on the query synatax for the following scenario. Lets say I
Given certain multibyte character sets, am I correct in assuming that the following doesn't

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.