Previous | Next --- Slide 11 of 44
Back to Lecture Thumbnails
rsvaidya

The hardware decides which thread (execution context) to run after every clock cycle. However the OS decides every 10ms or so. Both of these are multithreading.

thunder

For OS level multi-threading, the operating system decides which threads' context should be put into the processors' execution context and the registers during context switching. But for hardware multi-threading, the hardware in the processor decides which of the two threads whose contexts have already been put into the processor will be actually executed in the ALUs for each clock cycle. Although the actual operations are different, both of the concepts are multi-threading.