Apple says they've figured out how to implement third party multitasking without hurting performance or battery life, and they're demoing it now -- you just double click the home button and see a list of your apps, and you can just tap to switch between apps.
ENGADGET: Multitasking comes to iPhone OS 4.0 -- but not to the iPhone 3G