System and method for executing multiple tasks in a mobile device