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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:13:29+00:00 2026-06-02T19:13:29+00:00

Modern programming languages provide parallelism and concurrency mechanisms as first class citizens to their

  • 0

Modern programming languages provide parallelism and concurrency mechanisms as first class citizens to their users. I understand how parallel algorithms are programmed and can well imagine how two threads on a multi-core CPU can run in parallel.

Yet, most of these platforms also support running parallel processes on a single thread.

  • Do these processes really run in parallel?
  • How, on an assembly level can two different routines be executed simultaneously on a single thread?
  • 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-02T19:13:31+00:00Added an answer on June 2, 2026 at 7:13 pm

    TLTR; : parallelism (in the sense of true simultanenous execution) on a single, non-hyperthreaded CPU core, is NOT possible.


    Hardware (<- EDIT) Paralellism can be achieved at several levels. Ordered by decreasing granularity :

    1. multi-host
    2. multi-processor
    3. multi-core
    4. multi-threads (“Hyper-Threading”, i.e. “HT”)
      (EDIT: I voluntarity omit the case of vectorized compuations where several ALUs can be driven by the same core)

    Your question relates to running two software threads in cases 3. (in case HT is unavailable / disabled) or 4.

    • In both cases, the processes actually do NOT run in parallel. The user has an impression of simultaneity due to the extremely fast context switches performed at the CPU level, that tend to allocate, sequentially, the physical core (resp. thread) time to one or the other software thread

    • In both cases, those routines are simply not executed simultaneously, but sequentially

    The relative priority allocated to each of those 2 routines can be set on various OSes by the “Priority” you give to the process, that will be handled by the OS’s scheduler, which in turn will allocate CPU time.

    HTH.

    To perform tests to better understand this topic, you may want to google “cpu affinity”. This will let you run a two-threaded process on one physical single core of a multi-core CPU, and time the time taken by each of the threads, while modifying their priority, etc…

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

Sidebar

Related Questions

In several modern programming languages (including C++, Java, and C#), the language allows integer
Lately all modern programming languages have a definitive web site to support, distribute, learn
Most somewhat modern programming languages have a standard library? It is my impression is
I'm aware that most things in modern programming languages are at least partially based
I'm still on my eternal quest to build (and understand) modern programming convention of
Many modern programming languages allow us to handle potentially infinite lists and to perform
Many programming languages allow trailing commas in their grammar following the last item in
Are there any existing modern-day programming languages that explicitly have dependency injection as a
I have just started reading Modern C++ Design Generic programming and Design Patterns Applied
Modern ATL/MFC applications now have access to a new shared pointer class called CAutoPtr,

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.