The i7 supports hyperthreading, which means that each CPU core can run two instruction streams and can therefore be managed as two "logical" CPUs.
So you get four "real" cores and four "virtual" cores, with the virtual cores being able to execute perhaps 20 to 40% of the instructions that a real core can, depending in workload.