Pentium D is a little bit better for multitasking and multithreaded applications since it has two physical cores since hyperthreading is not as effective in multithreading as true physical cores. For singlethreading applications Pentium 4 is a little bit better because of higher frequency. They are both slow by modern standards though.