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

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)?

ojd

@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.