1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Question about multi-threading in computer architecture

  1. Oct 25, 2016 #1
    1. The problem statement, all variables and given/known data
    I don't quiet understand the concept of multi-threading in computer architecture. What I understand so far is that with multi-threading, instructions can be executed in a pipe-line without dependencies as long as they are not on the same thread. This doesn't make sense to me because even if they are in different threads, they still use the same registers, memory etc. I don't know if I am misunderstanding the concept of thread. Can someone clear this up please?

    2. Relevant equations

    3. The attempt at a solution
  2. jcsd
  3. Oct 25, 2016 #2

    Jonathan Scott

    User Avatar
    Gold Member

    Multi-threading does require switching between different register sets and other status information so that each thread appears to have its own independent execution environment. When it is implemented in hardware, the processor provides one or more additional register sets. When it is implemented in software, status information is saved and restored at thread switch points.
    See Wikipedia for more details: https://en.wikipedia.org/wiki/Multithreading_(computer_architecture)
  4. Oct 25, 2016 #3


    User Avatar

    Staff: Mentor

    Thread closed for Moderation...
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook