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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:52:33+00:00 2026-06-19T02:52:33+00:00

Is a thread, once it is started, always running on the same CPU until

  • 0

Is a thread, once it is started, always running on the same CPU until it terminates? Or is it OS/Implementation dependent?

I’m asking this out of curiousity.

  • 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-19T02:52:35+00:00Added an answer on June 19, 2026 at 2:52 am

    In general, on a multi-core box, no. If the same core can be used, there may be an advantage to be gained by making use of data still in the L1 cache, as posted by others, but the downside of expicitly forcing core affinity is bad:

    Thread X is created and bound to core 0.
    Thread X runs.
    Thread X blocks on a system call, for I/O or inter-thread comms maybe.
    The OS runs thread Y on core 0.
    Thread X becomes ready while cores 1, 2 and 3 are idle.

    Now what?

    Preempt thread Y unnecessarily? Overhead of moving Y, plus what if Y is also bound to core 0?
    Block X again until Y blocks? Prevents X making progress when it could do.

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

Sidebar

Related Questions

This class extends Thread and once it is created, the thread is started. This
I just started making this .php file and i cant seem to figure out
I need to create async thread that runs once with a delay of 2
Should I initialize the database cursor once per each Apache thread, or should I
When a Thread is finished, you cannot run it once more, using start() method:
I have a form that is set to always ontop. I force this every
I have an application that once started will get some initial data from my
Since I started using outlook with GoogleCalendarSync i'm experiencing hangs every once in awhile.
The thread will be started on each Application_Start event. It will be a monitoring
I'm writing a windows service that once started will run every X hours. The

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.