Associate
- Joined
- 18 May 2006
- Posts
- 474
- Location
- Somewhere South
NathanE said:They don't have half of a CPU. That was just the way things were simplified to people back in the day.
HT works by tricking the OS into thinking there are two CPUs on which to schedule threads. The CPU takes those two threads and executes them, more or less, concurrently. The P4 Netburst architecture's long pipeline design lends to HT because the pipelines are rarely ever full. When the pipeline isn't full for thread one, then it can give the spare pipeline slots to thread two.
That basically is how HT works. It shares the CPU's execution units, because in Netburst they are rarely ever fully utilised by one thread.
In a CPU there are parts of core that are always used by the the CPU while calculating an instruction and then parts that are not used so often. The way HT works is by taking the parts of the CPU that is used by every thread and having two of them while the other 90% of the CPU that is not always used is left single, hence they can calculate 2 threads at once. If it was as simple as tricking the OS into thinking there were two cores then software hacks would be abound to allow the non-HT cores to emulate 2 cores