That is not how iPhone 4.0 SDK works, you cannot make your App run in the background, you have access to 7 different services, which are internal services, that you have to pass information to.
Like Background Music works when you supply internal service with URI as to where to pick up the information for the next music stream.
Or background task completion isn't really running your task, what it's doing is downloading or uploading using internal built in services that keep doing its work even after the app is closed, but when app is re started it could request the status.