How are the different pthreads assigned to processors? Is this dictated by the programmer, compiler, OS, or hardware?
This comment was marked helpful 0 times.
kayvonf
The OS is responsible for assigning logical operating system threads to physical hardware execution contexts. An OS context switch involves copying the state of an execution context off the processor and saving it in memory, and replacing it with another (previously saved) execution context.
A good discussion about this is unfolding on slide 52.
How are the different pthreads assigned to processors? Is this dictated by the programmer, compiler, OS, or hardware?
This comment was marked helpful 0 times.
The OS is responsible for assigning logical operating system threads to physical hardware execution contexts. An OS context switch involves copying the state of an execution context off the processor and saving it in memory, and replacing it with another (previously saved) execution context.
A good discussion about this is unfolding on slide 52.
This comment was marked helpful 0 times.