Why does hyperthreading increase CPU performance?

564 views

I am not able to get this.

Lets say that 1 cpu core takes 1 second to do 1 operation and it requires full focus on that 1 task to finish it in 1 second. So, in this case a 4 core cpu will do 4 operations per second. How does hyperthreading increase it to 5 or 6 tasks per second.

Where is the extra power coming from?

In: Technology

6 Answers

Anonymous 0 Comments

A CPU core has many parts. One accesses memory, one performs simple arithmetic (addition, subtraction, etc), multiplication is usually a separate piece, floating point is separate, encryption is separate, etc.

Hyperthreading takes advantage by trying to run two jobs at the same time but having them share the parts of the CPU. If one wants to execute a multiplication instruction and the other wants to decrypt data, both can run at the same time. It’s only when they want to use the same part that they have to take turns. So hyperthreading isn’t a doubling of speed due to these situations where they bump into each other, but it can really help.

It’s like having two cooks in a kitchen. Though there’s still only one sink, one oven, and one cutting board, you can still get dinner prepared faster by having another person working. Not double speed, but a lot better.

You are viewing 1 out of 6 answers, click here to view all answers.