Previous | Next --- Slide 50 of 79
Back to Lecture Thumbnails

Like it is depicted in the image above that the different threads may be working on the different set of elements of a single large array (considering a simple example), who really decides spawning hardware threads? Do we have to do programatically or there is some logic built into the processor to do so (like for out of order execution)?


@sasthana: The OS decides. The program can request where it would like a thread to execute using thread affinity/placement hints, however. This is essential for things like Xeon Phis or AMD Bulldozer CPUs.