Multithreading Scenarios

Illustrating Scenarios with Multithreading

  • A single non-hyperthreaded CPU core can execute:

    • One single-threaded process at once
  • A single hyperthreaded CPU core can execute:

    • Two single-threaded processes at once
    • One double-threaded process at once
  • Two non-hyperthreaded CPU cores can execute:

    • Two single-threaded processes at once
    • One double-threaded process at once
  • Two hyperthreaded CPU cores can execute:

    • Four single-threaded processes at once
    • Two double-threaded processes at once
    • Two single-threaded processes and one double-threaded process at once

References

Previous
Next

Multithreading

Parallelism