title: Do different threads in a process run on different physical cores of a multi-core processor need to assign contexts?
body: <p>A process is the smallest unit for allocating resources. The thread is the smallest scheduling unit.</p>
  <blockquote>
  <p>Does this mean that a process contains at least one thread? Is the
  thread equal to the process when there is only one thread in the
  process?</p>
  </blockquote>
  <p>Many processors today are multi-core. Join I have a process P. There are two threads in this process P, A and B. I want A and B to run on core 0 and core 1 of a CPU respectively.</p>
  <p>But we know that the process needs to be allocated resources. The process has the context. Is the context generally stored in a register? If so, different physical cores use different physical registers. Then when thread A and thread B run on Core 0 and Core 1, respectively.</p>
  <p>So do these two cores need to allocate resources? In this case, how do these two threads maintain consistency?  Each thread has its own resources, so hasn't this become two processes? Does this mean that different threads in a process running on different cores are the same as different processes running on different cores?</p>